Skip to content

Commit 57e4c8f

Browse files
committed
Avoid installing CUDA related stuff
- Use PyTorch CPU version so we avoid installing CUDA. Signed-off-by: Weida Hong <[email protected]>
1 parent 8e76010 commit 57e4c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN git clone $VLLM_REPO /workspace/vllm
2323
RUN if [ -n "$VLLM_COMMIT_HASH" ]; then \
2424
git checkout $VLLM_COMMIT_HASH; \
2525
fi
26-
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements/tpu.txt --retries 3
26+
RUN --mount=type=cache,target=/root/.cache/pip pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements/tpu.txt --retries 3
2727
RUN --mount=type=cache,target=/root/.cache/pip VLLM_TARGET_DEVICE="tpu" pip install -e .
2828

2929
# Install test dependencies
@@ -39,7 +39,7 @@ RUN --mount=type=cache,target=/root/.cache/pip python3 -m pip install \
3939
WORKDIR /workspace/tpu_inference
4040
# Install requirements first and cache so we don't need to re-install on code change.
4141
COPY requirements.txt .
42-
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt --retries 3
42+
RUN --mount=type=cache,target=/root/.cache/pip pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt --retries 3
4343
COPY requirements_benchmarking.txt .
4444
# These are needed for the E2E benchmarking tests (i.e. tests/e2e/benchmarking/mlperf.sh)
4545
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements_benchmarking.txt --retries 3

0 commit comments

Comments
 (0)