AWQ, or Activation-aware Weight Quantization, starts from the observation that not all weights matter equally. A small fraction of weights, the ones multiplied by large activations, carry most of the model behaviour. AWQ identifies these salient weights using activation statistics and protects them by scaling, so the important channels keep their precision while the rest get quantized aggressively. It is fast to apply and tends to preserve quality well, especially for instruction-tuned models, which makes it the better choice over plain rounding when the model must follow instructions.
What you need
- The model you want to quantize and whether it is instruction-tuned
- A calibration set of representative text
- A test set of instruction-following tasks
Step 1: Check the model is instruction-tuned
AWQ advantage is largest on instruction-tuned models, where a few salient channels matter most. For a base model used for plain completion, the gain over GPTQ is smaller.
Step 2: Quantize with AWQ at 4-bit
Run the AWQ quantization pass with your calibration data, so the salient weights are identified from activations on text like your real workload. The pass is fast compared with GPTQ, which needs a longer calibration.
Step 3: Test instruction following, not just perplexity
Run the quantized model on instruction tasks you care about and compare with the full-precision model. Two methods can have similar perplexity but behave differently on instruction following.
Worked example: synthetic AWQ check on an instruction-tuned model
The table below is a synthetic example. It shows the expected result of quantizing with AWQ; no model was quantized.
| Method | Perplexity rise | Instruction tasks pass |
|---|---|---|
| Plain 4-bit rounding | Several percent | 6 of 10 |
| AWQ 4-bit | Under 1 percent | 9 of 10 |
| GPTQ 4-bit | Under 1 percent | 8 of 10 |
| Decision | AWQ chosen | Best instruction score |
Expected result (UNTESTED). AWQ keeps perplexity close to the original and passes 9 of 10 instruction tasks, beating plain rounding. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- AWQ protects weights that matter for large activations; it does not help if the damage comes from somewhere else.
- AWQ needs activation statistics from calibration data that resembles your real workload.
- For serving on a GPU with vLLM, GPTQ or AWQ at 4-bit are both reasonable; AWQ often edges out GPTQ on instruction-tuned models.
- Small models under 7B are more sensitive to any 4-bit quantization, whatever method you choose.
