[XPU] enable XPU GRAPH by default (#51600)

Signed-off-by: zhenwei-intel <zhenwei.liu@intel.com>
This commit is contained in:
liuzhenwei
2026-09-24 19:17:25 +08:00
committed by GitHub
parent f5a78f2ad7
commit dcfc17e0b1
7 changed files with 38 additions and 29 deletions
+2 -4
View File
@@ -616,12 +616,10 @@ class Worker(WorkerBase):
# torch.accelerator.get_memory_info (reliable on ROCm, as used by
# the AMD-CI mem tests), and graph_pool_handle resolves to the same
# torch.cuda handle the live capture path already uses on ROCm.
# XPU stays excluded (see #39977).
cudagraph_memory_estimate = 0
if (
current_platform.is_cuda_alike()
and self.vllm_config.compilation_config.cudagraph_mode != CUDAGraphMode.NONE
):
current_platform.is_cuda_alike() or current_platform.is_xpu()
) and self.vllm_config.compilation_config.cudagraph_mode != CUDAGraphMode.NONE:
cudagraph_memory_estimate = self.model_runner.profile_cudagraph_memory()
# Respect the opt-in flag as originally designed.