-
Notifications
You must be signed in to change notification settings - Fork 518
Add more streamlined local and single_gpu support, allow use of 8 bit adam optimizer #57
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
Open
asutermo
wants to merge
16
commits into
Stability-AI:master
Choose a base branch
from
asutermo:user/andrew/StableCascadeSingleGPU
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
46625b0
tweaks to work local
15afedc
uncomment, more changes
12fe393
check path
asutermo 2160794
print more
asutermo e0fad36
logs
asutermo dd647c9
Add checks for device, Local slurm id first, then cuda, then cpui
asutermo 46c494d
single gpu
asutermo 90901e5
barrier if not single gpu
asutermo a48594b
remove bitsandbytes for now
asutermo 2353ce1
more fixes
asutermo f4ef10c
cleanup sys
asutermo 94c1730
cleanup: remove unused imports
asutermo 39fee6d
setup 8bit adam
asutermo 900188c
8bit adam support, move config
f0c474c
pathing
cb4656d
don't allow single_gpu and fsdp
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 |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # GLOBAL STUFF | ||
| experiment_id: stage_c_1b_lora | ||
| checkpoint_path: ~/cascade/chk | ||
| output_path: ~/cascade/lora_sample | ||
| model_version: 1B | ||
|
|
||
| # TRAINING PARAMS | ||
| lr: 1.0e-4 | ||
| batch_size: 40 | ||
| image_size: 768 | ||
| multi_aspect_ratio: [1/1, 1/2, 1/3, 2/3, 3/4, 1/5, 2/5, 3/5, 4/5, 1/6, 5/6, 9/16] | ||
| grad_accum_steps: 4 | ||
| updates: 10000 | ||
| backup_every: 1000 | ||
| save_every: 100 | ||
| warmup_updates: 1 | ||
| # use_fsdp: True -> FSDP doesn't work at the moment for LoRA | ||
| use_fsdp: False | ||
|
|
||
| # GDF | ||
| # adaptive_loss_weight: True | ||
|
|
||
| # LoRA specific. 'No Defect Train Railcar Wheel' | ||
| module_filters: ['.attn'] | ||
| rank: 4 | ||
| train_tokens: | ||
| # - ['^snail', null] # token starts with "snail" -> "snail" & "snails", don't need to be reinitialized | ||
| - ['[fernando]', '^dog</w>'] # custom token [snail], initialize as avg of snail & snails | ||
|
|
||
|
|
||
| # ema_start_iters: 5000 | ||
| # ema_iters: 100 | ||
| # ema_beta: 0.9 | ||
|
|
||
| webdataset_path: file:/home/asutermo/cascade/data/dataset.tar | ||
| effnet_checkpoint_path: models/effnet_encoder.safetensors | ||
| previewer_checkpoint_path: models/previewer.safetensors | ||
| generator_checkpoint_path: models/stage_c_lite_bf16.safetensors | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| from .train_b import WurstCore as WurstCoreB | ||
| from .train_c import WurstCore as WurstCoreC | ||
| from .train_c_controlnet import WurstCore as ControlNetCore | ||
| from .train_c_lora import WurstCore as LoraCore | ||
| from .train_c_lora import WurstCore as LoraCore | ||
|
|
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
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.