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
09777254
Commit
09777254
authored
Apr 13, 2022
by
ver217
Committed by
アマデウス
Apr 13, 2022
Browse files
fix initialize about zero
parent
e396bb71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
colossalai/initialize.py
colossalai/initialize.py
+0
-4
No files found.
colossalai/initialize.py
View file @
09777254
...
...
@@ -307,10 +307,6 @@ def initialize(model: nn.Module,
# clip grad norm
clip_grad_norm
=
gpc
.
config
.
get
(
'clip_grad_norm'
,
0.0
)
if
clip_grad_norm
>
0
:
if
use_zero
and
zero_cfg
is
not
None
:
raise
ConfigException
(
"clip_grad_norm should be specified with zero, you should specify clip_grad in zero configuration"
)
# initialize amp
amp_mode
=
None
...
...
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