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
cdf0a5d4
Commit
cdf0a5d4
authored
Feb 18, 2022
by
Jared Casper
Browse files
Clarify print.
parent
96d19aae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/checkpointing.py
megatron/checkpointing.py
+1
-1
No files found.
megatron/checkpointing.py
View file @
cdf0a5d4
...
@@ -397,7 +397,7 @@ def load_args_from_checkpoint(args, load_arg='load'):
...
@@ -397,7 +397,7 @@ def load_args_from_checkpoint(args, load_arg='load'):
checkpoint_value
=
getattr
(
checkpoint_args
,
arg_name
,
None
)
checkpoint_value
=
getattr
(
checkpoint_args
,
arg_name
,
None
)
if
checkpoint_value
is
not
None
:
if
checkpoint_value
is
not
None
:
print
(
f
"Setting
{
arg_name
}
to
{
checkpoint_value
}
"
)
print
(
f
"Setting
{
arg_name
}
to
{
checkpoint_value
}
from checkpoint
"
)
setattr
(
args
,
arg_name
,
checkpoint_value
)
setattr
(
args
,
arg_name
,
checkpoint_value
)
_set_arg
(
'num_layers'
)
_set_arg
(
'num_layers'
)
...
...
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