[Fix] Solve the error lead by _commit_transfer_to_req() when using IntraNode NVLink in PD disaggregation (#23252)

Co-authored-by: 百麒 <yaozhong.lyz@alibaba-inc.com>
This commit is contained in:
Lewis
2026-04-21 11:02:18 +08:00
committed by GitHub
co-authored by 百麒
parent 50fc2c9e23
commit 0d0405273b
2 changed files with 3 additions and 2 deletions
@@ -876,7 +876,8 @@ class MooncakeKVManager(CommonKVManager):
):
# TODO(shangming): Fix me when nvlink_transport of Mooncake is bug-free
if (
self.enable_custom_mem_pool and self.custom_mem_pool_type == "NVLINK"
self.enable_custom_mem_pool
and self.custom_mem_pool_type in ("NVLINK", "INTRA_NODE_NVLINK")
) or envs.SGLANG_MOONCAKE_SEND_AUX_TCP.get():
return self.send_aux_tcp(req, prefill_aux_index, dst_aux_ptrs)
+1 -1
View File
@@ -153,7 +153,7 @@ class MetadataBuffers:
# TODO(shangming): Fix me (use 'cuda') when nvlink_transport of Mooncake is bug-free
device = "cpu"
elif envs.SGLANG_MOONCAKE_CUSTOM_MEM_POOL.get() == "INTRA_NODE_NVLINK":
device = "cuda"
device = "cpu"
with (
torch.cuda.use_mem_pool(self.custom_mem_pool)
if self.custom_mem_pool