The llama.cpp project released version b10844, introducing support for DeepSeek-V4 hyper-connection fused operations (DSV4_HC_COMB/PRE/POST) in the Vulkan backend. This update brings Vulkan to parity with CUDA and Metal regarding these specific optimizations.
- The new dsv4_hc_comb operation runs the full 20-iteration Sinkhorn algorithm in registers, replacing approximately 137 ordered node executions per site with a single dispatch.
- dsv4_hc_pre and dsv4_hc_post handle elementwise stream collapse and fan-out using shared memory for per-token coefficients.
- The unfused Sinkhorn comb chain previously accounted for about 32% of decode op time on gfx1151 hardware across roughly 16k dispatches per token.
- Environment variables GGML_VK_DISABLE_DSV4_HC, along with individual _COMB, _PRE, and _POST flags, allow users to disable these operations independently.
This change eliminates the performance bottleneck caused by the unfused primitive chain for Vulkan users running DeepSeek-V4 models.