Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
9edd0aa7
Unverified
Commit
9edd0aa7
authored
Jan 05, 2023
by
Haofan Wang
Committed by
GitHub
Jan 05, 2023
Browse files
Update train_dreambooth_colossalai.py
accelerator.num_processes -> gpc.get_world_size(ParallelMode.DATA)
parent
f1bc2418
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/images/dreambooth/train_dreambooth_colossalai.py
examples/images/dreambooth/train_dreambooth_colossalai.py
+1
-1
No files found.
examples/images/dreambooth/train_dreambooth_colossalai.py
View file @
9edd0aa7
...
...
@@ -484,7 +484,7 @@ def main(args):
unet
.
enable_gradient_checkpointing
()
if
args
.
scale_lr
:
args
.
learning_rate
=
args
.
learning_rate
*
args
.
gradient_accumulation_steps
*
args
.
train_batch_size
*
2
args
.
learning_rate
=
args
.
learning_rate
*
args
.
gradient_accumulation_steps
*
args
.
train_batch_size
*
gpc
.
get_world_size
(
ParallelMode
.
DATA
)
unet
=
gemini_zero_dpp
(
unet
,
pg
,
args
.
placement
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment