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
wuxk1
Megatron-LM
Commits
a75f1783
"torchvision/vscode:/vscode.git/clone" did not exist on "97b53f969ac12fad34a05539a85c58ebae13f027"
Commit
a75f1783
authored
Jan 08, 2021
by
Vijay Korthikanti
Browse files
minor cleanup
parent
456f1728
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
megatron/arguments.py
megatron/arguments.py
+0
-2
megatron/checkpointing.py
megatron/checkpointing.py
+1
-1
No files found.
megatron/arguments.py
View file @
a75f1783
...
...
@@ -620,8 +620,6 @@ def _add_realm_args(parser):
def
_add_vit_args
(
parser
):
group
=
parser
.
add_argument_group
(
title
=
"vit"
)
group
.
add_argument
(
'--vit-load'
,
type
=
str
,
default
=
None
,
help
=
'Director containing a VitModel checkpoint'
)
group
.
add_argument
(
'--num-classes'
,
type
=
int
,
default
=
1000
,
help
=
'num of classes in vision classificaiton task'
)
group
.
add_argument
(
'--img-dim'
,
type
=
int
,
default
=
224
,
...
...
megatron/checkpointing.py
View file @
a75f1783
...
...
@@ -59,7 +59,7 @@ def check_checkpoint_args(checkpoint_args):
_compare
(
'hidden_size'
)
_compare
(
'num_attention_heads'
)
_compare
(
'max_position_embeddings'
)
if
args
.
v
it_load
is
Non
e
:
if
args
.
v
ocab_fil
e
:
_compare
(
'make_vocab_size_divisible_by'
)
_compare
(
'padded_vocab_size'
)
_compare
(
'tokenizer_type'
)
...
...
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