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
e69b1eec
Unverified
Commit
e69b1eec
authored
Aug 18, 2020
by
Jeff Rasley
Committed by
GitHub
Aug 18, 2020
Browse files
Turn off multi-node launch if only 1 node (#322)
* turn off multi-node launch if only 1 node
parent
de0523d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
deepspeed/pt/deepspeed_run.py
deepspeed/pt/deepspeed_run.py
+5
-3
No files found.
deepspeed/pt/deepspeed_run.py
View file @
e69b1eec
...
@@ -247,9 +247,6 @@ def main(args=None):
...
@@ -247,9 +247,6 @@ def main(args=None):
args
.
include
,
args
.
include
,
args
.
exclude
)
args
.
exclude
)
if
multi_node_exec
and
not
shutil
.
which
(
'pdsh'
):
raise
RuntimeError
(
"pdsh is not installed, unable to proceed"
)
env
=
os
.
environ
.
copy
()
env
=
os
.
environ
.
copy
()
if
not
args
.
master_addr
:
if
not
args
.
master_addr
:
...
@@ -278,6 +275,11 @@ def main(args=None):
...
@@ -278,6 +275,11 @@ def main(args=None):
# encode world info as base64 to make it easier to pass via command line
# encode world info as base64 to make it easier to pass via command line
world_info_base64
=
encode_world_info
(
active_resources
)
world_info_base64
=
encode_world_info
(
active_resources
)
multi_node_exec
=
len
(
active_resources
)
>
1
if
multi_node_exec
and
not
shutil
.
which
(
'pdsh'
):
raise
RuntimeError
(
"pdsh is not installed, unable to proceed"
)
if
not
multi_node_exec
:
if
not
multi_node_exec
:
deepspeed_launch
=
[
deepspeed_launch
=
[
sys
.
executable
,
sys
.
executable
,
...
...
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