Skip to content

Commit 9a1a9c1

Browse files
committed
fix(vllm-builder): Configure CUDA environment variables for vLLM compilation
1 parent 6dcafb5 commit 9a1a9c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vllm-tensorizer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ RUN --mount=type=bind,from=vllm-downloader,source=/git/vllm,target=/workspace,rw
5454
--mount=type=bind,from=freezer,target=/tmp/frozen,rw \
5555
/tmp/frozen/freeze.sh torch torchaudio torchvision xformers > /tmp/frozen/constraints.txt && \
5656
if [ -z "$MAX_JOBS" ]; then unset MAX_JOBS; fi && \
57-
LIBRARY_PATH="/usr/local/cuda/lib64/stubs${LIBRARY_PATH:+:$LIBRARY_PATH}" \
57+
LIBRARY_PATH="/usr/local/cuda/lib64:${LIBRARY_PATH:+:$LIBRARY_PATH}" \
58+
CUDA_TOOLKIT_ROOT_DIR="/usr/local/cuda" \
5859
python3 -m pip wheel -w /wheels \
5960
-v --no-cache-dir --no-build-isolation --no-deps \
6061
-c /tmp/frozen/constraints.txt \

0 commit comments

Comments
 (0)