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
6f54f50f
Commit
6f54f50f
authored
Apr 23, 2020
by
Neel Kant
Browse files
REALM arguments
parent
f7f730e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
hashed_index.py
hashed_index.py
+2
-2
megatron/arguments.py
megatron/arguments.py
+4
-0
No files found.
hashed_index.py
View file @
6f54f50f
...
...
@@ -203,7 +203,7 @@ def load_ict_checkpoint():
iteration
=
int
(
f
.
read
().
strip
())
assert
iteration
>
0
checkpoint_name
=
get_checkpoint_name
(
args
.
load
,
iteration
,
False
)
checkpoint_name
=
get_checkpoint_name
(
args
.
ict_
load
,
iteration
,
False
)
if
mpu
.
get_data_parallel_rank
()
==
0
:
print
(
'global rank {} is loading checkpoint {}'
.
format
(
torch
.
distributed
.
get_rank
(),
checkpoint_name
))
...
...
@@ -221,7 +221,7 @@ def load_ict_checkpoint():
def
get_ict_dataset
():
args
=
get_args
()
block_dataset
=
get_indexed_dataset_
(
args
.
data_path
,
'mmap'
,
True
)
titles_dataset
=
get_indexed_dataset_
(
args
.
data_path
+
'-titles'
,
'mmap'
,
True
)
titles_dataset
=
get_indexed_dataset_
(
args
.
titles_
data_path
,
'mmap'
,
True
)
kwargs
=
dict
(
name
=
'full'
,
...
...
megatron/arguments.py
View file @
6f54f50f
...
...
@@ -219,6 +219,8 @@ def _add_checkpointing_args(parser):
help
=
'Do not save current rng state.'
)
group
.
add_argument
(
'--load'
,
type
=
str
,
default
=
None
,
help
=
'Directory containing a model checkpoint.'
)
group
.
add_argument
(
'--ict-load'
,
type
=
str
,
default
=
None
,
help
=
'Directory containing an ICTBertModel checkpoint'
)
group
.
add_argument
(
'--no-load-optim'
,
action
=
'store_true'
,
help
=
'Do not load optimizer when loading checkpoint.'
)
group
.
add_argument
(
'--no-load-rng'
,
action
=
'store_true'
,
...
...
@@ -294,6 +296,8 @@ def _add_data_args(parser):
group
.
add_argument
(
'--data-path'
,
type
=
str
,
default
=
None
,
help
=
'Path to combined dataset to split.'
)
group
.
add_argument
(
'--titles-data-path'
,
type
=
str
,
default
=
None
,
help
=
'Path to titles dataset used for ICT'
)
group
.
add_argument
(
'--split'
,
type
=
str
,
default
=
'969, 30, 1'
,
help
=
'Comma-separated list of proportions for training,'
' validation, and test split. For example the split '
...
...
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