The invention provides a floating-point number quantization method and device, a floating-point number
inverse quantization method and device, equipment and a storage medium, and belongs to the technical field of
artificial intelligence. The method comprises: based on a compression rule, determining quantization information corresponding to an index of each floating-point number in floating-point numbers to be quantized, the quantization information corresponding to the index of each floating-point number comprising a
first quantization value and / or a
second quantization value, the compression rule comprises a rule that an index which indicates that quantization information with a low compression degree belongs to is greater than an index which indicates that quantization information with a high compression degree belongs to, and for each floating-point number in the floating-point numbers to be quantized, based on a
first quantization value corresponding to the floating-point number, performing quantization
processing on a mantissa of the floating-point number, and / or performing quantization
processing on the mantissa of the floating-point number based on a
second quantization value corresponding to the floating-point number. And quantizing the index of the floating-point number based on the second quantized value corresponding to the floating-point number. By adopting the method and the device, the required average error can be met during quantization.