[XPU][CI/Release][3/N] Add xpu wheel release to release pipeline (#52108)

Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
Signed-off-by: Kunshang Ji <jikunshang95@gmail.com>
This commit is contained in:
Kunshang Ji
2026-08-14 14:00:17 +08:00
committed by GitHub
parent ac7509e2b1
commit 8e6d8e4f6a
6 changed files with 99 additions and 29 deletions
+30 -3
View File
@@ -129,6 +129,35 @@ CMD ["/bin/bash"]
######################### UCX + NIXL BUILD STAGE #########################
# Build UCX and NIXL in a dedicated stage so compiler/autotools layers are
# never included in the final runtime image (mirrors ROCm's build_rixl stage).
######################### WHEEL BUILD STAGE #########################
# Produces a standalone dist/*.whl artifact (used by the release pipeline's
# "Build wheel - XPU" step), independent of the runtime image below.
FROM vllm-base AS vllm-build
ARG GIT_REPO_CHECK=0
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,src=requirements/common.txt,target=/workspace/vllm/requirements/common.txt \
--mount=type=bind,src=requirements/xpu.txt,target=/workspace/vllm/requirements/xpu.txt \
uv pip install grpcio-tools protobuf nanobind && \
uv pip install -r /workspace/vllm/requirements/xpu.txt
# Keep source-dependent layers near the end so frequent code-only changes
# don't invalidate heavy dependency layers.
COPY . .
# Drop the pre-built Rust artifacts into the source tree. setup.py detects
# them and ships them as-is, skipping the local Rust build.
COPY --from=rust-build /workspace/vllm/vllm-rs vllm/vllm-rs
COPY --from=rust-build /workspace/vllm/_rust_*.so vllm/
RUN --mount=type=bind,source=.git,target=.git \
if [ "$GIT_REPO_CHECK" != 0 ]; then bash tools/check_repo.sh; fi
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=.git,target=.git \
VLLM_TARGET_DEVICE=xpu python3 setup.py bdist_wheel --dist-dir=dist --py-limited-api=cp38
FROM vllm-base AS ucx-nixl-build
ARG UCX_VERSION=v1.21.0-rc2
@@ -201,9 +230,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,src=requirements/test/xpu.txt,target=/workspace/vllm/requirements/test/xpu.txt \
uv pip install grpcio-tools protobuf nanobind && \
uv pip install -r /workspace/vllm/requirements/xpu.txt && \
uv pip install --no-build-isolation -r /workspace/vllm/requirements/test/xpu.txt && \
uv pip uninstall triton triton-xpu && \
uv pip install triton-xpu==3.7.2
uv pip install --no-build-isolation -r /workspace/vllm/requirements/test/xpu.txt
# Keep source-dependent layers near the end so frequent code-only changes
# don't invalidate heavy dependency and UCX/NIXL layers.