Naive rounding works for INT8 but falls apart at INT4, so the good 4-bit methods are smarter about which weights to round which way. GPTQ quantizes weights one layer at a time, using a small calibration dataset to figure out how rounding each weight will affect the layer output, then adjusting the remaining weights to compensate. AWQ starts from the observation that not all weights matter equally: a small fraction of weights, multiplied by large activations, carry most of the model behaviour, and AWQ protects those salient weights by scaling.
What you need
- The model you want to quantize and whether it is instruction-tuned
- Your serving stack, such as vLLM, TGI or Transformers
- A test task to compare the two methods on
Step 1: Note how each method works
GPTQ needs a calibration pass of a few hundred sample sequences, which takes minutes to a couple of hours depending on model size, but only happens once. AWQ identifies salient weights using activation statistics and protects them, and is fast to apply.
Step 2: Match the method to the model
Use GPTQ or AWQ for 4-bit GPU serving. AWQ often edges out GPTQ on instruction-tuned models and is faster to apply, so it is the usual first try for an instruct model.
Step 3: Test both on your task if unsure
Quantize the same model both ways and run your test task on each. The quality difference is small and task-dependent, so your own task is the tie-breaker, not a benchmark table.
Worked example: synthetic GPTQ versus AWQ comparison
The table below is a synthetic example. It shows the expected result of comparing the two methods; no model was quantized.
| Method | How it protects quality | Best for |
|---|---|---|
| GPTQ | Error correction per layer, calibration set | General 4-bit |
| AWQ | Protects salient weights by activation | Instruction-tuned models |
| Quality retention | Both about 98 to 99 percent vs FP16 | Tie – test on your task |
| Speed to apply | AWQ faster | AWQ picked |
Expected result (UNTESTED). both methods retain about 98 to 99 percent of FP16 quality, and AWQ is picked for the instruction-tuned model because it is faster to apply. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- For most people quantizing a model to run it, use GPTQ or AWQ for 4-bit, and reach for GGUF if you are running on llama.cpp.
- Serving on a GPU with vLLM or TGI calls for GPTQ or AWQ at 4-bit; check the stack supports the format you pick.
- AWQ tends to preserve quality well, especially for instruction-tuned models, but the difference is small.
- Whatever you pick, test the quantized model on your real workload before shipping it.
