[XPU] update xpu graph usage (#43043)

Signed-off-by: Xinyu Chen <xinyu1.chen@intel.com>
This commit is contained in:
Xinyu Chen
2026-05-19 23:09:07 +08:00
committed by GitHub
parent b82e908b4c
commit d740e2c029
4 changed files with 9 additions and 19 deletions
-17
View File
@@ -195,23 +195,6 @@ class XPUPlatform(Platform):
"XPU Graph is disabled by environment variable, "
"please set VLLM_XPU_ENABLE_XPU_GRAPH=1 to enable it."
)
elif parallel_config.world_size_across_dp > 1:
compilation_config.cudagraph_mode = CUDAGraphMode.NONE
logger.warning(
"XPU Graph doesn't support capture communication ops, "
"disabling cudagraph_mode."
)
else:
if (
attention_config.backend == AttentionBackendEnum.FLASH_ATTN
and compilation_config.cudagraph_mode
not in {CUDAGraphMode.NONE, CUDAGraphMode.PIECEWISE}
):
compilation_config.cudagraph_mode = CUDAGraphMode.PIECEWISE
logger.warning(
"FMHA sycl-tla kernels cannot be captured with XPU graphs, "
"falling back to PIECEWISE graph mode on XPU platform."
)
# Disable fusion passes not yet supported on XPU.
pass_config = compilation_config.pass_config