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
8e8e4548
Commit
8e8e4548
authored
Apr 14, 2020
by
Mohammad
Browse files
addressed neels comments
parent
c0a59a66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
megatron/arguments.py
megatron/arguments.py
+4
-4
No files found.
megatron/arguments.py
View file @
8e8e4548
...
...
@@ -53,10 +53,10 @@ def parse_args(extra_args_provider=None, defaults={}):
setattr
(
args
,
key
,
defaults
[
key
])
# Check required arguments.
_check_arg_is_not_none
(
args
,
'num_layer
s'
)
_check_arg_is_not_none
(
args
,
'hidden_size'
)
_check_arg_is_not_none
(
args
,
'num_attention_heads'
)
_check_arg_is_not_none
(
args
,
'max_position_embeddings'
)
required_args
=
[
'num_layers'
,
'hidden_size'
,
'num_attention_head
s'
,
'max_position_embeddings'
]
for
req_arg
in
required_args
:
_check_arg_is_not_none
(
args
,
req_arg
)
# Distributed args.
args
.
rank
=
int
(
os
.
getenv
(
'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