From 5e70263e2532a6754870494ca8407046a247b9a2 Mon Sep 17 00:00:00 2001 From: drew9781 <46463683+drew9781@users.noreply.github.com> Date: Sun, 19 Nov 2023 18:43:15 -0600 Subject: [PATCH] docker: install xformers with sepcific cuda version, matching the docker image. (#4670) --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5752b2a7..9feea6e9 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/cu121 && \ + pip3 install torch torchvision torchaudio xformers --index-url https://download.pytorch.org/whl/cu121 && \ pip3 install -r requirements.txt # https://developer.nvidia.com/cuda-gpus @@ -44,8 +44,8 @@ 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/cu121 && \ - pip3 install torchvision torchaudio sentence_transformers xformers + pip3 install torch xformers --index-url https://download.pytorch.org/whl/cu121 && \ + pip3 install torchvision torchaudio sentence_transformers # Copy and install GPTQ-for-LLaMa COPY --from=builder /build /app/repositories/GPTQ-for-LLaMa