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
e6c7b05e
Commit
e6c7b05e
authored
Jan 25, 2021
by
Vijay Korthikanti
Browse files
Adressing more review comments
parent
da8dccd6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
megatron/checkpointing.py
megatron/checkpointing.py
+5
-1
megatron/model/vit_model.py
megatron/model/vit_model.py
+1
-1
tasks/vision/classification.py
tasks/vision/classification.py
+1
-1
No files found.
megatron/checkpointing.py
View file @
e6c7b05e
...
...
@@ -165,7 +165,11 @@ def save_checkpoint(iteration, model, optimizer, lr_scheduler):
def
load_checkpoint
(
model
,
optimizer
,
lr_scheduler
,
load_arg
=
'load'
,
strict
=
True
):
"""Load a model checkpoint and return the iteration."""
"""Load a model checkpoint and return the iteration.
strict (bool): whether to strictly enforce that the keys in
:attr:`state_dict` of the checkpoint match the names of
parameters and buffers in model.
"""
args
=
get_args
()
load_dir
=
getattr
(
args
,
load_arg
)
...
...
megatron/model/vit_model.py
View file @
e6c7b05e
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""
BERT
model."""
"""
Vision Transformer(VIT)
model."""
import
math
import
einops
...
...
tasks/vision/classification.py
View file @
e6c7b05e
...
...
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""
GLUE
finetuning/evaluation."""
"""
Vision-classification
finetuning/evaluation."""
from
megatron
import
get_args
from
megatron
import
print_rank_0
...
...
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