1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

fix: deepseepd_plugin retrieval from accelerate state (#3410)

This commit is contained in:
Sayak Paul
2023-05-12 14:32:22 +05:30
committed by GitHub
parent 1a5797c6d4
commit 3a237f4fa2

View File

@@ -471,7 +471,7 @@ def main():
"""
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:
return []