From 5a5bc135e937ea4038762dcd6583576106d454ca Mon Sep 17 00:00:00 2001 From: Adam White Date: Sat, 21 Oct 2023 13:09:34 -0500 Subject: [PATCH] Docker: Remove explicit CUDA 11.8 Reference (#4343) --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index f0372e54..722bc8fc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/root/.cache/pip,rw \ python3 -m venv /build/venv && \ . /build/venv/bin/activate && \ pip3 install --upgrade pip setuptools wheel ninja && \ - pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 && \ + pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 && \ pip3 install -r requirements.txt # https://developer.nvidia.com/cuda-gpus @@ -44,7 +44,7 @@ RUN virtualenv /app/venv RUN --mount=type=cache,target=/root/.cache/pip,rw \ . /app/venv/bin/activate && \ pip3 install --upgrade pip setuptools wheel ninja && \ - pip3 install torch --index-url https://download.pytorch.org/whl/cu118 && \ + pip3 install torch --index-url https://download.pytorch.org/whl/cu121 && \ pip3 install torchvision torchaudio sentence_transformers xformers # Copy and install GPTQ-for-LLaMa @@ -61,7 +61,7 @@ RUN --mount=type=cache,target=/root/.cache/pip,rw \ COPY . /app/ -RUN cp /app/venv/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda118.so /app/venv/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so +RUN cp /app/venv/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda121.so /app/venv/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so # Install extension requirements RUN --mount=type=cache,target=/root/.cache/pip,rw \