-
Notifications
You must be signed in to change notification settings - Fork 6k
[LoRA] parse metadata from LoRA and save metadata #11324
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
Merged
Changes from 5 commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
5139de1
feat: parse metadata from lora state dicts.
sayakpaul d8a305e
tests
sayakpaul ba546bc
fix tests
sayakpaul 25f826e
Merge branch 'main' into metadata-lora
sayakpaul 61d3708
key renaming
sayakpaul e98fb84
fix
sayakpaul 2f1c326
Merge branch 'main' into metadata-lora
sayakpaul d390d4d
Merge branch 'main' into metadata-lora
sayakpaul 201bd7b
resolve conflicts.
sayakpaul a771982
Merge branch 'main' into metadata-lora
sayakpaul 42bb6bc
smol update
sayakpaul 7ec4ef4
smol updates
sayakpaul 7f59ca0
load metadata.
sayakpaul ded2fd6
automatically save metadata in save_lora_adapter.
sayakpaul d5b3037
propagate changes.
sayakpaul bee9e00
changes
sayakpaul a9f5088
add test to models too.
sayakpaul 7716303
tigher tests.
sayakpaul 0ac1a39
updates
sayakpaul 4b51bbf
fixes
sayakpaul e2ca95a
rename tests.
sayakpaul 7a2ba69
Merge branch 'main' into metadata-lora
sayakpaul e0449c2
sorted.
sayakpaul 918aef1
Update src/diffusers/loaders/lora_base.py
sayakpaul 4bd325c
review suggestions.
sayakpaul e8bec86
removeprefix.
sayakpaul aa5cb3c
Merge branch 'main' into metadata-lora
sayakpaul 7bb6c9f
propagate changes.
sayakpaul 116306e
fix-copies
sayakpaul ae0580a
sd
sayakpaul f6fde6f
docs.
sayakpaul cbb4071
resolve conflicts.
sayakpaul 87417b2
fixes
sayakpaul 55a41bf
Merge branch 'main' into metadata-lora
sayakpaul 16dba2d
get review ready.
sayakpaul 023c0fe
Merge branch 'main' into metadata-lora
sayakpaul 67bceda
one more test to catch error.
sayakpaul 83a8995
merge conflicts.
sayakpaul d336486
Merge branch 'main' into metadata-lora
sayakpaul 4f2d90c
Merge branch 'main' into metadata-lora
sayakpaul 42a0d1c
Merge branch 'main' into metadata-lora
sayakpaul 9c32dc2
Merge branch 'main' into metadata-lora
linoytsaban 5d578c9
Merge branch 'main' into metadata-lora
sayakpaul 1c37845
Merge branch 'main' into metadata-lora
linoytsaban 2bf7fde
Merge branch 'main' into metadata-lora
sayakpaul 4304a6d
change to a different approach.
sayakpaul 425ea95
fix-copies.
sayakpaul e08830e
todo
sayakpaul 40f5c97
sd3
sayakpaul 5a2a023
update
sayakpaul 0ae3408
revert changes in get_peft_kwargs.
sayakpaul 99fe09c
update
sayakpaul f4d4179
fixes
sayakpaul 46f4726
fixes
sayakpaul c4bd1c7
Merge branch 'main' into metadata-lora
sayakpaul 1348463
simplify _load_sft_state_dict_metadata
sayakpaul ef16bce
update
sayakpaul 9cba78e
style fix
sayakpaul 28d634f
uipdate
sayakpaul e07ace0
update
sayakpaul c762b7c
update
sayakpaul c8c33d3
empty commit
sayakpaul aabfb5f
resolve conflicts.
sayakpaul a4f78c8
Merge branch 'main' into metadata-lora
sayakpaul e3e8b20
Merge branch 'main' into metadata-lora
sayakpaul 72b489d
resolve conflicts.
sayakpaul d952267
_pack_dict_with_prefix
sayakpaul 9bbc6dc
update
sayakpaul eb52469
TODO 1.
sayakpaul 461d2bd
todo: 2.
sayakpaul f78c6f9
todo: 3.
sayakpaul 0eba7e7
update
sayakpaul a4a15b5
update
sayakpaul 4588d83
Merge branch 'main' into metadata-lora
sayakpaul 47cad58
Merge branch 'main' into metadata-lora
sayakpaul 252fd21
Apply suggestions from code review
sayakpaul 29ff6f1
reraise.
sayakpaul 0007969
Merge branch 'main' into metadata-lora
sayakpaul cbc01a3
Merge branch 'main' into metadata-lora
sayakpaul 2cb9e46
Merge branch 'main' into metadata-lora
sayakpaul c0d5156
Merge branch 'main' into metadata-lora
sayakpaul 603462e
Merge branch 'main' into metadata-lora
sayakpaul 37a225a
move argument.
sayakpaul 1c03709
Merge branch 'main' into metadata-lora
sayakpaul 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
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.