﻿# What must a GGUF conversion preserve for scaled FP8 and NVFP4 weights?

llama.cpp b12818 adds scaling support in GGML. Verify that scale tensors survive conversion, expert routing and backend placement.

Author: Retrivium editorial team
Updated: 2026-11-28
Canonical URL: https://retrivium.ai/journal/daily-20261128-compute-ggml-fp8-nvfp4-scale-sidecars/
Language: en

A low-precision tensor type describes the encoding of a weight, but decoding can also depend on scale data. The b12818 llama.cpp snapshot published on 27 November adds scale handling for FP8 and NVFP4 in GGML. The notes list per-tensor, per-channel, per-expert and per-expert-per-channel scales, plus optional activation scales on relevant operations and checks for required companion tensors during conversion. These are implementation changes. They do not establish that all models, backends and partitioning modes accept every combination.

## Account for scale tensors in the conversion record

Capture the exact input checkpoint and conversion version along with the GGUF metadata. For a few representative layers, inspect the size, format and layout of their scale tensors and relate those dimensions to the weight and expert axes. Some layers share a scale and others do not. A name match between the original and output model is weak evidence when the placement of one axis determines how the weights are reconstructed.

## Run a numerical comparison on the same path

Choose prompts that exercise dense and, where available, experts on different devices. Compare reference logits or task scores against the exported artifact using a tolerance established before the run. Test both a single backend and the target split configuration. If the discrepancy appears only under a split or with the expert cache, isolate that path before attributing it to quantization loss.

## Release the artifact with its compatibility record

Include the GGUF hash, converter revision, runtime build and backend combination in the result. Check that loading rejects a missing required scale in a disposable test copy and that the intact export works. An apparently precise capacity estimate or a successful load does not replace a comparison of the actual output generated from the converted weights.

## Use expert coverage as a separate test signal

A dense evaluation sample can look normal even when exported scales for rarely selected experts are wrong. In staging, collect aggregate expert selection counts or use fixtures with known expert coverage where available. These measurements can identify parts of the model that a quality score rarely exercises. Keep the representative sample distinct from the diagnostic sample so the latter does not inflate reported production quality.

## Sources

- [Primary source · llama.cpp b12818](https://github.com/ggml-org/llama.cpp/releases/tag/b12818)
- [Primary source · llama.cpp #28898](https://github.com/ggml-org/llama.cpp/pull/28898)

## Related reading

- [Related guide · Modelopt quantized checkpoint provenance](/journal/modelopt-quantized-checkpoint-provenance/)
- [Related guide · Learn openrouter provider precision](/journal/learn-openrouter-provider-precision/)
