Skip to content

Commit 9bb0209

Browse files
committed
Merge branch 'main' of https://github.com/vllm-project/vllm into unified-43559-fix
2 parents 3d829f2 + 1ef1c7e commit 9bb0209

202 files changed

Lines changed: 7635 additions & 2744 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildkite/image_build/image_build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,18 @@ BRANCH=$4
177177
IMAGE_TAG=$5
178178
IMAGE_TAG_LATEST=${6:-} # only used for main branch, optional
179179

180+
# When TORCH_NIGHTLY=1, build the base CI image against PyTorch nightly so the
181+
# entire existing pipeline runs on nightly torch (CUDA/GPU lane only). Delegate
182+
# to the dedicated nightly build (PYTORCH_NIGHTLY=1, CUDA 13.0) and tag it at the
183+
# normal IMAGE_TAG that every test step already pulls -- no separate image tag,
184+
# no duplicate "vLLM Against PyTorch Nightly" pipeline section.
185+
if [[ "${TORCH_NIGHTLY:-0}" == "1" ]]; then
186+
echo "--- :warning: TORCH_NIGHTLY=1 -- building base image on PyTorch nightly"
187+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
188+
exec "${SCRIPT_DIR}/image_build_torch_nightly.sh" \
189+
"${REGISTRY}" "${REPO}" "${BUILDKITE_COMMIT}" "${BRANCH}" "${IMAGE_TAG}"
190+
fi
191+
180192
# build config
181193
TARGET="test-ci"
182194
VLLM_BAKE_FILE_PATH="${VLLM_BAKE_FILE_PATH:-docker/docker-bake.hcl}"

.buildkite/image_build/image_build_arm64.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ if docker manifest inspect "$IMAGE" >/dev/null 2>&1; then
1919
echo "Image found"
2020
else
2121
echo "Image not found, proceeding with build..."
22-
# build for arm64 GPU targets: Grace/GH200 (sm_90) and DGX Spark/GB10
22+
# build for arm64 GPU targets: Grace/GH200 (sm_90),
23+
# Blackwell/Thor (sm_100/sm_103/sm_110), and DGX Spark/GB10
2324
# (sm_121, family-covered by 12.0 under CUDA 13)
2425
docker build --file docker/Dockerfile \
2526
--platform linux/arm64 \
2627
--build-arg max_jobs=16 \
2728
--build-arg nvcc_threads=4 \
28-
--build-arg torch_cuda_arch_list="9.0 12.0" \
29+
--build-arg torch_cuda_arch_list="9.0 10.0 11.0 12.0" \
2930
--build-arg USE_SCCACHE=1 \
3031
--build-arg buildkite_commit="$BUILDKITE_COMMIT" \
3132
--tag "$IMAGE" \

.buildkite/intel_jobs/misc_intel.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ steps:
7272
pytest -v -s v1/test_oracle.py &&
7373
pytest -v -s v1/test_request.py &&
7474
pytest -v -s v1/test_outputs.py &&
75-
pytest -v -s v1/sample/test_topk_topp_sampler.py &&
76-
pytest -v -s v1/sample/test_logprobs.py &&
77-
pytest -v -s v1/sample/test_logprobs_e2e.py'
75+
pytest -v -s v1/sample'
7876
7977
- label: Basic Models Tests (Initialization)
8078
timeout_in_minutes: 60

.buildkite/release-pipeline.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,23 @@ steps:
848848
DOCKER_BUILDKIT: "1"
849849
S3_BUCKET: "vllm-wheels"
850850

851+
- label: "Publish nightly XPU image to DockerHub"
852+
depends_on:
853+
- create-manifest-xpu
854+
if: build.env("NIGHTLY") == "1"
855+
agents:
856+
queue: small_cpu_queue_release
857+
commands:
858+
- "bash .buildkite/scripts/xpu/push-nightly-builds-xpu.sh"
859+
- "bash .buildkite/scripts/cleanup-nightly-builds.sh nightly- vllm/vllm-openai-xpu"
860+
plugins:
861+
- docker-login#v3.0.0:
862+
username: vllmbot
863+
password-env: DOCKERHUB_TOKEN
864+
env:
865+
DOCKER_BUILDKIT: "1"
866+
DOCKERHUB_USERNAME: "vllmbot"
867+
851868
- label: "Publish nightly ROCm image to DockerHub"
852869
depends_on:
853870
- build-rocm-release-image
@@ -878,6 +895,7 @@ steps:
878895
- create-multi-arch-manifest-cuda-12-9
879896
- create-multi-arch-manifest-ubuntu2404
880897
- create-multi-arch-manifest-cuda-12-9-ubuntu2404
898+
- create-manifest-xpu
881899
- build-rocm-release-image
882900
- input-release-version
883901
# Wait for CPU builds if their block steps were unblocked, so publish

