You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it correct to say that if pruning_periods = 1, then pruning_steps = how many steps before we prune once? If it makes more sense to prune after every epoch, i will set pruning_steps = steps_per_epoch.
What does pruning_periods do?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Yes, your understanding is correct. It makes sense to set pruning_steps = steps_per_epoch .
pruning_periods controls how many groups to be pruned incrementally. For example, if target_group_sparsity=0.7, pruning_periods=10, pruning_steps=200, then every pruning_steps /pruning_periods =20 steps will yield target_group_sparsity / pruning_periods =0.07 groups as redundant and project them onto zero.
Hello @tianyic ,
I see that
pruning_steps
determines how many steps we take before pruning:https://github.com/tianyic/only_train_once/blob/7e930f6ae6cab71659fb921671f6f3921828d7c4/only_train_once/optimizer/hesso.py#L29
Is it correct to say that if
pruning_periods = 1
, thenpruning_steps
= how many steps before we prune once? If it makes more sense to prune after every epoch, i will setpruning_steps = steps_per_epoch
.What does
pruning_periods
do?Thanks in advance!
The text was updated successfully, but these errors were encountered: