2026-11-27 16:21 UTC

Open-source quantization tool reports calibrated scheme-level loss intervals and abstains where coverage is weak

state: expiredheat: mediumuncertainty: mediumrelevance: mediumllm-quantization local-inferenceGrace JacksonRed Hat AI

What is this?

Grace Jackson’s MIT-licensed quant_delta_predictor is a small, offline tool and research artifact for estimating quantization-related accuracy loss on OpenLLM-style benchmarks. Its repository reports 90.1% empirical coverage for nominal 90% intervals on unseen checkpoints, but says model-specific point predictions add almost no signal beyond the quantization scheme. It refuses to provide intervals for scheme-and-size cells with inadequate measured coverage; for example, it reports 68.8% coverage for sub-2B models using w4a16. The analysis uses 850 evaluation rows from 102 RedHatAI model cards, covering 38 checkpoints, eight model families, six schemes and 16 benchmarks. These are the project’s reported results, not independent validation; its stated limits include selection bias toward Red Hat-published checkpoints and an unvalidated envelope for sub-2B, MoE and reasoning-distilled models.

Why it matters

Quantization can make local LLM inference fit tighter memory and compute budgets, but choosing a lower-precision setup can cost accuracy. This open-source tool offers a cautious, scheme-level historical risk baseline: its practical contribution is not predicting which individual model will fare best, but showing measured uncertainty and refusing to answer where coverage is weak. That could help developers compare quantization options, though it does not establish that a configuration is safe or suitable for a particular workload.

Current assessment

Grace Jackson’s MIT-licensed quant_delta_predictor is publicly available as a small offline tool requiring NumPy, pandas and SciPy. The repository reports 90.1% empirical coverage for nominal 90% intervals on unseen checkpoints, using 850 evaluation rows drawn from 102 RedHatAI model cards (38 checkpoints, eight model families, six quantization schemes and 16 benchmarks). These are project-reported results, not independent validation. The reported negative result is material: per-model point predictions carry almost no signal beyond the scheme average, so the artifact is a calibrated historical baseline rather than a useful model-specific predictor. It abstains for scheme-and-size cells with inadequate measured coverage; the example given is 68.8% coverage for w4a16 on sub-2B models, below the nominal 90%. The project also says its intervals never exclude zero, its source population reflects checkpoints Red Hat chose to publish and may understate damage from poorly tuned recipes, and sub-2B, MoE and reasoning-distilled models are outside the validated envelope. Thus the release is a modest decision-support tool for screening quantization risk, not a guarantee of accuracy retention or a substitute for evaluating the intended model and workload. The supplied evidence contains no independent replication or adoption data.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

09-23 14:00⭐ origin echo-reconstructedThe repository reports 90.1% empirical coverage for nominal 90% intervals, explicitly finds almost no per-model predictive signal beyond qua
Grace Jackson on github (echo) · attributed from hn.story.49823211
—
09-23 22:04first on hacker news · published · +8.1hI stress-tested LLM quantization by deliberately breaking models
GraceJackson07
—
09-23 22:04amplified on hacker news 👑hn.story.49823211
GraceJackson07
peak 1 · 0 comments · 105% of case engagement
09-24 00:21our radar first saw it · +10.4hdiscovery anchor: hn.story.49823211—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnI stress-tested LLM quantization by deliberately breaking models
Retrieved article excerpt

Open article · Retrieved 2026-09-24T00:31:38.036837+00:00

# quant\_delta\_predictor

Feasibility spike: given `(base model, quantization config)`, predict the accuracy delta on
OpenLLM-style benchmarks with a calibrated prediction interval.

**Result: the calibration works (90.1% empirical coverage on unseen checkpoints at a nominal 90%);
the point prediction carries almost no signal beyond the quantization scheme, and the fitted
artifact is a small number table — a calibrated historical baseline, not a predictor.**

| document | what it holds |
| --- | --- |
| [TOOL\_SUMMARY.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/TOOL_SUMMARY.md) | **start here** — one page: what it does, what it refuses, what it cannot do |
| [FINDINGS.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/FINDINGS.md) | the result, with corrections applied in place |
| [NEGATIVE\_RESULT.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/NEGATIVE_RESULT.md) | per-model prediction has no signal beyond the scheme average |
| [BIAS\_CORRECTION.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/BIAS_CORRECTION.md) | the selection bias, measured; why no corrected point estimate |
| [AUDIT\_DISCIPLINE.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/AUDIT_DISCIPLINE.md) | the standing audit rule and what it has caught |
| [RESEARCH.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/RESEARCH.md) | prior-art synthesis + pre-registered predictions, written first |
| [ADVERSARIAL\_AUDIT.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/ADVERSARIAL_AUDIT.md) | attempts to break the headline number |
| [ACCOUNTING.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/ACCOUNTING.md) | every model, tested or dropped, and why |
| [PROVENANCE.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/PROVENANCE.md) | which parser fixes were informed by test-set rows |
| [RANKING.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/RANKING.md) | the scheme ranking, and why size stratification was mostly rejected |
| [SCOPE.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/SCOPE.md) | the minimal public tool and hours to ship it |

## Setup

```
python3 -m venv .venv && ./.venv/bin/pip install numpy pandas scipy
# scikit-learn and pytest are only needed to re-run the research, not the tool
```

## Use the tool

No network, no API key, no GPU. Three packages: numpy, pandas, scipy.

**Run this one first.** It is the command that shows you what the tool is:

```
./.venv/bin/python src/rank.py w4a16 --size 1.5B
```

It refuses to answer. For 4-bit weights on a sub-2B model, measured coverage is
68.8% against the 90% the interval claims, so instead of returning a number it
prints `INSUFFICIENT CALIBRATION FOR THIS COMBINATION`, shows you the coverage it
actually measured and the rows it measured it on, and stops.

