Skip to content

Commit a754dc2

Browse files
[CI/Build] Cross python wheel (#6394)
1 parent 61e85db commit a754dc2

File tree

2 files changed

+4
-38
lines changed

2 files changed

+4
-38
lines changed

.buildkite/release-pipeline.yaml

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,17 @@
11
steps:
2-
- label: "Build wheel default - Python {{matrix.python_version}}, CUDA {{matrix.cuda_version}}"
2+
- label: "Build wheel - CUDA {{matrix.cuda_version}}"
33
agents:
44
queue: cpu_queue
55
commands:
6-
- "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 ."
6+
- "DOCKER_BUILDKIT=1 docker build --build-arg max_jobs=16 --build-arg USE_SCCACHE=1 --build-arg CUDA_VERSION={{matrix.cuda_version}} --tag vllm-ci:build-image --target build --progress plain ."
77
- "mkdir artifacts"
88
- "docker run --rm -v $(pwd)/artifacts:/artifacts_host vllm-ci:build-image bash -c 'cp -r dist /artifacts_host && chmod -R a+rw /artifacts_host'"
99
# rename the files to change linux -> manylinux1
1010
- "for f in artifacts/dist/*.whl; do mv -- \"$$f\" \"$${f/linux/manylinux1}\"; done"
1111
- "aws s3 cp --recursive artifacts/dist s3://vllm-wheels/$BUILDKITE_COMMIT/"
1212
- "aws s3 cp --recursive artifacts/dist s3://vllm-wheels/nightly/"
13-
matrix:
14-
setup:
15-
cuda_version:
16-
- "12.1.0"
17-
python_version:
18-
- "3.10"
19-
- "3.11"
20-
21-
- block: "Build wheels full"
22-
23-
- label: "Build wheel - Python {{matrix.python_version}}, CUDA {{matrix.cuda_version}}"
24-
agents:
25-
queue: cpu_queue
26-
commands:
27-
- "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 ."
28-
- "mkdir artifacts"
29-
- "docker run --rm -v $(pwd)/artifacts:/artifacts_host vllm-ci:build-image bash -c 'cp -r dist /artifacts_host && chmod -R a+rw /artifacts_host'"
30-
- "for f in artifacts/dist/*.whl; do mv -- \"$$f\" \"$${f/linux/manylinux1}\"; done"
31-
- "aws s3 cp --recursive artifacts/dist s3://vllm-wheels/$BUILDKITE_COMMIT/"
32-
- "aws s3 cp --recursive artifacts/dist s3://vllm-wheels/nightly/"
3313
matrix:
3414
setup:
3515
cuda_version:
3616
- "11.8.0"
3717
- "12.1.0"
38-
python_version:
39-
- "3.8"
40-
- "3.9"
41-
- "3.10"
42-
- "3.11"
43-
adjustments:
44-
- with:
45-
cuda_version: "12.1.0"
46-
python_version: "3.10"
47-
skip: true
48-
- with:
49-
cuda_version: "12.1.0"
50-
python_version: "3.11"
51-
skip: true

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ RUN --mount=type=cache,target=/root/.cache/pip \
104104
&& export SCCACHE_REGION=us-west-2 \
105105
&& export CMAKE_BUILD_TYPE=Release \
106106
&& sccache --show-stats \
107-
&& python3 setup.py bdist_wheel --dist-dir=dist \
107+
&& python3 setup.py bdist_wheel --dist-dir=dist --py-limited-api=cp38 \
108108
&& sccache --show-stats; \
109109
fi
110110

111111
ENV CCACHE_DIR=/root/.cache/ccache
112112
RUN --mount=type=cache,target=/root/.cache/ccache \
113113
--mount=type=cache,target=/root/.cache/pip \
114114
if [ "$USE_SCCACHE" != "1" ]; then \
115-
python3 setup.py bdist_wheel --dist-dir=dist; \
115+
python3 setup.py bdist_wheel --dist-dir=dist --py-limited-api=cp38; \
116116
fi
117117

118118
# check the size of the wheel, we cannot upload wheels larger than 100MB

0 commit comments

Comments
 (0)