Weight quantization in plain terms: what changes and what stays the same?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Weight quantization stores model weights in a lower bit-width (FP8, INT8, INT4) than the FP16 baseline so each decode step streams fewer bytes from HBM; activations usually stay in higher precision and the matmul
Imagine a giant library where every book is written in a large, fancy font that takes up lots of shelf space. Picture the same library rewritten in a smaller font. The story is the same, the words mean the same thing, but each book is thinner so you can grab one off the shelf faster. The reader (the GPU) still understands the smaller font fine. The lights and chairs in the library (the running-around numbers and the actual reading) stay normal-sized. The whole point is that fetching books from the shelf was the slowest step, so making the books thinner makes the whole library run faster. The technique that compresses a model's learned numbers this way is what people mean by weight compression.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
2 min: weights shrink to FP8 / INT8 / INT4, activations stay FP16 / BF16, matmul either dequantizes on the fly or runs native low-bit on H100 / B200, and the win is fewer bytes streamed per decode step in a bandwidth-bound regime.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Thinking quantization shrinks everything in the model. Only the stored weights move to a lower bit-width; activations typically stay in FP16 or BF16, and the matmul may even upcast back to higher precision before doing the multiply.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.