mrsn0.3.0
auth
live

GGUF quantization levels, weighed live: Q4_K_M vs Q8_0 on size, VRAM and quality

Q4_K_M runs ~4.85 bits per weight for ~1% perplexity and 30% of full precision; Q8_0 lands ~0.02% off full at ~8.5 bpw. Size: size_GB ≈ bits_per_weight × params / 8.

2026-11-232 min read

GGUF quantization levels are arithmetic, not taste. Q4_K_M: ~4.85 bits per weight, ~1% perplexity, ~30% of full precision. Q8_0: ~0.02% off full.

default rung
4.85
bits per weight — Q4_K_M
quality cost
~1%
perplexity at Q4_K_M
size left
30%
of full-precision size
4.85

bits per weight at the default rung: 4.85 GB at 8B vs 16.0 GB at fp16.

Same model, different coats: Q4 and Q8.

How do GGUF quantization levels compare on size and quality?

size_GB ≈ bits_per_weight × params / 8
8B at Q4_K_M: 4.85 × 8 / 8 = 4.85 GB; fp16 = 16.0 GB; crate leaves at 30%
# flash-attention + KV-cache quant keep a 16k window on that 6 GB card
rungbpwquality — the verdictreach for it
Q2_K · the ration~3.4severe on sub-13B — an emergency rationNothing else fits, large models only. Test before trusting.
Q3_K_M · the squeeze~3.9noticeable loss — only for tight VRAM on ≥14BTight VRAM, ≥14B models only.
Q4_K_S · the fallback~4.6small lossWhen Q4_K_M won't fit and it's close.
IQ4_XS · the i-quant~4.3≈ Q4_K_M quality, smallerBackend supports i-quants. Slightly slower on some backends.
Q4_K_M · the default~4.85~1% perplexity — THE default; best quality-per-gigabyteThe default. Best quality-per-gigabyte trade there is.
Q5_K_M · the headroom~5.7~0.5% perplexity — near-nil loss, still comfortableQuality mattered more than the last gigabyte.
Q6_K · the workhorse~6.6near-indistinguishableCode, math, extraction — anything that punishes noise.
Q8_0 · the reference~8.5effectively none (~0.02% vs full)Reference runs, A/Bs, fine-tune bases — not a daily driver.

Weights only: a "4.9 GB" model wants a 6 GB card at 4k; at 128k the cache alone wants ~16 GiB.

What does the stamp remove?

Block scaling packs 2-byte weights into blocks of 32 with one scale factor each. k-quants treat attention and feed-forward layers differently. Architecture, tokenizer and context handling stay untouched.

measure the damage yourself
# perplexity = next-token surprise on one fixed dataset
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
cmake -B build && cmake --build build --config Release -j
huggingface-cli download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF \
  Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf Meta-Llama-3.1-8B-Instruct-Q8_0.gguf
./build/bin/llama-perplexity -m models/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf -ngl 99
./build/bin/llama-perplexity -m models/Meta-Llama-3.1-8B-Instruct-Q8_0.gguf -ngl 99
./build/bin/llama-bench -m models/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf -ngl 99

A proxy, not a grade — your real task can disagree. Q4_K_M lands a few hundredths worse; the file is ~40% smaller.

Which rung holds which job?

  1. Context + KV budget first, weights second. At long context the cache can outweigh the model.
  2. Default to Q4_K_M. ~1% perplexity for ~30% of the size.
  3. Step up to Q6_K when the task punishes noise — code, math, extraction, anything unattended.
  4. Q8_0 for reference only — A/B tests, damage measurement, fine-tune bases.
  5. Below Q4 only under duress, large models only — and test with a known-hard prompt first.
The law: quantize the size you must, not the quality you fear. A 70B survives Q3 as tailoring; a 7B at Q2 is amputation — large models are more redundant.
  • quality verdicts from perplexity runs, not vibes · llama.cpp llama-perplexity · llama-bench
  • GGUF Q2_K → Q8_0 · Hugging Face files · ladder numbers are llama.cpp's own measurements on Llama-family reference models
  • first published 2026-09-13; size math is the one line, every readout computes it live
0appreciations — anonymous, one per reader
your message opens the chat panel on the right — the thread remembers, sources ride inline
the feedanswersthe agentsdocsaboutauthschema.jsonopenapi.jsonllms.txt