Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e1cf90e0
Unverified
Commit
e1cf90e0
authored
Apr 23, 2025
by
youkaichao
Committed by
GitHub
Apr 23, 2025
Browse files
[misc] tune some env vars for GB200 (#16992)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
6bc1e30e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
vllm/env_override.py
vllm/env_override.py
+15
-2
No files found.
vllm/env_override.py
View file @
e1cf90e0
...
@@ -8,8 +8,21 @@ import torch
...
@@ -8,8 +8,21 @@ import torch
# that interact with vllm workers.
# that interact with vllm workers.
# they are executed whenever `import vllm` is called.
# they are executed whenever `import vllm` is called.
# see https://github.com/NVIDIA/nccl/issues/1234
if
not
os
.
path
.
exists
(
'/dev/nvidia-caps-imex-channels'
):
os
.
environ
[
'NCCL_CUMEM_ENABLE'
]
=
'0'
# normally, we disable NCCL_CUMEM_ENABLE because it
# will cost 1~2 GiB GPU memory with cudagraph+allreduce,
# see https://github.com/NVIDIA/nccl/issues/1234
# for more details.
# However, NCCL requires NCCL_CUMEM_ENABLE to work with
# multi-node NVLink, typically on GB200-NVL72 systems.
# The ultimate way to detect multi-node NVLink is to use
# NVML APIs, which are too expensive to call here.
# As an approximation, we check the existence of
# /dev/nvidia-caps-imex-channels, used by
# multi-node NVLink to communicate across nodes.
# This will still cost some GPU memory, but it is worthwhile
# because we can get very fast cross-node bandwidth with NVLink.
os
.
environ
[
'NCCL_CUMEM_ENABLE'
]
=
'0'
# see https://github.com/vllm-project/vllm/pull/15951
# see https://github.com/vllm-project/vllm/pull/15951
# it avoids unintentional cuda initialization from torch.cuda.is_available()
# it avoids unintentional cuda initialization from torch.cuda.is_available()
...
...
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