Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
3a237f4f
Unverified
Commit
3a237f4f
authored
May 12, 2023
by
Sayak Paul
Committed by
GitHub
May 12, 2023
Browse files
fix: deepseepd_plugin retrieval from accelerate state (#3410)
parent
1a5797c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/text_to_image/train_text_to_image.py
examples/text_to_image/train_text_to_image.py
+1
-1
No files found.
examples/text_to_image/train_text_to_image.py
View file @
3a237f4f
...
@@ -471,7 +471,7 @@ def main():
...
@@ -471,7 +471,7 @@ def main():
"""
"""
returns either a context list that includes one that will disable zero.Init or an empty context list
returns either a context list that includes one that will disable zero.Init or an empty context list
"""
"""
deepspeed_plugin
=
AcceleratorState
()
if
accelerate
.
state
.
is_initialized
()
else
None
deepspeed_plugin
=
AcceleratorState
()
.
deepspeed_plugin
if
accelerate
.
state
.
is_initialized
()
else
None
if
deepspeed_plugin
is
None
:
if
deepspeed_plugin
is
None
:
return
[]
return
[]
...
...
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