[CI] Enable Zen CPU image build on AMD CI (#60016)
Signed-off-by: Chinmay Kulkarni <Chinmay.Kulkarni@amd.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Micah Williamson <micah.williamson@amd.com>
This commit is contained in:
co-authored by
Cursor
Micah Williamson
parent
f0a5f111f2
commit
dd30786fef
@@ -232,3 +232,57 @@ steps:
|
||||
"$$BUILDKITE_PARALLEL_JOB"
|
||||
"$REGISTRY/$REPO:$BUILDKITE_COMMIT-arm64-cpu"
|
||||
parallelism: 3
|
||||
|
||||
- label: ":docker: Build Zen CPU image"
|
||||
key: zen-cpu-image-build
|
||||
# Reuse the shared `<repo>:<commit>-cpu` image that image-build-cpu publishes
|
||||
# to public ECR, so Dockerfile.zen just layers on top instead of recompiling
|
||||
# vLLM from source. If the pull fails, the build script still falls back to
|
||||
# building the CPU base from source.
|
||||
depends_on:
|
||||
- image-build-cpu
|
||||
soft_fail: true
|
||||
agents:
|
||||
queue: amd-cpu
|
||||
source_file_dependencies:
|
||||
- .buildkite/hardware_tests/cpu.yaml
|
||||
- .buildkite/image_build/image_build_zen_cpu.sh
|
||||
- docker/Dockerfile.zen
|
||||
- docker/Dockerfile.cpu
|
||||
- requirements/cpu.txt
|
||||
- requirements/build/cpu.txt
|
||||
- requirements/test/cpu.txt
|
||||
- cmake/cpu_extension.cmake
|
||||
- vllm/model_executor/layers/utils.py
|
||||
- vllm/model_executor/kernels/linear/zentorch_utils.py
|
||||
- vllm/model_executor/kernels/linear/scaled_mm/zentorch.py
|
||||
- vllm/model_executor/kernels/linear/mixed_precision/zentorch.py
|
||||
- vllm/platforms/cpu.py
|
||||
- vllm/platforms/zen_cpu.py
|
||||
- vllm/platforms/__init__.py
|
||||
- tests/model_executor/test_cpu_unquantized_gemm_dispatch.py
|
||||
- tests/test_zen_cpu_platform_detection.py
|
||||
- tests/kernels/moe/test_zen_cpu_fused_moe.py
|
||||
- tests/kernels/moe/test_zen_cpu_int8_moe.py
|
||||
- vllm/v1/attention/backends/zentorch_sdpa.py
|
||||
- tests/test_zentorch_version_pin.py
|
||||
- vllm/v1/attention/backends/mla/prefill/zen_cpu_sdpa.py
|
||||
- vllm/model_executor/layers/fused_moe/experts/zentorch_moe.py
|
||||
- tests/kernels/quantization/test_zen_da8w4.py
|
||||
commands:
|
||||
- .buildkite/image_build/image_build_zen_cpu.sh "$REGISTRY" "$REPO" "$BUILDKITE_COMMIT"
|
||||
env:
|
||||
DOCKER_BUILDKIT: "1"
|
||||
# Install zentorch directly (if-branch in Dockerfile.zen) instead of
|
||||
# `uv pip install "vllm[zen]"`, which forces uv to re-resolve vLLM's full
|
||||
# dependency closure and chokes on its transitive triton-cpu URL dependency.
|
||||
# Keep this pin in sync with the `zen` extra in setup.py.
|
||||
ZENTORCH_VERSION: "2.13.0.1"
|
||||
retry:
|
||||
automatic:
|
||||
- exit_status: 1 # Transient Docker/BuildKit failure
|
||||
limit: 1
|
||||
- exit_status: -1 # Agent was lost
|
||||
limit: 2
|
||||
- exit_status: -10 # Agent was lost
|
||||
limit: 2
|
||||
|
||||
Reference in New Issue
Block a user