Skip to content

Commit

Permalink
chore: update torch (#1730)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Patry <[email protected]>
  • Loading branch information
OlivierDehaene and Narsil authored Apr 30, 2024
1 parent c99ecd7 commit b4ef038
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ RUN cargo build --release
# Adapted from: https://github.com/pytorch/pytorch/blob/master/Dockerfile
FROM nvidia/cuda:12.1.0-devel-ubuntu22.04 as pytorch-install

ARG PYTORCH_VERSION=2.1.1
ARG PYTORCH_VERSION=2.3.0
ARG PYTHON_VERSION=3.10
# Keep in sync with `server/pyproject.toml
ARG CUDA_VERSION=12.1
Expand Down Expand Up @@ -149,6 +149,8 @@ FROM kernel-builder as vllm-builder

WORKDIR /usr/src

ENV TORCH_CUDA_ARCH_LIST="7.0 7.5 8.0 8.6 8.9 9.0+PTX"

COPY server/Makefile-vllm Makefile

# Build specific version of vllm
Expand Down Expand Up @@ -210,7 +212,7 @@ COPY --from=vllm-builder /usr/src/vllm/build/lib.linux-x86_64-cpython-310 /opt/c
COPY --from=mamba-builder /usr/src/mamba/build/lib.linux-x86_64-cpython-310/ /opt/conda/lib/python3.10/site-packages
COPY --from=mamba-builder /usr/src/causal-conv1d/build/lib.linux-x86_64-cpython-310/ /opt/conda/lib/python3.10/site-packages

# Install vllm/flash-attention dependencies
# Install flash-attention dependencies
RUN pip install einops --no-cache-dir

# Install server
Expand Down Expand Up @@ -246,6 +248,7 @@ ENTRYPOINT ["./entrypoint.sh"]
FROM base

COPY ./tgi-entrypoint.sh /tgi-entrypoint.sh
RUN chmod +x /tgi-entrypoint.sh

ENTRYPOINT ["/tgi-entrypoint.sh"]
CMD ["--json-output"]
2 changes: 1 addition & 1 deletion server/Makefile-vllm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ vllm-cuda:
git clone https://github.com/OlivierDehaene/vllm.git vllm

build-vllm-cuda: vllm-cuda
cd vllm && git fetch && git checkout 4bec8cee87f6bb8cebaec297029713cd2082e0b2
cd vllm && git fetch && git checkout 3d4693536dcb69f036c26b016a35839b99ebed59
cd vllm && python setup.py build

install-vllm-cuda: build-vllm-cuda
Expand Down

0 comments on commit b4ef038

Please sign in to comment.