PoC: Rewrite fine_tune.py as train_native.py #1950
Open
+1,977
−870
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.
Referring to Issue #1947 and PR #1359 .
fine_tune.py
can be merged with the concepts intrain_network.py
, and becomestrain_native.py
.--skip_until_initial_step
,--validation_split
) has been added,--mem_eff_attn
,--xformers
which applies for more aggressive checking (probable still VAE only?)Tested with SDXL with this CLI command (hint: many features):
And the following
accelerate config
:(A bit off topic) It runs for around 15.5s / it (4 cards x 4 accumulation steps) with 4x RTX 3090 24GB (X299 DARK, 10980XE, P4510 4TB).