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
7a332b17
Unverified
Commit
7a332b17
authored
Jan 06, 2023
by
Fazzie-Maqianli
Committed by
GitHub
Jan 06, 2023
Browse files
Merge pull request #2338 from haofanwang/patch-1
Fix a typo in train_dreambooth_colossalai.py
parents
8b1e0dfd
9edd0aa7
Changes
1
Hide 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 @
7a332b17
...
...
@@ -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