﻿# How do you verify Granite NVFP4 feed-forward scales after llama.cpp b12223?

Pin the Granite artifact and compare perplexity and a small set of logits across revisions, with a second quantization as a control.

Author: Retrivium team
Updated: 2026-11-10
Canonical URL: https://retrivium.ai/journal/news-llamacpp-granite-nvfp4-ffn-scale-check/
Language: en

The b12223 pre-release wires Granite NVFP4 weight scales into the feed-forward graph. The defect described by the contributors could load per-tensor scales from a checkpoint without applying them to the relevant operations. A deployment gate should therefore test numerical quality after loading the same artifact.

## Inspect where scales are consumed

NVFP4 stores low-precision values together with scaling information. Reading a scale tensor and passing it into the FFN operation are different steps. The reported issue concerns the up, gate and down weight scales. A correct file inventory alone cannot establish that the evaluated graph uses them.

## Make a controlled comparison

Use one NVFP4 GGUF, one tokenized evaluation corpus and the same context and backend. Record the exact executable revision. Also run a comparable Q4 or Q8 conversion of the same base model. Comparing controls helps identify a regression specific to the NVFP4 feed-forward path.

## Interpret contributor numbers narrowly

The pull request reports a sharp perplexity failure on a particular Granite checkpoint and an RTX 5060 Ti. Those figures are evidence that the fault was material in the tested configuration. They do not define a universal threshold across corpora, tokenizers or all Granite variants.

## Catch smaller numerical failures

Alongside perplexity, compare top token candidates and finite logits on a fixed short input. Validate dense and mixture-of-experts paths separately if both are deployed. A deployment can keep plausible responses on easy prompts while moving enough probability mass to damage classification or constrained output.

## Store acceptance with the artifact

Put the GGUF checksum, backend version and evaluation parameters beside the result. When either conversion or runtime changes, rerun the matched set. If a proposed release loads the model but fails the numerical gate, keep that build out of the deployment manifest until the graph discrepancy is understood.

## Primary sources

- [llama.cpp b12223](https://github.com/ggml-org/llama.cpp/releases/tag/b12223)
- [Upstream implementation and review](https://github.com/ggml-org/llama.cpp/pull/31449)

## Related reading

- [Validate safetensors weight artifacts separately from repository code](/journal/safetensors-artifact-validation/)
- [Provider structured output: testing JSON and schema conformance separately](/journal/provider-structured-output-conformance-tests/)
