[Bugfix][ROCm][KV Offload] Use private pinned tensors for CPU KV offload (#57160)

Signed-off-by: Yuzhou Ren <ryzcqu@outlook.com>
This commit is contained in:
Ren Yuzhou
2026-09-18 02:35:23 +00:00
committed by GitHub
parent 2bbdfcfcfe
commit 7b94293627
2 changed files with 33 additions and 18 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ class CPUOffloadingSpec(OffloadingSpec):
def _uses_shared_region(self) -> bool:
"""Whether the worker CPU buffer is the shared mmap region (vs a private
per-rank tensor); replicated-layout dedup is gated on this being True."""
return current_platform.is_cuda_alike()
return current_platform.is_cuda_alike() and not current_platform.is_rocm()
def create_worker(self, kv_caches: CanonicalKVCaches) -> CPUOffloadingWorker:
mmap_region: SharedOffloadRegion | None = None