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
f85b4eda
Unverified
Commit
f85b4eda
authored
Mar 10, 2026
by
youkaichao
Committed by
GitHub
Mar 10, 2026
Browse files
[bugfix] fix nvlink for nixl/ucx (#36475)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
2a194ddd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
vllm/distributed/kv_transfer/kv_connector/v1/nixl_connector.py
...distributed/kv_transfer/kv_connector/v1/nixl_connector.py
+13
-0
No files found.
vllm/distributed/kv_transfer/kv_connector/v1/nixl_connector.py
View file @
f85b4eda
...
...
@@ -1141,6 +1141,19 @@ class NixlConnectorWorker:
expected_engine_id
:
str
,
)
->
dict
[
int
,
str
]:
"""Do a NIXL handshake with a remote instance."""
# the first time we connect to a remote agent.
# be careful, the handshake happens in a background thread.
# it does not have an active cuda context until any cuda runtime
# call is made. when UCX fails to find a valid cuda context, it will
# disable any cuda ipc communication, essentially disabling any NVLink
# communication.
# when we are using device buffers, we need to set the device
# explicitly to make sure the handshake background thread has a valid
# cuda context.
if
not
self
.
use_host_buffer
:
current_platform
.
set_device
(
self
.
device_id
)
# When target instance TP > local TP, we need to perform multiple
# handshakes. Do it in a single background job for simplicity.
# Regardless, only handshake with the remote TP rank(s) that current
...
...
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