[XPU] use spawn multiproc method on xpu (#39671)

Signed-off-by: Xinyu Chen <xinyu1.chen@intel.com>
Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Xinyu Chen
2026-04-16 14:42:07 +08:00
committed by GitHub
co-authored by Kunshang Ji
parent 2cdf86044d
commit f4ddaf8cf7
+4
View File
@@ -228,6 +228,10 @@ class XPUPlatform(Platform):
# ref. https://openucx.readthedocs.io/en/master/faq.html
os.environ["UCX_MEMTYPE_CACHE"] = "n"
# spawn is the only supported multiprocessing method on XPU
if "VLLM_WORKER_MULTIPROC_METHOD" not in os.environ:
os.environ["VLLM_WORKER_MULTIPROC_METHOD"] = "spawn"
@classmethod
def update_block_size_for_backend(cls, vllm_config: "VllmConfig") -> None:
super().update_block_size_for_backend(vllm_config)