The application provides a weight
data processing method, device, medium and product of a neural
network model, and relates to the technical field of
machine learning. The method comprises the following steps: performing quantization
processing on an initial weight matrix obtained by training a neural
network model after splitting the initial weight matrix, to obtain a significant
quantization matrix and a non-significant
quantization matrix; obtaining a
significant difference matrix based on the initial weight matrix and the significant
quantization matrix and storing the
significant difference matrix, obtaining a non-
significant difference matrix based on the initial weight matrix and the non-significant quantization matrix and storing the non-significant difference matrix; then, determining a weight matrix used for
model inference based on a target number of significant difference matrices, a target number of non-significant difference matrices, the significant quantization matrix and the non-significant quantization matrix; and during
model inference, obtaining weight matrices with different bit numbers according to memory occupation information, so that better
model inference effects are obtained without increasing the calculation overhead, the
utilization rate of the memory is improved, and the maximum utilization of the memory is realized.