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
2bd6196c
Commit
2bd6196c
authored
Apr 02, 2020
by
Mohammad
Browse files
some changes to args
parent
ba2264ab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
4 deletions
+3
-4
megatron/arguments.py
megatron/arguments.py
+2
-2
scripts/run_gpt2_eval.py
scripts/run_gpt2_eval.py
+0
-0
tasks/main.py
tasks/main.py
+1
-1
tasks/zeroshot_gpt2/detokenizer.py
tasks/zeroshot_gpt2/detokenizer.py
+0
-1
No files found.
megatron/arguments.py
View file @
2bd6196c
...
...
@@ -173,7 +173,7 @@ def _add_initialization_args(parser):
def
_add_learning_rate_args
(
parser
):
group
=
parser
.
add_argument_group
(
title
=
'learning rate'
)
group
.
add_argument
(
'--lr'
,
type
=
float
,
required
=
Tru
e
,
group
.
add_argument
(
'--lr'
,
type
=
float
,
default
=
Non
e
,
help
=
'Initial learning rate. Depending on decay style '
'and initial warmup, the learing rate at each '
'iteration would be different.'
)
...
...
@@ -297,7 +297,7 @@ def _add_data_args(parser):
' validation, and test split. For example the split '
'`90,5,5` will use 90% of data for training, 5% for '
'validation and 5% for test.'
)
group
.
add_argument
(
'--vocab-file'
,
type
=
str
,
required
=
Tru
e
,
group
.
add_argument
(
'--vocab-file'
,
type
=
str
,
default
=
Non
e
,
help
=
'Path to the vocab file.'
)
group
.
add_argument
(
'--merge-file'
,
type
=
str
,
default
=
None
,
help
=
'Path to the BPE merge file.'
)
...
...
task
s/run_gpt2_eval.py
→
script
s/run_gpt2_eval.py
View file @
2bd6196c
File moved
tasks/main.py
View file @
2bd6196c
...
...
@@ -30,7 +30,7 @@ def get_tasks_args(parser):
group
.
add_argument
(
'--task'
,
type
=
str
,
required
=
True
,
help
=
'Task name.'
)
group
.
add_argument
(
'--epochs'
,
type
=
int
,
required
=
Tru
e
,
group
.
add_argument
(
'--epochs'
,
type
=
int
,
default
=
Non
e
,
help
=
'Number of finetunning epochs. Zero results in '
'evaluation only.'
)
group
.
add_argument
(
'--pretrained-checkpoint'
,
type
=
str
,
default
=
None
,
...
...
tasks/zeroshot_gpt2/detokenizer.py
View file @
2bd6196c
...
...
@@ -77,7 +77,6 @@ _DETOKENIZERS = {
def
get_detokenizer
(
path
):
for
key
in
_DETOKENIZERS
.
keys
():
if
key
in
path
:
print
(
key
)
return
_DETOKENIZERS
[
key
]
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