Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Lower bit-width shrinks weight bytes near-proportionally, which speeds bandwidth-bound decode; but sub-8-bit needs calibration or salient-channel protection, and INT4 tensor-core support is generation-specific.
Imagine shipping a library by truck. The text is what matters, but the paper and ink are heavy, so the truck moves slowly. Shrinking the model is like reprinting every book on thinner paper with smaller type. FP8 is a modest trim that barely hurts readability. INT4 is aggressive shrinkage, so you must reprint carefully, keeping the important headings legible, or the books become unreadable. A lighter truck arrives faster, and since the trip was slowed by weight rather than reading speed, halving the cargo weight nearly halves the travel time. But not every depot owns the gear to handle the thinnest paper, so some have to puff the pages back up before anyone can read them.
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.
3 min: bandwidth-bound decode, then memory savings scale with bits, then FP8 keeps range, then INT4 needs AWQ or GPTQ, then hardware support is generation-specific, then W4A16 dequantize overhead.
| Format | Memory vs FP16 | Quality risk | Calibration need |
|---|---|---|---|
| FP8 (E4M3) | ~2x | Near-zero on Hopper/Blackwell | Minimal; exponent absorbs range |
| INT8 (per-channel) | ~2x | Low; small drop | PTQ calibration set |
| INT4 (AWQ/GPTQ) | ~4x | Moderate; 1-3 point drop | Group scales plus salient protection |
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.
Assuming fewer bits always means proportionally faster matmul. The decode speedup comes from reading fewer weight bytes, not from cheaper arithmetic; many low-bit paths still compute in FP16.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.