Plain rounding quantizes every weight the same way, but a few weights matter far more than the rest, and the activations that flow through them can be extreme: bitsandbytes notes that hidden-state values are usually in a small range, but for large models they can reach far outside it, and 8-bit quantization works well for values around 5 but degrades beyond that. Activation-aware methods handle this by protecting the important weights: AWQ preserves a small fraction of the weights that are important for performance, and LLM.int8() dynamically keeps higher precision for critical computations.
What you need
- A model you plan to quantize
- A test set that exercises the model hard inputs
- Two quantization methods: one plain, one activation-aware
Step 1: Quantize with plain rounding first
Quantize the model with a plain method and measure quality on the test set. If the loss is small, plain rounding is enough and the simpler method wins.
Step 2: Check whether outliers drive the loss
Look at where the quantized model fails. If the failures cluster on inputs with extreme values, or the loss is concentrated in a few layers, activation outliers are likely the cause.
Step 3: Quantize with an activation-aware method and compare
Quantize the same model with AWQ or LLM.int8(), which protect the important weights, and measure on the same test set. Keep the activation-aware result only when it clearly beats plain rounding on your inputs.
Worked example: synthetic activation-aware comparison
The table below is a synthetic example. It shows the expected result of comparing two approaches; no model was quantized.
| Method | Outlier inputs | Quality loss |
|---|---|---|
| Plain rounding | Large loss | Large |
| AWQ | Small loss | Small |
| LLM.int8() | Small loss | Small |
| Plain rounding, normal inputs | Small loss | Small |
Expected result (UNTESTED). activation-aware methods lose little on outlier inputs, while plain rounding loses a lot there. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- Activation-aware methods cost more to quantize, since they must find the important weights first.
- A good default outlier threshold for LLM.int8() is 6, but unstable models may need a lower one.
- If your inputs never produce outliers, activation-aware quantization buys nothing over plain rounding.
- Protecting weights helps quality, not speed: the quantized model is not automatically faster.
