-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[fix] Fix model loading inconsistency after Peft training by using PeftModel #2980
Conversation
…orts in Matryoshka2dLoss.py
…d after the model is saved and loaded.
Also load a PEFT model if we have a T5 or MT5 model
Hello @pesuchin! Apologies for the radio silence on my part - this PR came right as the new backends were being introduced, and I was worried that they might clash. With some minor changes (e.g. an extra error if I also appreciate you answering some questions across the repository.
|
Resolves: #2465, #2979
Pull Request Overview
We have tried an implementation that uses PeftModel to load models trained by Peft.
Experiment
Evaluation Results of Experiment: Case of Using PeftModel
The following script was used to calculate the evaluation results.