﻿# How should you validate NVFP4 on AMD CDNA3 after the llama.cpp scale fix?

A llama.cpp prerelease fixes repeated scale adjustment in a HIP path. Compare kernel outputs before comparing MI300X throughput.

Author: Retrivium editorial team
Updated: 2026-11-23
Canonical URL: https://retrivium.ai/journal/daily-20261123-compute-llamacpp-hip-nvfp4-scale-parity/
Language: en

The llama.cpp prerelease b12632, published on November 22, 2026, includes a HIP correction for NVFP4 matrix operations on CDNA3. The change addresses repeated halving of block scales in the affected path. A block scale restores magnitude when compact values are interpreted for arithmetic. If the scale is adjusted twice where the format expects one adjustment, the kernel may complete quickly while computing a different result.

## Start with a fixed quantized input

Use the same small quantized weight block and known activation vectors for the backend under test and a reference implementation. Record the weight format, input seed and output tolerance. A reference that decodes the same quantized input is useful because it isolates backend arithmetic from the loss already introduced by quantization. With a full-precision model as the only comparator, it is harder to identify which difference came from the runtime.

## Check which path actually ran

Record the exact build, GPU architecture, driver and backend. In mixed fleets, a model can load successfully on multiple machines and choose a different implementation on each. Include evidence that the tested operation reached the HIP path you care about. Repeat a few relevant matrix shapes. A correct result on one shape is useful evidence for that path and may leave other dispatch branches untouched.

## Compare model-level effects separately

Once the operation agrees with the reference, compare logits or ranking behavior on a small fixed prompt set. Include a prefill-heavy input and a short generation run if both matter to your deployment. Report absolute output differences and task outcomes alongside any speed result. If you compare sampled text, control for sampling settings and avoid treating one coincidental match as proof.

## Keep a gate before benchmarking

Add a small arithmetic check to the build acceptance checklist for the affected hardware. Benchmark throughput and latency only after it passes. This keeps an incorrect fast path out of the results and makes a later change to drivers, quantization or dispatch easier to diagnose.

## Sources

- [llama.cpp build notes](https://github.com/ggml-org/llama.cpp/releases/tag/b12632)
- [HIP correction and tests](https://github.com/ggml-org/llama.cpp/pull/32790)

## Related reading

- [An earlier backend-specific change](/journal/daily-20261122-compute-llamacpp-rdna1-decode-runtime/)
- [Quantized inference validation](/journal/vllm-quantization-launch/)
