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
6df3e19b
Unverified
Commit
6df3e19b
authored
Aug 09, 2022
by
ver217
Committed by
GitHub
Aug 09, 2022
Browse files
[hotfix] zero optim prevents calling inner optim.zero_grad (#1422)
parent
504419d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
colossalai/zero/zero_optimizer.py
colossalai/zero/zero_optimizer.py
+1
-0
No files found.
colossalai/zero/zero_optimizer.py
View file @
6df3e19b
...
...
@@ -139,6 +139,7 @@ class ZeroOptimizer(ColossalaiOptimizer):
self
.
_update_params_ptr
()
ret
=
self
.
optim
.
step
(
*
args
,
**
kwargs
)
self
.
_register_states
()
self
.
zero_grad
()
self
.
_update_fp16_params
()
return
ret
...
...
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