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
change
sglang
Commits
30ad1070
Unverified
Commit
30ad1070
authored
Nov 01, 2025
by
fzyzcjy
Committed by
GitHub
Oct 31, 2025
Browse files
Try to allow NCCL cumem for multi node nvlink case (#11987)
parent
a80bcb5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
python/sglang/srt/entrypoints/engine.py
python/sglang/srt/entrypoints/engine.py
+2
-1
No files found.
python/sglang/srt/entrypoints/engine.py
View file @
30ad1070
...
@@ -677,6 +677,7 @@ class Engine(EngineBase):
...
@@ -677,6 +677,7 @@ class Engine(EngineBase):
def
_set_envs_and_config
(
server_args
:
ServerArgs
):
def
_set_envs_and_config
(
server_args
:
ServerArgs
):
# Set global environments
# Set global environments
os
.
environ
[
"TF_CPP_MIN_LOG_LEVEL"
]
=
"3"
os
.
environ
[
"TF_CPP_MIN_LOG_LEVEL"
]
=
"3"
if
"NCCL_CUMEM_ENABLE"
not
in
os
.
environ
:
os
.
environ
[
"NCCL_CUMEM_ENABLE"
]
=
str
(
int
(
server_args
.
enable_symm_mem
))
os
.
environ
[
"NCCL_CUMEM_ENABLE"
]
=
str
(
int
(
server_args
.
enable_symm_mem
))
if
not
server_args
.
enable_symm_mem
:
if
not
server_args
.
enable_symm_mem
:
os
.
environ
[
"NCCL_NVLS_ENABLE"
]
=
str
(
int
(
server_args
.
enable_nccl_nvls
))
os
.
environ
[
"NCCL_NVLS_ENABLE"
]
=
str
(
int
(
server_args
.
enable_nccl_nvls
))
...
...
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