In this article
The b12329 NVFP4 MMQ fusion removes intermediate scale work; dense and routed expert scales still need independent numerical validation.
llama.cpp b12329 moves eligible NVFP4 weight scaling into the CUDA MMQ writeback stage. The PR targets batched multiplication paths that previously materialized an intermediate result and applied scale afterward. The useful performance mechanism is eliminated intermediate work, with equivalence to the original scaled operation remaining the acceptance criterion.
The scale remains mathematically required
Fusion does not remove the external weight scale from the intended result. It changes where the implementation applies it. Upstream describes computing the scaled output directly during MMQ writeback rather than writing an unscaled intermediate and launching another operation. A review should therefore trace the scale to the final output, including less obvious writeback paths, rather than celebrating the disappearance of a multiply node in isolation.
Expert routing adds another mapping
For MoE projections, the scale can depend on the selected expert. The PR explains that the unfused route included expansion and gathering before multiplication. A fused implementation has to preserve that expert-to-scale association. A proposed test should use distinct scales for distinct experts and vary routing, so accidentally applying a common scale is detectable. Uniform scales would make an incorrect association look numerically correct.
Dispatch determines whether fusion matters
Upstream targets the batched MMQ path and notes that a small-batch path already had related scaling fusion. A test that stays on the old small-batch route cannot quantify the newly removed operations. Record which multiplication implementation runs, then compare fused and unfused results at representative batch sizes. Kernel-launch counts and intermediate memory traffic can explain timing, but neither quantity alone is a complete end-to-end latency result.
Keep correctness and speed causally connected
A faster run that forgot a scale would be an invalid optimization result. Validate outputs first, including routed and non-routed projections, then time the same confirmed operation. Preserve model quantization, activation shape and device across builds. This release supplies a specific fusion mechanism and upstream tests; this article adds no independent throughput claim and does not infer that every NVFP4 checkpoint uses the changed MMQ path.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.