Model compression method, device, equipment and storage medium
Патент · CN A
Полный текст
The application provides a model compression method, device, equipment and storage medium. The method comprises the steps of obtaining a target model, splitting the target model to obtain a plurality of target sub-models, generating a plurality of corresponding compression parameter sets according to a plurality of preset compression algorithms and target sub-model structures for each target sub-model, respectively compressing each target sub-model by adopting each preset compression algorithm and the corresponding plurality of compression parameter sets to obtain a plurality of corresponding compression sub-models of each target sub-model, transmitting the corresponding plurality of compression sub-models and sub-model input data to model test equipment for each target sub-model, enabling the model test equipment to conduct reasoning performance test on each compression sub-model to obtain sub-model performance test results, receiving each sub-model performance test result transmitted by the model test equipment, screening out the target compression sub-model according to each sub-model performance test result, and generating the target compression model based on the target compression sub-model.