Skip to content

Commit

Permalink
BUG: Docker image issue due to torchvision (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengjieLi28 authored May 15, 2024
1 parent 1ae2d1f commit 672d8ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ jobs:
docker tag "$DOCKER_ORG/xinference:${GIT_TAG}-cpu" "$DOCKER_ORG/xinference:latest-cpu"
docker push "$DOCKER_ORG/xinference:latest-cpu"
fi
- name: Clean docker image cache
shell: bash
if: ${{ github.repository == 'xorbitsai/inference' }}
env:
DOCKER_ORG: ${{ secrets.DOCKERHUB_USERNAME }}
run: |
docker system prune -f
2 changes: 2 additions & 0 deletions xinference/deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH

ARG PIP_INDEX=https://pypi.org/simple
RUN python -m pip install --upgrade -i "$PIP_INDEX" pip && \
# uninstall builtin torchvision, and let xinference decide which version to be installed
pip uninstall -y torchvision torchaudio && \
CMAKE_ARGS="-DGGML_CUBLAS=ON" pip install -i "$PIP_INDEX" -U chatglm-cpp && \
CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install -i "$PIP_INDEX" -U llama-cpp-python && \
cd /opt/inference && \
Expand Down

0 comments on commit 672d8ff

Please sign in to comment.