-
Couldn't load subscription status.
- Fork 6.5k
[Flux LoRA] fix issues in flux lora scripts #11111
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 9 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
298709e
remove custom scheduler
linoytsaban 364f478
update requirements.txt
linoytsaban 90e9517
log_validation with mixed precision
linoytsaban d90d7f0
Merge branch 'main' into flux_lora_advanced
linoytsaban bdd6cae
add intermediate embeddings saving when checkpointing is enabled
linoytsaban c8e165b
remove comment
linoytsaban d434db3
Merge remote-tracking branch 'origin/flux_lora_advanced' into flux_lo…
linoytsaban 710fcae
fix validation
linoytsaban 2d8ca60
Merge branch 'main' into flux_lora_advanced
linoytsaban 0565932
add unwrap_model for accelerator, torch.no_grad context for validatio…
linoytsaban ba4dece
revert unwrap_model change temp
linoytsaban c155f22
add .module to address distributed training bug + replace accelerator…
linoytsaban 9c4368d
changes to align advanced script with canonical script
linoytsaban 7492e92
make changes for distributed training + unify unwrap_model calls in a…
linoytsaban 0729c66
add module.dtype fix to dreambooth script
linoytsaban cc1d2ad
unify unwrap_model calls in dreambooth script
linoytsaban 07c2974
Merge branch 'main' into flux_lora_advanced
linoytsaban 603b57c
Merge branch 'main' into flux_lora_advanced
linoytsaban e5636f0
Merge branch 'main' into flux_lora_advanced
linoytsaban 8bf49c7
fix condition in validation run
linoytsaban b211eea
Merge branch 'main' into flux_lora_advanced
linoytsaban 9b2917f
mixed precision
linoytsaban 22046d1
Merge branch 'main' into flux_lora_advanced
linoytsaban f1af7e2
Merge branch 'main' into flux_lora_advanced
linoytsaban 8dc7005
Merge branch 'main' into flux_lora_advanced
linoytsaban d8ef75f
Merge branch 'main' into flux_lora_advanced
linoytsaban bfd8d45
Merge branch 'main' into flux_lora_advanced
linoytsaban 5d249a7
Update examples/advanced_diffusion_training/train_dreambooth_lora_flu…
linoytsaban a4b1e7f
Merge branch 'main' into flux_lora_advanced
linoytsaban 57ee3cf
smol style change
linoytsaban 8b991a5
change autocast
linoytsaban bfd1df6
Apply style fixes
github-actions[bot] c978ca3
Merge branch 'main' into flux_lora_advanced
linoytsaban 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| accelerate>=0.16.0 | ||
| accelerate>=0.31.0 | ||
| torchvision | ||
| transformers>=4.25.1 | ||
| transformers>=4.41.2 | ||
| ftfy | ||
| tensorboard | ||
| Jinja2 | ||
| peft==0.7.0 | ||
| peft>=0.11.1 | ||
| sentencepiece |
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.
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.
I think this is only needed for the intermediate validation. Do we need to check for that?
Uh oh!
There was an error while loading. Please reload this page.
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.
Yeah I think you're right, tested it now and seems to work as expected, changed it now