Closed Ixuanzhang closed 4 years ago
1、 (1)I do this and get a pruned model: model.bert.prune_heads(to_prune) (2) I set n_retrain_steps_after_pruning a value greater than 0 next: then:
to retrain my pruned model, that is ok?
2、I don't understand the difference between above method and retrain_pruned_heads(the following method)
THANK YOU !
Sorry for the late reply, did you figure this out?
1、 (1)I do this and get a pruned model: model.bert.prune_heads(to_prune) (2) I set n_retrain_steps_after_pruning a value greater than 0 next: then:
2、I don't understand the difference between above method and retrain_pruned_heads(the following method)
THANK YOU !