AWQ determines optimal per-layer scaling factors through a fast grid search, typically evaluating 20 `alpha` values between 0 and 1. This process minimizes layer-output reconstruction error on a calibration dataset, avoiding computationally expensive gradient descent due to non-differentiable quantization.