mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01:00
docker: install xformers with sepcific cuda version, matching the docker image. (#4670)
This commit is contained in:
parent
f0d66cf817
commit
5e70263e25
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user