Commit 06b9ebe0 authored by Lawrence McAfee's avatar Lawrence McAfee
Browse files

added arg '--distrib-opt-comm-mem-savings'.

parent 34fc1e37
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment