AWQ's Speed Advantage: Faster Calibration & Inference

AWQ calibrates a 70B model in 20-40 minutes, significantly faster than GPTQ's 4-6 hours, by only requiring activation statistics. For inference, AWQ also shows superior throughput, completing tasks in 4.96s compared to GPTQ's 8.78s on Mistral 7B with an A100 GPU.

The top 3

  1. AWQ's Calibration Speed: Up to 20x Faster than GPTQ: AWQ quantizes significantly faster, completing calibration for a 70B model in 20-40 minutes on a single A100 GPU, compared to GPTQ's 4-6 hours. This speedup, often 5-20 times faster, is due to AWQ requiring fewer calibration samples (128-512 vs. 2048+ for GPTQ) and not needing to compute complex Hessian matrices.
  2. AWQ's Inference Edge: Up to 1.8x Faster than GPTQ: AWQ delivers faster inference speeds, with benchmarks showing it can be 1.8 times quicker than GPTQ on a Mistral 7B model using an A100 GPU (4.96s vs 8.78s). For Mistral 7B on A100 80GB, AWQ-INT4 achieved 42 tokens/second, a 10.5% throughput improvement over GPTQ's 38 tokens/second.
  3. Core Speed Mechanism: Activation-Aware Scaling: AWQ's speed advantage stems from its 'activation-aware' approach, which identifies and scales approximately 1% of critical weight channels based on activation magnitudes before quantization. This process avoids complex, computationally expensive steps like backpropagation or materializing Hessian matrices, and the inverse scaling is 'folded' into the model, eliminating mixed-precision overhead during inference.

Sources

Open the full topic