Finetuning the Pruned Model - Finetuning the Pruned Model - 1.1 English - UG1333

AI Optimizer User Guide (UG1333)

Document_ID
UG1333
Release_Date
2020-07-07
Version
1.1 English

The performance of the pruned model will have a certain degree of decline and you need to fine-tune it to improve its performance. Finetuning a pruned model is basically the same as training model from scratch, except that the hype-parameters are different, such as initial learning rate, learning rate decay type, etc.

When pruning and fine-tuning is done, an iteration of pruning is completed. In general, to achieve higher pruning rate without significant loss of performance, the model needs to be pruned several times. After every iteration of "prune-finetune", you need to make two changes to the commands before you run the next pruning:

  1. Modify the --input_ckpt flag to a checkpoint file generated in previous fine-tuning process.
  2. Increase the value of --sparsity flag to prune more in the next iteration.