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
MMCV
Commits
15537c5a
"sgl-kernel/git@developer.sourcefind.cn:change/sglang.git" did not exist on "3d7f7a43c87f6c8018cda4a0b46217d628d68e63"
Unverified
Commit
15537c5a
authored
Aug 14, 2020
by
Jerry Jiarui XU
Committed by
GitHub
Aug 14, 2020
Browse files
Add LOCAL_RANK env var for slurm (#496)
parent
d19fad02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
mmcv/runner/dist_utils.py
mmcv/runner/dist_utils.py
+1
-0
No files found.
mmcv/runner/dist_utils.py
View file @
15537c5a
...
...
@@ -63,6 +63,7 @@ def _init_dist_slurm(backend, port=None):
os
.
environ
[
'MASTER_PORT'
]
=
'29500'
os
.
environ
[
'MASTER_ADDR'
]
=
addr
os
.
environ
[
'WORLD_SIZE'
]
=
str
(
ntasks
)
os
.
environ
[
'LOCAL_RANK'
]
=
str
(
proc_id
%
num_gpus
)
os
.
environ
[
'RANK'
]
=
str
(
proc_id
)
dist
.
init_process_group
(
backend
=
backend
)
...
...
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