Skip to main content
← Lab

weightquant

confirmedPython · llama.cppInference & servingJuly 5, 2026

the question

Where's the real sweet spot on the weight-precision curve, and where's the cliff?

what came out

Q4_K_M is the Pareto sweet spot -- near-lossless at 32% of f16 size. Everything above it is lossless within noise; Q2_K is a cliff at +90% perplexity. The rate-distortion frontier, measured on a real model.

method & receipts

  • Result: confirmed
  • Reproducible one script re-runs the whole thing from scratch.
  • Machine-readable claims every reported number, in a checkable file.
  • Tested — a correctness/benchmark suite ships alongside the code.

→ read the code and re-run it

github.com/v-code01/weightquant