Notes

AWQ

Quantization error does not spread itself evenly over a model's quality. A small fraction of weight channels — the ones multiplying the largest activations — carry most of the damage when precision drops. AWQ, activation-aware weight quantization, is built entirely around protecting those.

The trick

Importance is read off the activations, not the weights: a channel matters if large values flow through it, which a short calibration pass measures. Keeping that one percent of channels in 16 bits would work, but produces a mixed-precision kernel nobody wants to write. Instead AWQ scales the salient channels up before rounding and folds the inverse scale into the preceding operation — mathematically the same network, except the important channels now span more of the integer grid and absorb proportionally less rounding error. Everything stays uniform 4-bit.

Why it travels well

AWQ fits only per-channel scales. There is no backward pass and no layer-by-layer reconstruction against the calibration data, so the result does not overfit the calibration set: a model quantized on general web text holds up on code or another language. That is the usual weak point of methods that regress weights onto a few hundred sample sequences, GPTQ among them.

In practice

4-bit AWQ checkpoints are a standard way to serve a 7B to 70B model on one GPU: a 70B model drops from roughly 140 GB of 16-bit weights to about 35 GB, and vLLM and Hugging Face Transformers load the format directly. Decoding is bound by memory bandwidth, so smaller weights raise tokens per second as well as fitting the card.

AWQ, activation-aware weight quantization, compresses model weights to 4 bits while protecting the small share of channels carrying the largest activations: those channels are scaled up before rounding, with the inverse scale folded into the preceding layer, so they absorb less quantization error and the format stays uniform. It needs one short calibration pass, no retraining, and generalises beyond the calibration data — which is what makes 4-bit serving in vLLM routine.

Shrinking an AI model means storing its billions of internal numbers less precisely, and that always costs a little accuracy. AWQ is a smarter way to spend that cost. Before shrinking anything, it watches the model work on a sample of text to see which numbers actually carry the heavy traffic. Those few are handled carefully; the rest are rounded freely. The result is a model about a quarter of its original size that answers nearly as well as before — which is what lets a large assistant run on a single graphics card instead of a rack of them.