"git@developer.sourcefind.cn:change/sglang.git" did not exist on "3d7cdb2ebd89413ecfec4dad27456f994f1ee7ee"
Unverified Commit 3a237f4f authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

fix: deepseepd_plugin retrieval from accelerate state (#3410)

parent 1a5797c6
...@@ -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 []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment