Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
a754dc2c
Unverified
Commit
a754dc2c
authored
Jul 14, 2024
by
Robert Shaw
Committed by
GitHub
Jul 14, 2024
Browse files
[CI/Build] Cross python wheel (#6394)
parent
61e85dba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
38 deletions
+4
-38
.buildkite/release-pipeline.yaml
.buildkite/release-pipeline.yaml
+2
-36
Dockerfile
Dockerfile
+2
-2
No files found.
.buildkite/release-pipeline.yaml
View file @
a754dc2c
steps
:
steps
:
-
label
:
"
Build
wheel
default
-
Python
{{matrix.python_version}},
CUDA
{{matrix.cuda_version}}"
-
label
:
"
Build
wheel
-
CUDA
{{matrix.cuda_version}}"
agents
:
agents
:
queue
:
cpu_queue
queue
:
cpu_queue
commands
:
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
."
-
"
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
."
-
"
mkdir
artifacts"
-
"
mkdir
artifacts"
-
"
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'"
-
"
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'"
# rename the files to change linux -> manylinux1
# rename the files to change linux -> manylinux1
-
"
for
f
in
artifacts/dist/*.whl;
do
mv
--
\"
$$f
\"
\"
$${f/linux/manylinux1}
\"
;
done"
-
"
for
f
in
artifacts/dist/*.whl;
do
mv
--
\"
$$f
\"
\"
$${f/linux/manylinux1}
\"
;
done"
-
"
aws
s3
cp
--recursive
artifacts/dist
s3://vllm-wheels/$BUILDKITE_COMMIT/"
-
"
aws
s3
cp
--recursive
artifacts/dist
s3://vllm-wheels/$BUILDKITE_COMMIT/"
-
"
aws
s3
cp
--recursive
artifacts/dist
s3://vllm-wheels/nightly/"
-
"
aws
s3
cp
--recursive
artifacts/dist
s3://vllm-wheels/nightly/"
matrix
:
setup
:
cuda_version
:
-
"
12.1.0"
python_version
:
-
"
3.10"
-
"
3.11"
-
block
:
"
Build
wheels
full"
-
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
bash
-c
'cp
-r
dist
/artifacts_host
&&
chmod
-R
a+rw
/artifacts_host'"
-
"
for
f
in
artifacts/dist/*.whl;
do
mv
--
\"
$$f
\"
\"
$${f/linux/manylinux1}
\"
;
done"
-
"
aws
s3
cp
--recursive
artifacts/dist
s3://vllm-wheels/$BUILDKITE_COMMIT/"
-
"
aws
s3
cp
--recursive
artifacts/dist
s3://vllm-wheels/nightly/"
matrix
:
matrix
:
setup
:
setup
:
cuda_version
:
cuda_version
:
-
"
11.8.0"
-
"
11.8.0"
-
"
12.1.0"
-
"
12.1.0"
python_version
:
-
"
3.8"
-
"
3.9"
-
"
3.10"
-
"
3.11"
adjustments
:
-
with
:
cuda_version
:
"
12.1.0"
python_version
:
"
3.10"
skip
:
true
-
with
:
cuda_version
:
"
12.1.0"
python_version
:
"
3.11"
skip
:
true
Dockerfile
View file @
a754dc2c
...
@@ -104,7 +104,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
...
@@ -104,7 +104,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
&&
export
SCCACHE_REGION
=
us-west-2
\
&&
export
SCCACHE_REGION
=
us-west-2
\
&&
export
CMAKE_BUILD_TYPE
=
Release
\
&&
export
CMAKE_BUILD_TYPE
=
Release
\
&&
sccache
--show-stats
\
&&
sccache
--show-stats
\
&&
python3 setup.py bdist_wheel
--dist-dir
=
dist
\
&&
python3 setup.py bdist_wheel
--dist-dir
=
dist
--py-limited-api
=
cp38
\
&&
sccache
--show-stats
;
\
&&
sccache
--show-stats
;
\
fi
fi
...
@@ -112,7 +112,7 @@ ENV CCACHE_DIR=/root/.cache/ccache
...
@@ -112,7 +112,7 @@ ENV CCACHE_DIR=/root/.cache/ccache
RUN
--mount
=
type
=
cache,target
=
/root/.cache/ccache
\
RUN
--mount
=
type
=
cache,target
=
/root/.cache/ccache
\
--mount
=
type
=
cache,target
=
/root/.cache/pip
\
--mount
=
type
=
cache,target
=
/root/.cache/pip
\
if
[
"
$USE_SCCACHE
"
!=
"1"
]
;
then
\
if
[
"
$USE_SCCACHE
"
!=
"1"
]
;
then
\
python3 setup.py bdist_wheel
--dist-dir
=
dist
;
\
python3 setup.py bdist_wheel
--dist-dir
=
dist
--py-limited-api
=
cp38
;
\
fi
fi
# check the size of the wheel, we cannot upload wheels larger than 100MB
# check the size of the wheel, we cannot upload wheels larger than 100MB
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment