-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Enhancements and refactoring of LoRA method (#695)
* refactor lora and add utils 1. Refactor LoRA code 2. Add method to delete LoRA adapters 3. Add method to unload the PEFT LoRA model. 4. Add `svd` weighted adapter support. 5. minor fixes * fixes * fixes * Update lora.py * fixes * Update lora.py * docstrings for the added public APIs * docs * Update src/peft/tuners/lora.py Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com> * resolve comments, refactoring and adding tests * fix the remaining failing tests --------- Co-authored-by: Benjamin Bossan <BenjaminBossan@users.noreply.github.com>
- Loading branch information
1 parent
61a8e3a
commit 86ad5ce
Showing
10 changed files
with
450 additions
and
111 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
Oops, something went wrong.