Torch-Pruning icon indicating copy to clipboard operation
Torch-Pruning copied to clipboard

How to choose layers to NOT prune?

Open aidevmin opened this issue 1 year ago • 2 comments

@VainF I want to specify layers that is not pruned. Beside the last layer that related to number of classes, do you have any recommend of not-pruned layers? As my understading, we should keep first layers, because it have large effect on model's performance.

aidevmin avatar Oct 18 '23 09:10 aidevmin

Hi @aidevmin, this is a case-by-case problem. We can only have some empirical designs such as ignoring the first layer during pruning.

VainF avatar Oct 19 '23 09:10 VainF

@VainF Thanks, I think so. We need to keep the last layer related to number of classes and the first layer. I have one more questions. Do you have any recommed for number of epochs when using Group-BN, Group-GReg and your method with sparse training? If this number is larger, it can increase total training time.

aidevmin avatar Oct 20 '23 02:10 aidevmin