Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inquiry about Pruning during Training #1

Open
mli-tian opened this issue Jul 3, 2024 · 1 comment
Open

Inquiry about Pruning during Training #1

mli-tian opened this issue Jul 3, 2024 · 1 comment

Comments

@mli-tian
Copy link

mli-tian commented Jul 3, 2024

I have thoroughly reviewed your code but have encountered some confusion. I believe that the prune function in the trainer.py file is responsible for the actual pruning. However, it appears that during the training process, only the mask is modified, and pruning is only performed before inference in the inference.py file. This seems to differ from the description in your paper. Am I misunderstanding something? If my understanding is incorrect, could you please point me to the code that handles pruning during training?

Thank you for your assistance.

@WoutDeRijck
Copy link
Contributor

As is described in Algorithm 1: Progressive pruning with LoRA-guided criterion in the paper. During training the model gets finetuned using lora adapters and a mask is computed. This mask is used during inference to make 50% of the weights 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants