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
64e45f29
"graphbolt/src/cuda/sampling_utils.hip" did not exist on "f86212edb5012f36f30ed8f79513b2b3f54cf1ea"
Commit
64e45f29
authored
Sep 29, 2020
by
Vijay Korthikanti
Browse files
address review comments
parent
a8d47812
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
megatron/checkpointing.py
megatron/checkpointing.py
+3
-1
No files found.
megatron/checkpointing.py
View file @
64e45f29
...
...
@@ -31,6 +31,8 @@ _CHECKPOINT_VERSION = None
def
set_checkpoint_version
(
value
):
global
_CHECKPOINT_VERSION
assert
_CHECKPOINT_VERSION
is
None
,
\
"checkpoint version already set"
_CHECKPOINT_VERSION
=
value
def
get_checkpoint_version
():
...
...
@@ -99,7 +101,7 @@ def save_checkpoint(iteration, model, optimizer, lr_scheduler):
# Arguments, iteration, and model.
state_dict
=
{}
state_dict
[
'args'
]
=
args
state_dict
[
'checkpoint_version'
]
=
1
state_dict
[
'checkpoint_version'
]
=
1
.0
state_dict
[
'iteration'
]
=
iteration
state_dict
[
'model'
]
=
model
.
state_dict_for_save_checkpoint
()
...
...
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