[XPU] update xpu graph usage (#43043)
Signed-off-by: Xinyu Chen <xinyu1.chen@intel.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user