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
9ef05ed1
Unverified
Commit
9ef05ed1
authored
Jan 07, 2022
by
ver217
Committed by
GitHub
Jan 07, 2022
Browse files
try import deepspeed when using zero (#130)
parent
b7975d2b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
colossalai/zero/__init__.py
colossalai/zero/__init__.py
+1
-0
No files found.
colossalai/zero/__init__.py
View file @
9ef05ed1
...
...
@@ -29,6 +29,7 @@ def convert_to_zero(model: nn.Module,
:return: (model, optimizer)
:rtype: Tuple
"""
import
deepspeed
assert
level
==
2
or
level
==
3
,
'Only ZERO Optimizer Level 2 and 3 are provided'
model
=
NaiveAMPModel
(
model
,
output_to_fp32
=
False
)
...
...
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