[XPU] Support register KV offload mmap region as pinned host memory on XPU (#51956)
Signed-off-by: Chaojun Zhang <chaojun.zhang@intel.com>
This commit is contained in:
@@ -162,7 +162,9 @@ 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() and not current_platform.is_rocm()
|
||||
return (
|
||||
current_platform.is_cuda_alike() and not current_platform.is_rocm()
|
||||
) or current_platform.is_xpu()
|
||||
|
||||
def create_worker(self, kv_caches: CanonicalKVCaches) -> CPUOffloadingWorker:
|
||||
mmap_region: SharedOffloadRegion | None = None
|
||||
|
||||
Reference in New Issue
Block a user