A kernel for a particular matrix shape
Few-row MMQ handles matrix multiplication with a small number of columns in its second input. The kernel’s general range is two to 24 columns, but actual dispatch for NVFP4 depends on the GPU, tensor shape and requested precision. Small batches and the verification pass in speculative decoding are the motivating workloads.
The default W4A8 path combines four-bit weights with eight-bit activations. The author reports starting thresholds of seven tokens on RTX 5090 and nine on DGX Spark. Shapes below those thresholds or outside the supported conditions retain other existing implementations. This is a targeted backend change rather than a new execution mode covering every operation in a model.
Activation precision no longer follows short-batch growth
A decode batch can grow when another sequence or more draft tokens are added. The author argues that this should not silently lower the precision used for the existing sequences. The new few-row path therefore uses eight-bit activations by default throughout its supported NVFP4 batch range, instead of automatically switching that short batch to four-bit activations.
W4A4 remains an explicit choice through GGML_CUDA_MMQ_PREC=q4 or a graph precision request. Its thresholds are six tokens on RTX 5090 and eight on DGX Spark. It trades numerical accuracy for performance. The reported Wikitext-2 distribution-divergence measurements help describe that numerical difference, but they do not constitute a complete evaluation of answer quality across practical applications.
The reported speculative-decoding result
On RTX 5090, the author compared the previous code with the PR using SPEED-Bench and 80 coding conversations. The target was Qwen3.8-27B NVFP4, the draft model was DFlash2 Q4_K_M, context size was 32768 and the maximum draft length was seven tokens. Average verification time fell from 20.76 to 18.33 milliseconds per step.
Average throughput per conversation rose from 161.90 to 184.91 tokens per second, while acceptance remained approximately 0.3226–0.3227. That is roughly a 14% gain in this configuration, measured by the contributor rather than this publication. Separate llama-bench tables vary by model, GPU and column count, with some small shapes showing essentially no change.
What the merged change does not include
This PR does not add the NVFP4 few-row path for MUL_MAT_ID, which handles MoE expert selection, or the planned gate, up and GLU fusion. Improvements to supported dense matrix operations cannot automatically be attributed to every part of an MoE model. The final diff includes dispatch and precision handling, documentation and tests covering multiple shapes and scale layouts.
The contributor reports 5653 successful backend tests on RTX 5090 and DGX Spark with both PDL settings. This is an upstream test report, not independent certification. The news event is the dated, merged engineering change and its tag. Users must separately verify whether a downloadable package for their platform includes it, rather than inferring release-asset availability from the tag alone.

Discussion.
Your perspective matters. Sign in, pick a nickname and choose your cyber identity.
Loading discussion…
Your account name, email and photo stay off your comments.