Unverified Commit 772a6673 authored by youkaichao's avatar youkaichao Committed by GitHub
Browse files

[platforms] restore xpu check for parallel config (#10479)


Signed-off-by: default avataryoukaichao <youkaichao@gmail.com>
parent 63f1fde2
......@@ -55,3 +55,13 @@ class XPUPlatform(Platform):
"CUDA graph is not supported on XPU, fallback to the eager "
"mode.")
model_config.enforce_eager = True
# check and update parallel config
parallel_config = vllm_config.parallel_config
if (parallel_config.distributed_executor_backend is not None
and parallel_config.distributed_executor_backend != "ray"):
logger.warning(
"%s is not supported on XPU, fallback to ray distributed"
" executor backend.",
parallel_config.distributed_executor_backend)
parallel_config.distributed_executor_backend = "ray"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment