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
f2d75135
Unverified
Commit
f2d75135
authored
Feb 19, 2020
by
Jeff Rasley
Committed by
GitHub
Feb 19, 2020
Browse files
include pythonpath and local dir in launch env (#93)
Co-authored-by:
Shaden Smith
<
ShadenTSmith@gmail.com
>
parent
2abef1ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
deepspeed/pt/deepspeed_run.py
deepspeed/pt/deepspeed_run.py
+7
-4
No files found.
deepspeed/pt/deepspeed_run.py
View file @
f2d75135
...
...
@@ -15,6 +15,7 @@ import collections
from
copy
import
deepcopy
DLTS_HOSTFILE
=
"/job/hostfile"
EXPORT_ENVS
=
[
"NCCL"
,
"PYTHONPATH"
]
def
parse_args
(
args
=
None
):
...
...
@@ -305,13 +306,15 @@ def main(args=None):
num_gpus_per_node
=
None
curr_path
=
os
.
path
.
abspath
(
'.'
)
env
[
'PYTHONPATH'
]
=
curr_path
+
":"
+
env
[
'PYTHONPATH'
]
nccl_export
=
""
for
nccl_var
in
filter
(
lambda
x
:
"NCCL_"
in
x
,
env
.
keys
()):
nccl_export
+=
"export {}={}; "
.
format
(
nccl_var
,
env
[
nccl_var
])
exports
=
""
for
var
in
env
.
keys
():
if
any
(
map
(
lambda
name
:
name
in
var
,
EXPORT_ENVS
)):
exports
+=
"export {}={}; "
.
format
(
var
,
env
[
var
])
deepspeed_launch
=
[
nccl_
export
,
export
s
,
"cd {};"
.
format
(
curr_path
),
sys
.
executable
,
"-u"
,
...
...
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