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
06b9ebe0
Commit
06b9ebe0
authored
Mar 18, 2022
by
Lawrence McAfee
Browse files
added arg '--distrib-opt-comm-mem-savings'.
parent
34fc1e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
megatron/arguments.py
megatron/arguments.py
+6
-0
No files found.
megatron/arguments.py
View file @
06b9ebe0
...
@@ -733,6 +733,12 @@ def _add_distributed_args(parser):
...
@@ -733,6 +733,12 @@ def _add_distributed_args(parser):
'affects the encoder embedding.)'
)
'affects the encoder embedding.)'
)
group
.
add_argument
(
'--use-distributed-optimizer'
,
action
=
'store_true'
,
group
.
add_argument
(
'--use-distributed-optimizer'
,
action
=
'store_true'
,
help
=
'Use distributed optimizer.'
)
help
=
'Use distributed optimizer.'
)
group
.
add_argument
(
'--disrib-opt-comm-mem-savings'
,
default
=
0.
,
type
=
float
,
help
=
'Trade-off memory savings & iteration time, for '
'disributed optimizer
\'
s communication operations (i.e., '
'(reduce/gather). This value ranges from 0.0 (default, '
'no memory savings) to 1.0 (max memory savings, at '
'expense of iteration time).'
)
return
parser
return
parser
...
...
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