Scale Factor
A proportional parameter in quantization used to map floating-point values onto an integer interval; it determines the step size and range of quantization.
Timeline (last 90 days)
Neural network weights are usually concentrated in a relatively small range around zero, and representing them as integers together with a scale factor and a zero-point can approximately recover the original values, which is the mathematical basis for the feasibility of integer quantization.
Scaling factors are used to map low-precision integers back to approximate floating-point values, usually computed per tensor or per channel group.
In absmax quantization, if the maximum weight is 10.8 and is mapped to the 8-bit integer upper limit of 127, the scaling factor is approximately 11.76.
The dequantization formula is float ≈ scale × (int - zero_point).
The conversion helper functions in the DeepGEMM-Ascend library pack scaling factors into 16-bit integer containers in pairs, arranged in MN-major layout.
All Facts (5)
Neural network weights are usually concentrated in a relatively small range around zero, and representing them as integers together with a scale factor and a zero-point can approximately recover the original values, which is the mathematical basis for the feasibility of integer quantization.
50%UnverifiedScaling factors are used to map low-precision integers back to approximate floating-point values, usually computed per tensor or per channel group.
50%UnverifiedIn absmax quantization, if the maximum weight is 10.8 and is mapped to the 8-bit integer upper limit of 127, the scaling factor is approximately 11.76.
50%UnverifiedThe dequantization formula is float ≈ scale × (int - zero_point).
50%UnverifiedThe conversion helper functions in the DeepGEMM-Ascend library pack scaling factors into 16-bit integer containers in pairs, arranged in MN-major layout.
50%