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
203ab8f8
Unverified
Commit
203ab8f8
authored
Oct 14, 2024
by
Daniele
Committed by
GitHub
Oct 14, 2024
Browse files
[CI/Build] setuptools-scm fixes (#8900)
parent
4141608c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
41 deletions
+47
-41
.buildkite/release-pipeline.yaml
.buildkite/release-pipeline.yaml
+2
-2
.dockerignore
.dockerignore
+29
-1
.github/workflows/scripts/build.sh
.github/workflows/scripts/build.sh
+1
-2
Dockerfile
Dockerfile
+1
-9
Dockerfile.openvino
Dockerfile.openvino
+1
-10
collect_env.py
collect_env.py
+10
-17
pyproject.toml
pyproject.toml
+3
-0
No files found.
.buildkite/release-pipeline.yaml
View file @
203ab8f8
...
...
@@ -3,7 +3,7 @@ steps:
agents
:
queue
:
cpu_queue
commands
:
-
"
DOCKER_BUILDKIT=1
docker
build
--build-arg
max_jobs=16
--build-arg
buildkite_commit=$BUILDKITE_COMMIT
--build-arg
USE_SCCACHE=1
--build-arg
CUDA_VERSION=12.1.0
--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=12.1.0
--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'"
# rename the files to change linux -> manylinux1
...
...
@@ -22,7 +22,7 @@ steps:
agents
:
queue
:
cpu_queue
commands
:
-
"
DOCKER_BUILDKIT=1
docker
build
--build-arg
max_jobs=16
--build-arg
buildkite_commit=$BUILDKITE_COMMIT
--build-arg
USE_SCCACHE=1
--build-arg
CUDA_VERSION=11.8.0
--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=11.8.0
--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'"
# rename the files to change linux -> manylinux1
...
...
.dockerignore
View file @
203ab8f8
...
...
@@ -2,5 +2,33 @@
/.venv
/build
dist
Dockerfile*
vllm/*.so
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
.mypy_cache
# Distribution / packaging
.Python
/build/
cmake-build-*/
CMakeUserPresets.json
develop-eggs/
/dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
.github/workflows/scripts/build.sh
View file @
203ab8f8
...
...
@@ -8,8 +8,7 @@ PATH=${cuda_home}/bin:$PATH
LD_LIBRARY_PATH
=
${
cuda_home
}
/lib64:
$LD_LIBRARY_PATH
# Install requirements
$python_executable
-m
pip
install
wheel packaging
'setuptools-scm>=8'
$python_executable
-m
pip
install
-r
requirements-cuda.txt
$python_executable
-m
pip
install
-r
requirements-build.txt
-r
requirements-cuda.txt
# Limit the number of parallel jobs to avoid OOM
export
MAX_JOBS
=
1
...
...
Dockerfile
View file @
203ab8f8
...
...
@@ -71,15 +71,7 @@ RUN --mount=type=cache,target=/root/.cache/pip \
python3
-m
pip
install
-r
requirements-build.txt
# files and directories related to build wheels
COPY
csrc csrc
COPY
setup.py setup.py
COPY
cmake cmake
COPY
CMakeLists.txt CMakeLists.txt
COPY
README.md README.md
COPY
requirements-common.txt requirements-common.txt
COPY
requirements-cuda.txt requirements-cuda.txt
COPY
pyproject.toml pyproject.toml
COPY
vllm vllm
COPY
. .
# max jobs used by Ninja to build extensions
ARG
max_jobs=2
...
...
Dockerfile.openvino
View file @
203ab8f8
...
...
@@ -9,16 +9,7 @@ RUN apt-get update -y && \
ffmpeg libsm6 libxext6 libgl1
WORKDIR /workspace
# copy requirements
COPY requirements-build.txt /workspace/vllm/
COPY requirements-common.txt /workspace/vllm/
COPY requirements-openvino.txt /workspace/vllm/
COPY vllm/ /workspace/vllm/vllm
COPY csrc/core /workspace/vllm/csrc/core
COPY cmake/utils.cmake /workspace/vllm/cmake/
COPY CMakeLists.txt /workspace/vllm/
COPY setup.py /workspace/vllm/
COPY . .
# install build requirements
RUN PIP_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" python3 -m pip install -r /workspace/vllm/requirements-build.txt
...
...
collect_env.py
View file @
203ab8f8
...
...
@@ -267,23 +267,16 @@ def get_neuron_sdk_version(run_lambda):
def
get_vllm_version
():
version
=
""
try
:
import
vllm
version
=
vllm
.
__version__
except
Exception
:
pass
commit
=
""
try
:
import
vllm
commit
=
vllm
.
__commit__
except
Exception
:
pass
if
version
!=
""
and
commit
!=
""
:
return
f
"
{
version
}
@
{
commit
}
"
if
version
==
""
and
commit
==
""
:
return
"N/A"
return
version
or
commit
from
vllm
import
__version__
,
__version_tuple__
if
__version__
==
"dev"
:
return
"N/A (dev)"
if
len
(
__version_tuple__
)
==
4
:
# dev build
git_sha
=
__version_tuple__
[
-
1
][
1
:]
# type: ignore
return
f
"
{
__version__
}
(git sha:
{
git_sha
}
"
return
__version__
def
summarize_vllm_build_flags
():
# This could be a static method if the flags are constant, or dynamic if you need to check environment variables, etc.
...
...
pyproject.toml
View file @
203ab8f8
...
...
@@ -12,6 +12,9 @@ requires = [
]
build-backend
=
"setuptools.build_meta"
[tool.setuptools_scm]
# version_file = "vllm/_version.py" # currently handled by `setup.py:get_version()`
[tool.ruff]
# Allow lines to be as long as 80.
line-length
=
80
...
...
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