When does llama.cpp b11177's CUDA fusion help speculative decoding?

The llama.cpp b11177 release gives CUDA users a specific performance hypothesis to test: removing launches around Qwen3.8-27B’s GDN normalization can matter more during speculative cold prefill than during ordinary batch processing. Its reported 4.2-4.8% improvement is a result from one two-GPU setup, not a general speculative-decoding speedup.

What changed in the graph?

The release describes a GDN q/k normalization path built as SCALE(RMS_NORM(x)). On Qwen3.8-27B, two SCALE nodes per GDN layer across 48 layers added 96 CUDA kernel launches per ubatch. b11177 fuses RMS_NORM and SCALE into one CUDA kernel when SCALE has no bias and the RMS_NORM output has a single consumer. The release says the removed kernels had no measurable GPU execution time; the cost was on the host/driver side of launching them. That makes launch-heavy speculative prefill a more plausible beneficiary than a workload dominated by GPU computation.

How large was the reported effect?

The release compared baseline master commit fee39dd with the fused build. It tested Qwen3.8-27B-UD-Q4_K_XL on two GTX 1080 Ti GPUs with an i7-13700KF, Windows 11, driver 582.66 and CUDA 12.9; model placement used -ngl 99 -ts 53,47 -ot token_embd=CPU. Its llama-server cold-prefill run used -c 56000 -ub 128 -b 2048 and draft-mtp with n-max 3 p-min 0.5; figures were means of two rounds with three repetitions each.

Source-reported test Baseline master With fusion Change
Speculative cold prefill, pp 8000 356.5 tok/s 371.4 tok/s +4.2%
Speculative cold prefill, pp 20000 322.0 tok/s 337.4 tok/s +4.8%

The release also reports a combined reduction of 96 launches per ubatch across the two GPUs, with no change in the GPU operation sum. In its separate plain llama-bench tests, the listed prefill improvements were only 0.4-1.3%, and tg128 improved 0.6%. These are different measurements with different settings; the cold-prefill percentages should not be read as a prediction for token generation or end-to-end serving latency.

Should you test b11177?

Prioritize a local A/B test if you run this Qwen3.8-27B path on CUDA, use draft-mtp speculative decoding, and spend meaningful time in cold prefill. Confirm that your graph satisfies the fusion conditions; a biased SCALE or multi-consumer RMS_NORM output will not take this fused path. Compare your current build and b11177 with the same model file, quantization, GPU split, driver, prompt lengths, ubatch settings and speculative-decoding settings. Measure both cold prefill and ordinary generation so a small gain in one phase does not obscure your actual workload.

The release reports matching draft acceptance counts, identical measured perplexity and passing listed backend-operation tests for its configuration. Those checks support its particular result, but you should still compare output and acceptance on your own build and hardware. If your graph does not fuse, or your local measurements do not improve the phase that constrains your service, the release’s 4.2-4.8% figure alone is not a reason to upgrade for performance.