-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[PEFT
] Adapt example scripts to use PEFT
#5388
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
2cbc52a
adapt example scripts to use PEFT
younesbelkada b86543f
Update examples/text_to_image/train_text_to_image_lora.py
younesbelkada af99c12
fix
younesbelkada cee4255
Merge remote-tracking branch 'upstream/main' into adapt-example-peft
younesbelkada 89d4bed
add for SDXL
younesbelkada 4281913
oops
younesbelkada b18d0e8
Merge remote-tracking branch 'upstream/main' into adapt-example-peft
younesbelkada 6a48ad0
make sure to install peft
younesbelkada 069a929
fix
younesbelkada 11fd6f5
Merge remote-tracking branch 'upstream/main' into adapt-example-peft
younesbelkada e4b0f1d
fix
younesbelkada 62c33c0
fix dreambooth and lora
younesbelkada a1e1cdf
more fixes
younesbelkada c3d3002
add peft to requirements.txt
younesbelkada 340150b
fix
younesbelkada dff2995
final fix
younesbelkada f9d1b5b
Merge branch 'main' into adapt-example-peft
sayakpaul 978d0cd
add peft version in requirements
younesbelkada f171404
remove comment
younesbelkada a2f3f20
change variable names
younesbelkada 14b0dd2
add few lines in readme
younesbelkada 8b3b773
Merge branch 'main' into adapt-example-peft
sayakpaul b21064f
add to reqs
younesbelkada 7827851
Merge remote-tracking branch 'upstream/main' into adapt-example-peft
younesbelkada b4e108b
style
younesbelkada 17739ae
Merge branch 'main' into adapt-example-peft
younesbelkada 75c3948
fix issues
younesbelkada 1e94c4b
fix lora dreambooth xl tests
younesbelkada 18552c4
Merge branch 'main' into adapt-example-peft
sayakpaul fe85d1e
Merge branch 'main' into adapt-example-peft
sayakpaul ada6ad8
init_lora_weights to gaussian and add out proj where missing
sayakpaul 252dcda
ammend requirements.
sayakpaul 90b760a
ammend requirements.txt
sayakpaul 0692a13
Merge branch 'main' into adapt-example-peft
sayakpaul f27fb29
Merge branch 'main' into adapt-example-peft
sayakpaul 99df659
Merge remote-tracking branch 'upstream/main' into adapt-example-peft
younesbelkada 32ffcf1
Merge branch 'adapt-example-peft' of https://github.com/younesbelkada…
younesbelkada 57516ed
add correct peft versions
younesbelkada 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 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ transformers>=4.25.1 | |
ftfy | ||
tensorboard | ||
Jinja2 | ||
peft==0.7.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ transformers>=4.25.1 | |
ftfy | ||
tensorboard | ||
Jinja2 | ||
peft==0.7.0 |
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@younesbelkada in your previous iterations, we were missing "to_out.0" in the
target_module
for some scripts. I have added that.