GPTQ, AWQ, SmoothQuant: Top 3 Advanced PTQ for LLMs

GPTQ excels in low-bit weight accuracy but is slower to quantize, while AWQ balances accuracy and speed, often showing less degradation than GPTQ at very low bit-widths. SmoothQuant enables efficient W8A8 (8-bit weights and activations) inference by addressing activation outliers, improving over basic W8A8 PTQ for high inference speed.

The top 3

  1. Core Quantization Strategies: GPTQ vs. AWQ vs. SmoothQuant: GPTQ minimizes layer-wise weight reconstruction error using approximate second-order information; AWQ selectively scales and protects critical weights based on activation magnitudes; SmoothQuant mathematically shifts activation outliers to weights, enabling 8-bit weights and activations (W8A8).
  2. Accuracy & Speed: Which Quantization Reigns at 4-bit?: AWQ generally exhibits less accuracy degradation than GPTQ, particularly at 3-bit and 4-bit precision, often outperforming it by 0.1-0.3 perplexity on benchmarks like LLaMA-2/3. SmoothQuant, by enabling W8A8 quantization, achieves up to 1.56x speedup and 2x memory reduction with negligible accuracy loss for large models.
  3. GPTQ, AWQ, SmoothQuant: Core Strategies Compared: GPTQ employs Hessian-based per-channel weight quantization, AWQ uses activation-aware weight scaling to protect salient weights, while SmoothQuant addresses activation outliers by smoothing them into weights before quantization.

Sources

Open the full topic