AWQ's Calibration Search: Optimizing Scales with Activation Insights
AWQ employs a greedy search algorithm during calibration to determine optimal per-channel scaling factors. This search directly leverages the identified activation magnitudes to minimize quantization error, thereby protecting critical weights and preserving model performance effectively.
The top 3
- AWQ's 1D Grid Search for Optimal Scaling: AWQ's calibration search optimizes scaling factors by performing a rapid grid search over a single hyperparameter, 'alpha' (typically 20 values between 0 and 1), minimizing reconstruction error on a small calibration dataset of around 128 samples.
- 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.
- Core Scaling Formula: Activation Magnitude & Alpha: AWQ computes per-channel scaling factors `s_j` using the formula `s_j = a_j^alpha`, where `a_j` represents the average per-channel magnitude of activations observed during calibration, and `alpha` is the hyperparameter optimized to protect salient weights.
Sources
Open the full topic