[Bugfix] Optimize metadata allocation and transfer for mooncake intraNode NVLink (#26707)
Co-authored-by: 百麒 <yaozhong.lyz@alibaba-inc.com> Co-authored-by: Shangming Cai <csmthu@gmail.com>
This commit is contained in:
co-authored by
百麒
Shangming Cai
parent
edfe8d34e8
commit
3b61a1f935
@@ -816,8 +816,7 @@ 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 in ("NVLINK", "INTRA_NODE_NVLINK")
|
||||
self.enable_custom_mem_pool and self.custom_mem_pool_type == "NVLINK"
|
||||
) or envs.SGLANG_MOONCAKE_SEND_AUX_TCP.get():
|
||||
return self.send_aux_tcp(req, prefill_aux_index, dst_aux_ptrs)
|
||||
|
||||
|
||||
@@ -205,7 +205,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 = "cpu"
|
||||
device = "cuda"
|
||||
with (
|
||||
torch.cuda.use_mem_pool(self.custom_mem_pool)
|
||||
if self.custom_mem_pool
|
||||
|
||||
Reference in New Issue
Block a user