AWQ Calibration: 5-20x Faster Than GPTQ

AWQ's calibration process is substantially quicker than GPTQ, finishing in 20 to 40 minutes for a 70B model on an A100, compared to GPTQ's 4 to 6 hours, due to AWQ's simpler one-dimensional search space without Hessian computations.

The top 3

  1. AWQ's Single Pass vs. GPTQ's Iterative Optimization: AWQ's calibration achieves its speed by performing a single forward pass to collect activation statistics and apply per-channel scaling, fundamentally avoiding the computationally intensive iterative optimization and reconstruction steps that characterize GPTQ's layer-by-layer calibration process. [5, 19]
  2. GPTQ's Hessian Bottleneck: Why AWQ Skips It: GPTQ's calibration is significantly slower due to its reliance on calculating and inverting the Hessian matrix, an iterative and matrix-heavy computation that becomes a major bottleneck, especially with larger models. AWQ bypasses this by avoiding Hessian computations entirely, instead using a simpler method of collecting activation statistics. [4, 7, 12]
  3. Quantization Time: 8B vs 70B Model Speed Differences: The speed advantage of AWQ calibration is substantial in practice: an 8B model can be quantized with AWQ in approximately 10 minutes, compared to 20-60 minutes for GPTQ. For larger 70B models, AWQ takes around 1 hour, while GPTQ can require 4 hours or more. [4]

Sources

Open the full topic