-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[ci] Setup Release pipeline and build release wheels with cache #5610
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
469fe03
p
khluu b1c1a57
p
khluu ca75c10
p
khluu 7f7e384
p
khluu d45f716
python3
khluu fbee97f
p
khluu f89896d
p
khluu 65b6854
p
khluu 3671e80
p
khluu c66fea1
p
khluu d29ba81
finalize
khluu 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 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,21 @@ | ||
steps: | ||
- block: "Build wheels" | ||
|
||
- label: "Build wheel - Python {{matrix.python_version}}, CUDA {{matrix.cuda_version}}" | ||
agents: | ||
queue: cpu_queue | ||
commands: | ||
- "DOCKER_BUILDKIT=1 docker build --build-arg max_jobs=16 --build-arg USE_SCCACHE=1 --build-arg CUDA_VERSION={{matrix.cuda_version}} --build-arg PYTHON_VERSION={{matrix.python_version}} --tag vllm-ci:build-image --target build --progress plain ." | ||
- "mkdir artifacts" | ||
- "docker run --rm -v $(pwd)/artifacts:/artifacts_host vllm-ci:build-image cp -r dist /artifacts_host" | ||
- "aws s3 cp --recursive artifacts/dist s3://vllm-wheels/$BUILDKITE_COMMIT/" | ||
matrix: | ||
setup: | ||
cuda_version: | ||
- "11.8.0" | ||
- "12.1.0" | ||
python_version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" |
This file contains 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
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.
Does multi-stage dockerifle support global arg?
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.
I don't think so.
ARG
defined beforeFROM
command can be only used for theFROM
command IIRC. For multi-stage, here is what said on Docker documentation: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.
Just as a fyi: it sort of does. What you have to do is define all your desired global
ARG
s at the top of the Dockerfile, before anyFROM
s. Then, for each stage which uses such a global arg, you'll also have to add in an emptyARG
to import the value of that global arg into that stage, e.g. just aARG PYTHON_VERSION
here.