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
deepspeed
Commits
6855ba1c
Unverified
Commit
6855ba1c
authored
Aug 13, 2020
by
Jeff Rasley
Committed by
GitHub
Aug 13, 2020
Browse files
Update fan out flag for pdsh (#315)
* update fan out flag for pdsh
parent
3437342c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
deepspeed/pt/deepspeed_run.py
deepspeed/pt/deepspeed_run.py
+4
-1
No files found.
deepspeed/pt/deepspeed_run.py
View file @
6855ba1c
...
@@ -21,6 +21,7 @@ DLTS_HOSTFILE = "/job/hostfile"
...
@@ -21,6 +21,7 @@ DLTS_HOSTFILE = "/job/hostfile"
EXPORT_ENVS
=
[
"NCCL"
,
"PYTHON"
]
EXPORT_ENVS
=
[
"NCCL"
,
"PYTHON"
]
DEEPSPEED_ENVIRONMENT_NAME
=
".deepspeed_env"
DEEPSPEED_ENVIRONMENT_NAME
=
".deepspeed_env"
DEEPSPEED_ENVIRONMENT_PATHS
=
[
os
.
path
.
expanduser
(
"~"
),
'.'
]
DEEPSPEED_ENVIRONMENT_PATHS
=
[
os
.
path
.
expanduser
(
"~"
),
'.'
]
PDSH_MAX_FAN_OUT
=
1024
def
parse_args
(
args
=
None
):
def
parse_args
(
args
=
None
):
...
@@ -294,7 +295,9 @@ def main(args=None):
...
@@ -294,7 +295,9 @@ def main(args=None):
active_workers
=
","
.
join
(
active_resources
.
keys
())
active_workers
=
","
.
join
(
active_resources
.
keys
())
logger
.
info
(
"Running on the following workers: %s"
%
active_workers
)
logger
.
info
(
"Running on the following workers: %s"
%
active_workers
)
pdsh_cmd_args
=
[
'pdsh'
,
'-w'
,
active_workers
]
# PDSH flags for max node fan out and specific hosts to launch on
# See https://linux.die.net/man/1/pdsh for flag details
pdsh_cmd_args
=
[
'pdsh'
,
'-f'
,
str
(
PDSH_MAX_FAN_OUT
),
'-w'
,
active_workers
]
num_nodes
=
len
(
active_resources
.
keys
())
num_nodes
=
len
(
active_resources
.
keys
())
num_gpus_per_node
=
None
num_gpus_per_node
=
None
...
...
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