From 4e964b2623c951d063f4b7f23790d16f2d6b7f94 Mon Sep 17 00:00:00 2001 From: liuzhenwei Date: Sat, 17 Oct 2026 19:10:39 +0800 Subject: [PATCH] [XPU] Fix Event init failure w/ external (#61743) Signed-off-by: zhenwei-intel Co-authored-by: Kunshang Ji --- vllm/v1/worker/xpu_model_runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vllm/v1/worker/xpu_model_runner.py b/vllm/v1/worker/xpu_model_runner.py index 83ff08371e..5bd2879e69 100644 --- a/vllm/v1/worker/xpu_model_runner.py +++ b/vllm/v1/worker/xpu_model_runner.py @@ -61,9 +61,9 @@ def _torch_cuda_wrapper(): torch.cuda.stream = partial(torch.xpu.stream) torch.cuda.set_stream = partial(torch.xpu.set_stream) - # torch.xpu.Event does not accept the ``blocking`` kwarg that - # torch.cuda.Event supports, so drop it here. - def _xpu_event(*args, blocking=None, **kwargs): + # torch.xpu.Event does not accept the ``blocking`` or ``external`` kwargs + # that torch.cuda.Event supports, so drop them here. + def _xpu_event(*args, blocking=None, external=None, **kwargs): return torch.xpu.Event(*args, **kwargs) torch.cuda.Event = _xpu_event