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

Signed-off-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
youkaichao 2024-11-20 09:13:28 -08:00 committed by GitHub
parent 63f1fde277
commit 772a66732d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"