Match each weight-quantization regime to what it buys you and where it breaks
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
FP8 is near-lossless and native on new hardware, INT8 is a mature safe PTQ default, and INT4 buys 4x compression but needs AWQ or GPTQ to survive activation outliers.
Imagine shipping a thick textbook by mail and paying by weight. FP8 prints it on slightly thinner paper, half the weight, and you can barely tell. INT8 uses cheaper but still readable paper, a well-tested trick that almost never goes wrong. INT4 shrinks the text to a quarter of the weight, which is great for postage, but now some fine print blurs and you need a careful reprinting process to keep it legible. The blurry parts are usually a few unusually important words that hate being squished. Special methods rescale those words first so they survive. Why care about weight at all? Because the mail cost here is reading numbers from memory, and lighter packages arrive faster.
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.
4 min: place FP8, INT8, INT4 on the memory versus quality curve, explain activation outliers plus AWQ, GPTQ, SmoothQuant, then tie the win to decode being bandwidth-bound.
| Precision | Memory win | Quality | Calibration effort | Hardware note |
|---|---|---|---|---|
| FP8 (E4M3/E5M2) | ~2x | Near FP16 | Minimal | Native Hopper / Blackwell |
| INT8 (W8) | ~2x | Near lossless | PTQ + per-channel | Broadly portable |
| INT4 (W4) AWQ/GPTQ | ~4x | 1-3 pt drop | Group-wise + outlier-aware | Best decode latency |
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.
Treating all three precisions as interchangeable knobs. FP8, INT8, and INT4 sit at different points on the memory versus quality curve, and only INT4 routinely needs outlier-aware calibration.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.