Hello,
I’m currently evaluating your pruning method and encountered an issue while trying to save the complete pruned model (not just the state_dict). My goal is to extend the pruned model and fine-tune it for my application, but I’m running into difficulties saving the pruned version correctly.
I’ve attempted the following:
- Reusing the load_pruned_checkpoint function.
- Modifying torch.save in logging.py to save the complete model.
However, in both cases, the saved model appears to have the same number of parameters as the original model, which leads me to believe that both methods are still saving the original (unpruned) model, not the pruned version.
To clarify my current test setup: I modified dino.sh to target only the dino_vitb16 model, use the pets dataset, and focus on the highest pruning ratio (to save time). I’m running this setup on a Colab instance with an A100 GPU.
Could you please suggest the correct approach to save and work on the pruned model?
Thank you for your help!
Regards,
Vishnu
Hello,
I’m currently evaluating your pruning method and encountered an issue while trying to save the complete pruned model (not just the state_dict). My goal is to extend the pruned model and fine-tune it for my application, but I’m running into difficulties saving the pruned version correctly.
I’ve attempted the following:
However, in both cases, the saved model appears to have the same number of parameters as the original model, which leads me to believe that both methods are still saving the original (unpruned) model, not the pruned version.
To clarify my current test setup: I modified dino.sh to target only the dino_vitb16 model, use the pets dataset, and focus on the highest pruning ratio (to save time). I’m running this setup on a Colab instance with an A100 GPU.
Could you please suggest the correct approach to save and work on the pruned model?
Thank you for your help!
Regards,
Vishnu