[Bugfix][PD] Fix DSv4 Disaggregated (#41957)

Signed-off-by: NickLucche <nlucches@redhat.com>
Co-authored-by: ZhanqiuHu <zhu@redhat.com>
This commit is contained in:
Nicolò Lucchesi
2026-05-09 16:48:24 +00:00
committed by GitHub
co-authored by ZhanqiuHu
parent 3dda9aeb54
commit 171d59ae8d
5 changed files with 49 additions and 35 deletions
@@ -9,6 +9,8 @@ No GPU or NIXL required.
from __future__ import annotations
from types import SimpleNamespace
import pytest
from vllm.distributed.kv_transfer.kv_connector.v1.nixl.tp_mapping import (
@@ -33,12 +35,15 @@ def _compute_mapping(
num_kv_heads: int = 8,
group_spec_types: tuple[type, ...] = (FullAttentionSpec,),
) -> TPMapping:
return compute_tp_mapping(
transfer_topology = SimpleNamespace(
tp_rank=tp_rank,
tp_size=tp_size,
remote_tp_size=remote_tp_size,
is_mla=is_mla,
total_num_kv_heads=num_kv_heads,
)
return compute_tp_mapping(
transfer_topology=transfer_topology,
remote_tp_size=remote_tp_size,
group_spec_types=group_spec_types,
)