In this article
MatMulPacked in v0.4.0 defines rounding and scale order; compare GEMV and prefill using their actual precision policies, not only the packed weight type.
CUDA Plugin EP v0.4.0 extends MatMulPacked with NVFP4 global_scale and activation-type precision handling. The linked PR specifies scale after FP32 accumulation and before output cast, and decoded-weight rounding by default. An optional unrounded GEMV route changes a numerical policy; it is not simply a universal faster implementation of an identical precision path.
Scale placement changes finite-precision work
Applying a global scale before accumulation, after accumulation or after a narrow output cast can produce different rounding and range behaviour. The PR specifies one order. A proposed reference models that order explicitly with non-unit scale and values near conversion boundaries. Unit scale or exactly representable products can hide a misplaced operation. Checking only model loading cannot establish that the scale reaches the intended stage of the actual CUDA kernel.
Weight decoding includes a rounding decision
The default rounds decoded weights to activation type before the multiplication path consumes them. Skipping that rounding for eligible GEMV can change output even though packed source bytes are identical. A proposed comparison records the effective session option and uses an independent reference for each policy. Do not judge an unrounded result against a rounded oracle and call every difference a decoder bug, or assume a closer result to full precision preserves the model’s declared execution contract.
GEMV opt-in does not redefine prefill
The PR keeps GEMM/prefill rounding even when an eligible GEMV may omit it. Tensor-core routes can also retain rounding. A local test must confirm dispatch and phase rather than expecting one option to make every multiplication unrounded. Compare prefill and decode separately, including shape changes that select another route. This makes a phase-dependent numerical difference explainable instead of treating it as unexplained instability in identical weights.
Model attributes and session policy are different interfaces
The linked change moves this precision choice to a session option and removes a former node attribute. Existing exports carrying that attribute need migration rather than silent reinterpretation. This article reports the scale/rounding contract and proposed tests without independent benchmarks. A useful result records the regenerated model or attribute cleanup, effective policy, selected kernel and numerical comparison before presenting any speed-quality tradeoff.
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.