From 7844103e43811301b46e19c6c503140a6f17592e Mon Sep 17 00:00:00 2001 From: AlpinDale Date: Sun, 1 Sep 2024 06:00:33 +0000 Subject: [PATCH] build: update torch to 2.4.0 for cpu --- Dockerfile.cpu | 2 +- requirements-cpu.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.cpu b/Dockerfile.cpu index f1c72596a..71e8a580a 100644 --- a/Dockerfile.cpu +++ b/Dockerfile.cpu @@ -26,7 +26,7 @@ COPY ./ /workspace/aphrodite-engine WORKDIR /workspace/aphrodite-engine -RUN pip install -v -r requirements-cpu.txt --extra-index-url https://download.pytorch.org/whl/test/cpu +RUN pip install -v -r requirements-cpu.txt --extra-index-url https://download.pytorch.org/whl/cpu # Support for building with non-AVX512 Aphrodite: docker build --build-arg APHRODITE_CPU_DISABLE_AVX512="true" ... ARG APHRODITE_CPU_DISABLE_AVX512 diff --git a/requirements-cpu.txt b/requirements-cpu.txt index 6f9a1e7f7..82ad0cbed 100644 --- a/requirements-cpu.txt +++ b/requirements-cpu.txt @@ -2,5 +2,5 @@ -r requirements-common.txt # Dependencies for x86_64 CPUs -torch == 2.4.0; platform_machine != "ppc64le" +torch == 2.4.0+cpu; platform_machine != "ppc64le" torchvision; platform_machine != "ppc64le" # required for the image processor of phi3v, this must be updated alongside torch \ No newline at end of file