-
-
Notifications
You must be signed in to change notification settings - Fork 17k
[ROCm] [Nightly Docker Release] nightly rocm docker #34756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c194db4
preliminary attempt on nightly rocm docker
0fee22f
preliminary attempt on nightly rocm docker
5da10c9
added GIT_REPO_CHECK and id
51b1f66
mock release
tjtanaa 44f12d4
fix syntax
tjtanaa 1e7eacc
fix the missing rocm/vllm-dev:base
tjtanaa c64df63
fix the name
tjtanaa 99b927c
make the commit ready
tjtanaa bc71e30
revert the annotate rocm release
tjtanaa eff56a4
update today with owner
tjtanaa 9811b0c
Merge branch 'main' into nightly-rocm
tjtanaa 4980412
remove if
tjtanaa a2f9569
Merge branch 'nightly-rocm' of https://github.com/hongxiayang/vllm in…
tjtanaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| #!/bin/bash | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # SPDX-FileCopyrightText: Copyright contributors to the vLLM project | ||
| # | ||
| # Push ROCm nightly base image and nightly image from ECR | ||
| # to Docker Hub as vllm/vllm-openai-rocm:nightly-base and vllm/vllm-openai-rocm:nightly | ||
| # and vllm/vllm-openai-rocm:base-nightly-<commit> and vllm/vllm-openai-rocm:nightly-<commit>. | ||
| # Run when NIGHTLY=1 after build-rocm-release-image has pushed to ECR. | ||
| # | ||
| # Local testing (no push to Docker Hub): | ||
| # BUILDKITE_COMMIT=<commit-with-rocm-image-in-ecr> DRY_RUN=1 bash .buildkite/scripts/push-nightly-builds-rocm.sh | ||
| # Requires: AWS CLI configured (for ECR public login), Docker. For full run: Docker Hub login. | ||
|
|
||
| set -ex | ||
|
|
||
| # Use BUILDKITE_COMMIT from env (required; set to a commit that has ROCm image in ECR for local test) | ||
| BUILDKITE_COMMIT="${BUILDKITE_COMMIT:?Set BUILDKITE_COMMIT to the commit SHA that has the ROCm image in ECR (e.g. from a previous release pipeline run)}" | ||
| DRY_RUN="${DRY_RUN:-0}" | ||
|
|
||
| BASE_ORIG_TAG="${BUILDKITE_COMMIT}-rocm-base" | ||
| ORIG_TAG="${BUILDKITE_COMMIT}-rocm" | ||
| BASE_TAG_NAME="base-nightly" | ||
| TAG_NAME="nightly" | ||
| BASE_TAG_NAME_COMMIT="base-nightly-${BUILDKITE_COMMIT}" | ||
| TAG_NAME_COMMIT="nightly-${BUILDKITE_COMMIT}" | ||
|
|
||
| echo "Pushing ROCm image from ECR tag $ORIG_TAG to Docker Hub as $TAG_NAME and $TAG_NAME_COMMIT" | ||
| [[ "$DRY_RUN" == "1" ]] && echo "[DRY_RUN] Skipping push to Docker Hub" | ||
|
|
||
| # Login to ECR and pull the image built by build-rocm-release-image | ||
| aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/q9t5s3a7 | ||
| docker pull public.ecr.aws/q9t5s3a7/vllm-release-repo:"$BASE_ORIG_TAG" | ||
| docker pull public.ecr.aws/q9t5s3a7/vllm-release-repo:"$ORIG_TAG" | ||
|
|
||
| # Tag for Docker Hub (base-nightly and nightly-base, nightly and nightly-<commit>) | ||
| docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:"$BASE_ORIG_TAG" vllm/vllm-openai-rocm:"$BASE_TAG_NAME" | ||
| docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:"$BASE_ORIG_TAG" vllm/vllm-openai-rocm:"$BASE_TAG_NAME_COMMIT" | ||
| docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:"$ORIG_TAG" vllm/vllm-openai-rocm:"$TAG_NAME" | ||
| docker tag public.ecr.aws/q9t5s3a7/vllm-release-repo:"$ORIG_TAG" vllm/vllm-openai-rocm:"$TAG_NAME_COMMIT" | ||
|
|
||
| if [[ "$DRY_RUN" == "1" ]]; then | ||
| echo "[DRY_RUN] Would push vllm/vllm-openai-rocm:$BASE_TAG_NAME and vllm/vllm-openai-rocm:$BASE_TAG_NAME_COMMIT" | ||
| echo "[DRY_RUN] Would push vllm/vllm-openai-rocm:$TAG_NAME and vllm/vllm-openai-rocm:$TAG_NAME_COMMIT" | ||
| echo "[DRY_RUN] Local tags created. Exiting without push." | ||
| exit 0 | ||
| fi | ||
|
|
||
| # Push to Docker Hub (docker-login plugin runs before this step in CI) | ||
| docker push vllm/vllm-openai-rocm:"$BASE_TAG_NAME" | ||
| docker push vllm/vllm-openai-rocm:"$BASE_TAG_NAME_COMMIT" | ||
| docker push vllm/vllm-openai-rocm:"$TAG_NAME" | ||
| docker push vllm/vllm-openai-rocm:"$TAG_NAME_COMMIT" | ||
|
|
||
| echo "Pushed vllm/vllm-openai-rocm:$BASE_TAG_NAME and vllm/vllm-openai-rocm:$BASE_TAG_NAME_COMMIT" | ||
| echo "Pushed vllm/vllm-openai-rocm:$TAG_NAME and vllm/vllm-openai-rocm:$TAG_NAME_COMMIT" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve maintainability, it's better to define the ROCm nightly repository name as an environment variable and pass it to the scripts. This avoids hardcoding the same string in multiple places and makes it easier to update in the future. This change is required to work with the suggested changes in
push-nightly-builds-rocm.sh.