Match each post-training quantization method to what it protects against
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Each quantization method fixes a different failure mode: GPTQ minimizes second-order error, AWQ protects salient weight channels, SmoothQuant migrates activation outliers, and FP8 leans on wider dynamic range.
Imagine compressing a detailed photo into far fewer colors. If you pick colors blindly, the important bright spots turn into ugly blotches. Different methods fix this differently. One studies which pixels matter most and rounds those carefully (GPTQ). One notices a few super-bright pixels dominate and scales them up before compressing so they survive (AWQ). One realizes the brightness problem actually lives in the lighting, not the photo, and shifts the glare onto the photo where it is easier to handle (SmoothQuant). And one just uses a color format that already spans a wider brightness range, so no special trick is needed (FP8). Same goal, lower bits, but each guards against a different way the picture would otherwise get wrecked.
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: split weight-only INT4 (AWQ, GPTQ) from W8A8 INT8 (SmoothQuant) and FP8 cast-and-go, then explain each failure mode and the pick rule for 70B decode.
| Method | What it quantizes | Failure mode it fights | Typical bit width |
|---|---|---|---|
| GPTQ | Weights only | Cumulative layer reconstruction error | INT4 / INT3 |
| AWQ | Weights only | Destruction of salient weight channels | INT4 |
| SmoothQuant | Weights and activations | Activation outliers blocking INT8 | INT8 (W8A8) |
| FP8 cast-and-go | Weights (and often activations) | Narrow dynamic range of INT8 | FP8 (E4M3) |
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 four as interchangeable INT4 tricks. They differ on what they quantize (weights only vs weights and activations) and which failure mode they target (salient channels, layer error, or activation outliers).
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.