How AWQ's Per-Channel Scaling Factors Are Derived

AWQ computes channel-specific scaling factors by averaging the magnitudes of elements within each column of the activation matrix (X) during an offline calibration phase. These FP16 scaling factors are then applied to the weight channels (W) before quantization, and inversely to the activation matrix (X) during inference, to ensure output accuracy is preserved.

Sources

Open the full topic