Skip to content

Commit

Permalink
Uninstall dependencies before installing requirements/tpu.txt (#14586)
Browse files Browse the repository at this point in the history
Signed-off-by: <[email protected]>
Signed-off-by: Richard Liu <[email protected]>
  • Loading branch information
richardsliu authored Mar 11, 2025
1 parent af295e9 commit 9ab3267
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.tpu
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ ARG GIT_REPO_CHECK=0
RUN --mount=type=bind,source=.git,target=.git \
if [ "$GIT_REPO_CHECK" != 0 ]; then bash tools/check_repo.sh; fi

# Remove existing versions of dependencies
RUN pip uninstall -y torch torch_xla torchvision

ENV VLLM_TARGET_DEVICE="tpu"
RUN --mount=type=cache,target=/root/.cache/pip \
--mount=type=bind,source=.git,target=.git \
Expand Down

0 comments on commit 9ab3267

Please sign in to comment.