AI Hardware & Software Stack
In post-training quantization of activations to INT8, what is the purpose of calibration?
- ARunning representative input data to observe each layer's activation range and set the quantization scales
- BPrecisely adjusting the GPU clock
- CAdjusting how colors appear on a screen
Show answer and explanation
Answer: A. Running representative input data to observe each layer's activation range and set the quantization scales
Weights are fixed once training ends, but activation values vary with the input. So a few hundred inputs resembling real usage are run through the model to observe each layer's activation range and distribution, and the range mapped onto INT8's -127 to 127 (the scale) is chosen. Matching the maximum lets outliers waste resolution, so the range is sometimes narrowed to cover most of the distribution.
- A. Correct. How the range is chosen affects accuracy.
- B. It is not clock adjustment.
- C. It is not display adjustment.