That is the design. A quantization risk estimate is only worth having if it will
tell you when not to trust it, and the cells it refuses are exactly the ones where
a confident-sounding answer would do the most damage.

Once you have seen it decline, the rest:

```
./.venv/bin/python src/rank.py                      # rank every scheme
./.venv/bin/python src/rank.py fp8                  # one scheme it will answer for
./.venv/bin/python src/rank.py --form-fields        # what a contributed result needs
```

Each scheme comes back with a 90% interval, the worst loss ever observed for it, the
share of evaluations that lost more than 3pp, how many checkpoints and families back
it, and a tier. Two cells are refused outright and four more are blocked from the top
tier for resting on fewer than three distinct checkpoints.

## Reproduce the research

The research scripts need two more packages than the tool does:

```
./.venv/bin/pip install scikit-learn pytest
```

```
./.venv/bin/python src/harvest.py          # rebuild dataset.csv from cards (needs the cards; see data/README.md)
./.venv/bin/python src/run_final.py        # all three split regimes and calibration variants
./.venv/bin/python src/demo_holdout.py     # train on 2 families, predict unseen models
./.venv/bin/python src/real_use_case.py    # prospective test on never-seen families (needs network)
./.venv/bin/python src/diagnose.py         # which failure mode this is
./.venv/bin/python src/validate_strata.py  # does size stratification help? mostly not - see RANKING.md
./.venv/bin/python src/build_envelope.py && ./.venv/bin/python src/cli.py --list
./.venv/bin/python -m pytest tests -q      # the test suite
```

The audits, and the full exclusion census:

```
./.venv/bin/python src/audit.py && ./.venv/bin/python src/adversarial_audit.py && ./.venv/bin/python src/census.py
```

Independent re-verification — stdlib only, no project imports. Regenerates the headline coverage
from the raw cards and diffs it against the pipeline row by row:

```
python3 verify/independent_check.py
```

## Data

850 rows of `(model, quant_config, benchmark, accuracy_before, accuracy_after)` scraped from 102
[RedHatAI](https://huggingface.co/RedHatAI) model cards, spanning 38 base checkpoints, 8 model
families, 6 quantization schemes and 16 benchmarks. Every three-column row is verified against
the card's own printed Recovery percentage; internally inconsistent rows are rejected rather than
guessed at.

## What it does NOT do

- It does not use the model family or size — those features made out-of-family accuracy *worse*.
- Its intervals never exclude zero, so it cannot tell you a config will definitely hurt.
- It is trained only on checkpoints Red Hat chose to publish, so it underpredicts damage from a
  badly-tuned recipe.
- Sub-2B, MoE and reasoning-distilled models fall outside the validated envelope.

## Standing rule on claims

Every quantitative statement in `RANKING.md` must trace to a value computed by the audit scripts.
This is enforced mechanically, not by discipline:

- `RANKING.md` is **generated** by `src/gen_ranking_doc.py` from computed values. Do not hand-edit
  figures in it.
- Each figure carries a `<!-- claim: key = value -->` tag (invisible when rendered).
- `src/verify_claims.py` recomputes every tagged value and fails on any mismatch or any tag not in
  its registry.
- `tests/test_all.py::test_ranking_doc_claims_all_verify` runs that check in CI.
- `tests/test_all.py::test_no_banned_prose_in_user_facing_output` blocks phrases that were wrong
  before ("safe to adopt", "ignores your model", "12 numbers", "26 of 29", "80%, not 90%") from
  reappearing in printed output.

```
./.venv/bin/python src/cell_coverage.py     # measure per-cell coverage
./.venv/bin/python src/gen_ranking_doc.py   # regenerate RANKING.md
./.venv/bin/python src/verify_claims.py     # re-verify every number
```

Where a `(scheme, size band)` cell has measured coverage below threshold, the tool prints
`INSUFFICIENT CALIBRATION` and **no interval**, rather than a number that would look as confident
as a well-calibrated one.

## Data and licence

This repository is MIT licensed (see `LICENSE`). The raw Hugging Face model
cards the dataset was extracted from are **not redistributed** here — they are
RedHatAI's content under several different licences. `data/dataset.csv` (the
extracted numbers) is included and is all the tool needs. See
[data/README.md](https://github.com/gracejackson-sudo/quant-delta-predictor/blob/main/data/README.md) for what that costs you and how to fetch the
cards yourself.

Source data: evaluation results published by RedHatAI on Hugging Face —
<https://huggingface.co/RedHatAI>.

## References

- Frantar, Ashkboos, Hoefler & Alistarh. *GPTQ: Accurate Post-Training
  Quantization for Generative Pre-trained Transformers.*
  [arXiv:2210.17323](https://arxiv.org/abs/2210.17323) — the method behind
  every w4a16 checkpoint in this dataset.
- Xiao et al. *SmoothQuant.*
  [arXiv:2211.10438](https://arxiv.org/abs/2211.10438) — the activation
  smoothing used for the w8a8 checkpoints.
- Zeng & Papailiopoulos. *You Don't Need to Run Every Eval* (BenchPress).
  [arXiv:2606.24020](https://arxiv.org/abs/2606.24020) — published the core
  predict-then-conformal mechanism first; see `NEGATIVE_RESULT.md` §5.
- Barber, Candès, Ramdas & Tibshirani. *Conformal Prediction Beyond
  Exchangeability.* Ann. Statist. 51(2), 2023 — why the coverage guarantee is
  conditional on the published population, not on your own recipe.
GraceJackson0710
🟧 echo.github ⭐The repository reports 90.1% empirical coverage for nominal 90% intervals, explicitly finds almost no per-model predictive signal beyond quaGrace Jackson——

Interpretation history

Decision trace