What is AWQ?
AWQ (Activation-aware Weight Quantization) is a post-training, weight-only quantization method that uses activation distributions to identify salient weight channels and searches equivalent per-channel scaling that reduces their quantization error without retaining a mixed-precision subset.
Quick Facts
| Full Name | Activation-aware Weight Quantization |
|---|---|
| Created | 2023 by Ji Lin et al. (MIT) |
| Specification | Official Specification |
How It Works
AWQ starts from the observation that a small fraction of weight channels can be especially important for model output when viewed through activation magnitudes. It collects activations from a calibration set, searches channel scaling factors, and applies an equivalent transformation before low-bit weight quantization. The published method does not require backpropagation or weight reconstruction. AWQ describes how an artifact is produced; it does not guarantee a specific file size, latency, throughput, or quality level. Those outcomes depend on the base checkpoint, calibration coverage, bit width, group size, packing layout, runtime kernel, hardware, and workload. AWQ and GPTQ therefore require controlled comparison rather than a universal ranking.
Key Characteristics
- Post-training and weight-only quantization method
- Uses activation distributions to identify salient weight channels
- Applies equivalent per-channel scaling to reduce quantization error
- Does not require backpropagation or weight reconstruction
- Requires representative calibration data and a pinned recipe
- Depends on compatible packing layouts, runtime kernels, and hardware
Common Use Cases
- Evaluating low-bit weight artifacts for GPU inference
- Reducing weight memory traffic when a supported kernel is available
- Packaging an LLM for a runtime with verified AWQ compatibility
- Comparing weight-only methods under a controlled calibration contract
- Increasing serving capacity after business quality and goodput validation
Example
Loading code...Frequently Asked Questions
How does AWQ work?
AWQ observes activation distributions from a calibration set to identify salient weight channels. It then searches equivalent per-channel scaling that makes those weights easier to quantize. The corresponding inverse scaling is applied to activations, preserving the original linear operation before rounding error is introduced.
Is AWQ always more accurate than GPTQ?
No. AWQ and GPTQ optimize weight quantization differently, and neither has a universal quality advantage. Results depend on the checkpoint, calibration data, recipe, evaluation tasks, and implementation. Compare artifacts derived from the same baseline with the same tokenizer, chat template, workload, and quality gates.
Does AWQ make inference faster?
Only when the runtime and hardware provide an efficient kernel for the artifact's exact packing layout. Reduced weight traffic can improve performance, but dequantization overhead, operator fallback, small batches, KV-cache pressure, or repacking can erase the gain. Measure TTFT, inter-token latency, throughput, and goodput.
How much calibration data does AWQ need?
There is no universal sample count. The calibration set must represent production languages, domains, prompt lengths, tools, and sensitive task slices. Record the dataset revision, sampling policy, and checksum, then test whether the selected scales remain stable and preserve downstream behavior.
Which runtimes support AWQ?
Runtime compatibility changes by version, model architecture, tensor layout, kernel, and hardware. Consult the target runtime's current official support matrix, pin the version, verify the loaded kernel path, and benchmark the exact artifact. Successful loading alone does not prove an efficient or correct production path.