-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[WIP] ENH: Adapter injection based on state_dict #2637
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
Merged
BenjaminBossan
merged 30 commits into
huggingface:main
from
BenjaminBossan:enh-inject-adapter-based-on-state_dict
Aug 1, 2025
Merged
Changes from 26 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
0219529
[WIP] ENH: Adapter injection based on state_dict
BenjaminBossan c8b96b8
Fix small bug
BenjaminBossan 7bcea4c
Refactor low level API tests to use pytest
BenjaminBossan 73f53b1
Add fix for VeRA + direct injection
BenjaminBossan ae2258a
Add default target_modules for LoHa and LoKr
BenjaminBossan bac32c6
Add **kwargs to PEFT model classes __init__
BenjaminBossan 28bf441
Add tests, fix a few small issues
BenjaminBossan 699757d
Remove __init__ methods from PEFT models
BenjaminBossan 34a5bc0
Remove VeRA changes
BenjaminBossan a04ae0d
Add documentation
BenjaminBossan 32a1fb2
FEAT Add SHiRA Adapters (#2584)
kkb-code 571a055
FIX: Prompt learning methods modules_to_save issue (#2646)
BenjaminBossan 8d46c76
FIX Deploy method comp app: error in workflow file (#2645)
BenjaminBossan d7e9436
FEAT Allow LoRA to target nn.Parameter (#2638)
BenjaminBossan cc379fe
Update README.md (#2659)
cx-alberto-simoes 47c4a6d
FIX Prefix tuning after transformers PR 38635 (#2662)
BenjaminBossan e253b59
make method comparison device agnostic, so it can expand to more acce…
yao-matrix ecfdab8
Update tokenizer parameter in sfttrainer across multiple examples (#2…
gapsong a36a653
DOC Fix error in code example (#2666)
qgallouedec 83ec3c5
ENH Llama-Adapters support for GPT2 (#2643)
efraimdahl 7d73b01
Method Comparison: Improve formatting/layout of table (#2670)
githubnemo ecf10f8
ENH: Targeting multiple parameters on the same module (#2665)
BenjaminBossan 1264b9d
Update extending vocab docs (#2669)
githubnemo 1683838
Merge branch 'main' into enh-inject-adapter-based-on-state_dict
BenjaminBossan 0241bc6
Fix for SHiRA
BenjaminBossan fe1223c
Merge branch 'main' into enh-inject-adapter-based-on-state_dict
BenjaminBossan 3f0c9bd
Reviewer feedback
BenjaminBossan 54c1364
Merge branch 'main' into enh-inject-adapter-based-on-state_dict
BenjaminBossan 53b5da1
Merge branch 'main' into enh-inject-adapter-based-on-state_dict
BenjaminBossan eacb767
Fix for get_base_model call
BenjaminBossan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.