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
af27c177
Commit
af27c177
authored
Jul 30, 2025
by
xuxz
Committed by
zhuwenwen
Jul 30, 2025
Browse files
Merge v0.9.2-dev-disagg into v0.9.2-dev
parent
8f80b711
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
vllm/distributed/kv_transfer/kv_connector/v1/p2p/p2p_nccl_connector.py
...ted/kv_transfer/kv_connector/v1/p2p/p2p_nccl_connector.py
+11
-3
No files found.
vllm/distributed/kv_transfer/kv_connector/v1/p2p/p2p_nccl_connector.py
View file @
af27c177
...
...
@@ -143,7 +143,7 @@ class P2pNcclConnector(KVConnectorBase_V1):
request_id (str): request id for log
"""
dst_kv_cache_layer_shape
=
dst_kv_cache_layer
.
shape
if
isinstance
(
attn_metadata
,
MLACommonMetadata
):
if
isinstance
(
attn_metadata
,
MLACommonMetadata
)
or
all
(
isinstance
(
value
,
MLACommonMetadata
)
for
value
in
attn_metadata
.
values
())
:
num_pages
=
dst_kv_cache_layer_shape
[
0
]
page_size
=
dst_kv_cache_layer_shape
[
1
]
dst_kv_cache_layer
=
dst_kv_cache_layer
.
reshape
(
...
...
@@ -193,8 +193,16 @@ class P2pNcclConnector(KVConnectorBase_V1):
# Load the KV for each request each layer
for
request
in
metadata
.
requests
:
for
layer_name
in
forward_context
.
no_compile_layers
:
attn_layer
=
forward_context
.
no_compile_layers
[
layer_name
]
kv_cache_layer
=
attn_layer
.
kv_cache
[
\
layer
=
forward_context
.
no_compile_layers
[
layer_name
]
# Only process layers that have kv_cache
# attribute (attention layers) Skip non-attention
# layers like FusedMoE
kv_cache
=
getattr
(
layer
,
'kv_cache'
,
None
)
if
kv_cache
is
None
:
continue
kv_cache_layer
=
kv_cache
[
\
forward_context
.
virtual_engine
]
kv_cache
=
self
.
p2p_nccl_engine
.
recv_tensor
(
...
...
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