未验证 提交 e292343d 编写于 作者: H hipudding 提交者: GitHub

Del comment deepspeed.zero.Init() can be used as a decorator (#3894)

Object deepspeed.zero.Init() is not callable, it can't be used
as a decorator. Delete this code comment to avoid misunderstanding.
Co-authored-by: NLogan Adams <114770087+loadams@users.noreply.github.com>
上级 ce535945
......@@ -760,15 +760,6 @@ class Init(InsertPostInitMethodToModuleSubClasses):
Initializes ``deepspeed.comm`` if it has not already been done so.
See :meth:`deepspeed.init_distributed` for more information.
.. note::
Can also be used as a decorator:
.. code-block:: python
@deepspeed.zero.Init()
def get_model():
return MyLargeModel()
.. note::
Only applicable to training with ZeRO-3.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册