.buildkite/scripts/check-ray-compatibility.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ if python3 -c "import torch; assert torch.version.hip" 2>/dev/null; then
2929
TORCH_INDEX_URL=""
3030
fi
3131
else
32-
TORCH_INDEX_URL="https://download.pytorch.org/whl/cu130"
32+
if [ "${TORCH_NIGHTLY:-0}" = "1" ]; then
33+
TORCH_INDEX_URL="https://download.pytorch.org/whl/nightly/cu130"
34+
else
35+
TORCH_INDEX_URL="https://download.pytorch.org/whl/cu130"
36+
fi
3337
fi
3438
echo ">>> Using PyTorch index: ${TORCH_INDEX_URL:-PyPI default}"
3539

.buildkite/scripts/publish-release-images.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,22 @@ docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:${ROCM_BASE_CACHE_KEY}-rocm
130130
docker push vllm/vllm-openai-rocm:latest-base
131131
docker push vllm/vllm-openai-rocm:v${RELEASE_VERSION}-base
132132

133+
# ---- XPU ----
134+
135+
docker pull public.ecr.aws/q9t5s3a7/vllm-release-repo:${COMMIT}-x86_64-xpu
136+
137+
docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:${COMMIT}-x86_64-xpu vllm/vllm-openai-xpu:latest-x86_64
138+
docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:${COMMIT}-x86_64-xpu vllm/vllm-openai-xpu:v${RELEASE_VERSION}-x86_64
139+
docker push vllm/vllm-openai-xpu:latest-x86_64
140+
docker push vllm/vllm-openai-xpu:v${RELEASE_VERSION}-x86_64
141+
142+
docker manifest rm vllm/vllm-openai-xpu:latest || true
143+
docker manifest rm vllm/vllm-openai-xpu:v${RELEASE_VERSION} || true
144+
docker manifest create vllm/vllm-openai-xpu:latest vllm/vllm-openai-xpu:latest-x86_64 --amend
145+
docker manifest create vllm/vllm-openai-xpu:v${RELEASE_VERSION} vllm/vllm-openai-xpu:v${RELEASE_VERSION}-x86_64 --amend
146+
docker manifest push vllm/vllm-openai-xpu:latest
147+
docker manifest push vllm/vllm-openai-xpu:v${RELEASE_VERSION}
148+
133149
# ---- CPU ----
134150
# CPU images are behind separate block steps and may not have been built.
135151
# All-or-nothing: inspect both arches first, then either publish everything

.buildkite/scripts/trigger-ci-build.sh

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ NC='\033[0m' # No Color
2323
# Default configuration
2424
PIPELINE="ci"
2525
DRY_RUN=true
26+
TORCH_NIGHTLY=false
2627

2728
usage() {
2829
cat <<EOF
@@ -34,12 +35,14 @@ Sets RUN_ALL=1 and NIGHTLY=1 environment variables.
3435
SAFETY: Dry-run by default. Use --execute to actually trigger a build.
3536
3637
Options:
37-
--execute Actually trigger the build (default: dry-run)
38-
--pipeline Buildkite pipeline slug (default: ${PIPELINE})
39-
--commit Override commit SHA (default: current HEAD)
40-
--branch Override branch name (default: current branch)
41-
--message Custom build message (default: auto-generated)
42-
--help Show this help message
38+
--execute Actually trigger the build (default: dry-run)
39+
--pipeline Buildkite pipeline slug (default: ${PIPELINE})
40+
--commit Override commit SHA (default: current HEAD)
41+
--branch Override branch name (default: current branch)
42+
--message Custom build message (default: auto-generated)
43+
--torch-nightly Also build and run the full suite against torch nightly
44+
(sets TORCH_NIGHTLY=1)
45+
--help Show this help message
4346
4447
Prerequisites:
4548
- bk CLI installed: brew tap buildkite/buildkite && brew install buildkite/buildkite/bk
@@ -49,6 +52,7 @@ Examples:
4952
$(basename "$0") # Dry-run, show what would happen
5053
$(basename "$0") --execute # Actually trigger the build
5154
$(basename "$0") --pipeline ci-shadow # Dry-run with different pipeline
55+
$(basename "$0") --torch-nightly # Dry-run a full torch-nightly run
5256
EOF
5357
exit 1
5458
}
@@ -96,6 +100,10 @@ while [[ $# -gt 0 ]]; do
96100
MESSAGE="$2"
97101
shift 2
98102
;;
103+
--torch-nightly)
104+
TORCH_NIGHTLY=true
105+
shift
106+
;;
99107
--help|-h)
100108
usage
101109
;;
@@ -171,11 +179,17 @@ if [[ $(echo "$REMOTE_BRANCHES" | wc -l) -gt 5 ]]; then
171179
fi
172180
echo ""
173181

