Skip to content

Commit 7ef3c6f

Browse files
fix(vllm): align Intel basekit runtime (#11437)
* fix(vllm): align Intel basekit runtime The latest vLLM XPU requirements install oneAPI 2026 runtime packages. The 2025.3.0 base image ships an older libsycl/UR loader pair and fails while importing torch with an undefined urDeviceWaitExp symbol. Use the current repository-wide 2025.3.2 Intel basekit patch level, which carries the compatible loader. Assisted-by: Codex:gpt-5 [systematic-debugging] * fix(vllm): pin Intel source build to release Build the Intel XPU backend from vLLM 0.26.0 instead of the moving main branch, and use the Triton XPU version required by that release's torch 2.12 dependency. Assisted-by: Codex:gpt-5 [systematic-debugging] --------- Co-authored-by: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com>
1 parent 2b62f18 commit 7ef3c6f

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

.github/backend-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,7 @@ include:
25842584
tag-latest: 'auto'
25852585
tag-suffix: '-gpu-intel-vllm'
25862586
runs-on: 'ubuntu-latest'
2587-
base-image: "intel/oneapi-basekit:2025.3.0-0-devel-ubuntu24.04"
2587+
base-image: "intel/oneapi-basekit:2025.3.2-0-devel-ubuntu24.04"
25882588
skip-drivers: 'false'
25892589
backend: "vllm"
25902590
dockerfile: "./backend/Dockerfile.python"

backend/python/vllm/install.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ if [ "$(uname -s)" = "Darwin" ]; then
168168

169169
# Intel XPU has no upstream-published vllm wheels, so we always build vllm
170170
# from source against torch-xpu and replace the default triton with
171-
# triton-xpu (matching torch 2.11). Mirrors the upstream procedure:
171+
# triton-xpu. Mirrors the upstream procedure:
172172
# https://github.com/vllm-project/vllm/blob/main/docs/getting_started/installation/gpu.xpu.inc.md
173173
elif [ "x${BUILD_TYPE}" == "xintel" ]; then
174174
# Hide requirements-intel-after.txt so installRequirements doesn't
@@ -194,18 +194,23 @@ elif [ "x${BUILD_TYPE}" == "xintel" ]; then
194194

195195
_vllm_src=$(mktemp -d)
196196
trap 'rm -rf "${_vllm_src}"' EXIT
197-
git clone --depth 1 https://github.com/vllm-project/vllm "${_vllm_src}/vllm"
197+
# Keep the source build aligned with the version shipped by the other
198+
# accelerator profiles. Building the moving main branch can silently pull
199+
# a newer torch/XPU runtime than the selected oneAPI base image supports.
200+
VLLM_VERSION="0.26.0"
201+
git clone --depth 1 --branch "v${VLLM_VERSION}" \
202+
https://github.com/vllm-project/vllm "${_vllm_src}/vllm"
198203
pushd "${_vllm_src}/vllm"
199204
# Install vllm's own runtime deps (torch-xpu, vllm_xpu_kernels,
200205
# pydantic, fastapi, …) from upstream's requirements/xpu.txt — the
201206
# canonical source of truth. Avoids re-pinning everything ourselves.
202207
uv pip install ${EXTRA_PIP_INSTALL_FLAGS:-} -r requirements/xpu.txt
203208
# Stock triton (NVIDIA-only) may have come in transitively; replace
204-
# with triton-xpu==3.7.0 which matches torch 2.11.
209+
# with the version vLLM 0.26.0 specifies for torch 2.12.
205210
uv pip uninstall triton triton-xpu 2>/dev/null || true
206211
uv pip install ${EXTRA_PIP_INSTALL_FLAGS:-} \
207212
--extra-index-url https://download.pytorch.org/whl/xpu \
208-
triton-xpu==3.7.0
213+
triton-xpu==3.7.1
209214
export CMAKE_PREFIX_PATH="$(python -c 'import site; print(site.getsitepackages()[0])'):${CMAKE_PREFIX_PATH:-}"
210215
VLLM_TARGET_DEVICE=xpu uv pip install ${EXTRA_PIP_INSTALL_FLAGS:-} --no-deps .
211216
popd

0 commit comments

Comments
 (0)