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
Megatron-LM
Commits
2b628f96
Commit
2b628f96
authored
Jan 28, 2022
by
Vijay Korthikanti
Browse files
typo fix
parent
641408f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
megatron/optimizer_param_scheduler.py
megatron/optimizer_param_scheduler.py
+2
-2
No files found.
megatron/optimizer_param_scheduler.py
View file @
2b628f96
...
@@ -178,9 +178,9 @@ class OptimizerParamScheduler(object):
...
@@ -178,9 +178,9 @@ class OptimizerParamScheduler(object):
'minimum learning rate'
)
'minimum learning rate'
)
if
'warmup_iter'
in
sd
:
if
'warmup_iter'
in
sd
:
warmup_steps_
=
sd
[
'warmup_iter'
]
lr_
warmup_steps_
=
sd
[
'warmup_iter'
]
elif
'warmup_steps'
in
sd
:
elif
'warmup_steps'
in
sd
:
warmup_steps_
=
sd
[
'warmup_steps'
]
lr_
warmup_steps_
=
sd
[
'warmup_steps'
]
else
:
else
:
lr_warmup_steps_
=
sd
[
'lr_warmup_steps'
]
lr_warmup_steps_
=
sd
[
'lr_warmup_steps'
]
self
.
lr_warmup_steps
=
self
.
_check_and_set
(
self
.
lr_warmup_steps
,
self
.
lr_warmup_steps
=
self
.
_check_and_set
(
self
.
lr_warmup_steps
,
...
...
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