This repository was archived by the owner on Sep 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ ARG BUILD_PYTORCH="1"
12
12
# This ARG should also be "0" or "1". If "1", the vLLM development directory is obtained via git clone.
13
13
# If "0", it is copied in from the local working directory.
14
14
ARG REMOTE_VLLM="0"
15
+ ARG USE_CYTHON="0"
15
16
16
17
# -----------------------
17
18
# vLLM base image
@@ -153,6 +154,7 @@ FROM fetch_vllm_${REMOTE_VLLM} AS fetch_vllm
153
154
# vLLM (and gradlib) build stages
154
155
FROM fetch_vllm AS build_vllm
155
156
ARG COMMON_WORKDIR
157
+ ARG USE_CYTHON
156
158
# Install hipblaslt
157
159
RUN --mount=type=bind,from=export_hipblaslt,src=/,target=/install \
158
160
if ls /install/*.deb; then \
@@ -168,7 +170,9 @@ if ls /install/*.whl; then \
168
170
fi
169
171
# Build vLLM
170
172
RUN cd vllm \
171
- && python3 setup.py clean --all && python3 setup.py bdist_wheel --dist-dir=dist
173
+ && python3 setup.py clean --all \
174
+ && if [ ${USE_CYTHON} -eq "1" ]; then python3 setup_cython.py build_ext --inplace; fi \
175
+ && python3 setup.py bdist_wheel --dist-dir=dist
172
176
# Build gradlib
173
177
RUN cd vllm/gradlib \
174
178
&& python3 setup.py clean --all && python3 setup.py bdist_wheel --dist-dir=dist
You can’t perform that action at this time.
0 commit comments