-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Fix model loading inconsistency after Peft training by using Pe…
…ftModel (#2980) * Fix 'module object is not callable' error by changing to relative imports in Matryoshka2dLoss.py * run formatter * add: Load fine-tuned model by Peft and LoRa * fix: must run peft load test * fix: Using PeftConfig and PeftModel * fix: Remove unnecessary peft package check implementation * fix: remove peft * fix: bug * fix: delete breakpoint and monkeypatch * fix: run format * fix: format * fix: add peft in dev environment * add: More test cases to verify if the encoded vectors match before and after the model is saved and loaded. * fix: format * Rely on is_peft_available more, error if backend != "torch" Also load a PEFT model if we have a T5 or MT5 model --------- Co-authored-by: ryoji.nagata <ryoji.nagata@uzabase.com> Co-authored-by: Tom Aarsen <Cubiegamedev@gmail.com>
- Loading branch information
1 parent
7be3eac
commit 6baee57
Showing
3 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters