Explain like I'm 5 ยท LLM quantization

Shrinking a giant brain
without losing the magic

What that chart is really showing you, and how to find the sweet spot.

Step 1

Your model is a 54 GB brain ๐Ÿง 

Qwen 3 (27 billion knobs) is amazing โ€” but it's too big to fit on most computers.

54 GB โ€” the full model (BF16) That's the whole brain, at full precision.
Step 2

The fix: shrink the numbers ๐Ÿ“ฆ

Every knob in the brain is a number. We round those numbers to fewer digits โ€” that's quantization. Smaller file, slightly blurrier brain.

Same photo, different compression: ๐Ÿ–ผ๏ธ Crisp ยท 54 GB ๐Ÿงฉ Slightly blurry ยท 16 GB

๐Ÿช™ Trade-off: smaller file = less memory + faster, but a little bit of the magic gets lost. The chart measures exactly how much is lost.

Step 3

The ruler: KL divergence ๐Ÿ“

How do we measure "how blurry"? We ask both brains the same questions and compare their answers. KL divergence = how different the two answers are.

KL divergence is a "difference meter": 0 = identical big = very different Lower KL = the shrunk brain talks just like the original. โœ…
Step 4

The chart: size vs. quality ๐Ÿ“‰

Now the picture comes together. Each dot is a different compression setting. Two axes:

โ†”๏ธ X-axis (sideways)
File size (GB)
left = smaller file
โ†•๏ธ Y-axis (up & down)
KL divergence
up = worse quality
KL โ†‘ (worse) file size โ†’ (smaller) IQ1 ยท 8GB IQ2 ยท 9GB Q3 ยท 12GB โญ Q4 ยท 16GB the sweet spot Q5 ยท 19GB Q6 ยท 22GB Q8 ยท 29GB
Step 5

The sweet spot = the elbow ๐Ÿฏ

Look at the bend in the curve. That's everything.

โ† Before the elbow
The file shrinks a LOT, but quality barely drops. Great deal. Shrink away!
Past the elbow โ†’
The file shrinks a little more, but quality falls off a cliff. Bad deal.

๐ŸŽฏ The sweet spot is the smallest file you can get before the cliff โ€” the last dot that's still low on the KL ruler. For these models that's usually 4-bit (Q4_K_M), around 16 GB: ~75% smaller, but still nearly as smart.

Step 6

Reading the dots on your chart ๐Ÿ”

The jargon decoded:

IQ1 / IQ2 = super aggressive (1โ€“2 bit) โ†’ tiny but dim Q4 / IQ4 = the sweet spot Q5 / Q6 / Q8 = gentle โ†’ big but sharp
"closer to BF16" = lower on the chart = more like the original brain. BF16 is the full-precision reference (KL = 0 by definition). Everything else is measured against it.