182+
# Environment variables passed to the build.
183+
BUILD_ENV=("RUN_ALL=1" "NIGHTLY=1")
184+
if [[ "$TORCH_NIGHTLY" == true ]]; then
185+
BUILD_ENV+=("TORCH_NIGHTLY=1")
186+
fi
187+
174188
log_info "Pipeline: ${PIPELINE}"
175189
log_info "Branch: ${BRANCH}"
176190
log_info "Commit: ${COMMIT}"
177191
log_info "Message: ${MESSAGE}"
178-
log_info "Environment: RUN_ALL=1, NIGHTLY=1"
192+
log_info "Environment: ${BUILD_ENV[*]}"
179193
echo ""
180194

181195
# Build the command
@@ -187,9 +201,10 @@ CMD=(bk build create
187201
--commit "${COMMIT}"
188202
--branch "${BRANCH}"
189203
--message "${MESSAGE}"
190-
--env "RUN_ALL=1"
191-
--env "NIGHTLY=1"
192204
)
205+
for env_var in "${BUILD_ENV[@]}"; do
206+
CMD+=(--env "${env_var}")
207+
done
193208

194209
if [[ "$DRY_RUN" == true ]]; then
195210
echo "=========================================="
@@ -210,8 +225,14 @@ if [[ "$DRY_RUN" == true ]]; then
210225
echo " --commit '$(escape_for_shell "${COMMIT}")' \\"
211226
echo " --branch '$(escape_for_shell "${BRANCH}")' \\"
212227
echo " --message '$(escape_for_shell "${MESSAGE}")' \\"
213-
echo " --env 'RUN_ALL=1' \\"
214-
echo " --env 'NIGHTLY=1'"
228+
last_idx=$(( ${#BUILD_ENV[@]} - 1 ))
229+
for i in "${!BUILD_ENV[@]}"; do
230+
if [[ $i -eq $last_idx ]]; then
231+
echo " --env '$(escape_for_shell "${BUILD_ENV[$i]}")'"
232+
else
233+
echo " --env '$(escape_for_shell "${BUILD_ENV[$i]}")' \\"
234+
fi
235+
done
215236
echo ""
216237
echo "=========================================="
217238
echo -e "${YELLOW}To actually trigger this build, run:${NC}"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
ORIG_TAG_NAME="$BUILDKITE_COMMIT"
6+
REPO="vllm/vllm-openai-xpu"
7+
8+
echo "Pushing original XPU tag ${ORIG_TAG_NAME}-xpu to nightly tags in ${REPO}"
9+
10+
aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7
11+
docker pull public.ecr.aws/q9t5s3a7/vllm-release-repo:"$ORIG_TAG_NAME"-x86_64-xpu
12+
13+
docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:"$ORIG_TAG_NAME"-x86_64-xpu ${REPO}:nightly-x86_64
14+
docker push ${REPO}:nightly-x86_64
15+
16+
docker manifest rm ${REPO}:nightly || true
17+
docker manifest rm ${REPO}:nightly-"$BUILDKITE_COMMIT" || true
18+
docker manifest create ${REPO}:nightly ${REPO}:nightly-x86_64 --amend
19+
docker manifest create ${REPO}:nightly-"$BUILDKITE_COMMIT" ${REPO}:nightly-x86_64 --amend
20+
docker manifest push ${REPO}:nightly
21+
docker manifest push ${REPO}:nightly-"$BUILDKITE_COMMIT"

.buildkite/test_areas/attention.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ depends_on:
44
steps:
55
- label: V1 attention (H100-MI300)
66
key: v1-attention-h100-mi300
7-
timeout_in_minutes: 30
7+
timeout_in_minutes: 85
88
device: h100
99
source_file_dependencies:
1010
- vllm/config/attention.py
@@ -16,7 +16,7 @@ steps:
1616
mirror:
1717
amd:
1818
device: mi325_1
19-
timeout_in_minutes: 70
19+
timeout_in_minutes: 95
2020
depends_on:
2121
- image-build-amd
2222
source_file_dependencies:
@@ -30,7 +30,7 @@ steps:
3030

3131
- label: V1 attention (B200)
3232
key: v1-attention-b200
33-
timeout_in_minutes: 30
33+
timeout_in_minutes: 80
3434
device: b200-k8s
3535
source_file_dependencies:
3636
- vllm/config/attention.py

.buildkite/test_areas/basic_correctness.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ depends_on:
44
steps:
55
- label: Basic Correctness
66
key: basic-correctness
7-
timeout_in_minutes: 30
7+
timeout_in_minutes: 45
88
device: h200_18gb
99
source_file_dependencies:
1010
- vllm/
@@ -19,6 +19,6 @@ steps:
1919
mirror:
2020
amd:
2121
device: mi325_1
22-
timeout_in_minutes: 50
22+
timeout_in_minutes: 70
2323
depends_on:
2424
- image-build-amd

0 commit comments

Comments
 (0)