mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Docker: Remove explicit CUDA 11.8 Reference (#4343)
This commit is contained in:
parent
b98fbe0afc
commit
5a5bc135e9
@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/root/.cache/pip,rw \
|
|||||||
python3 -m venv /build/venv && \
|
python3 -m venv /build/venv && \
|
||||||
. /build/venv/bin/activate && \
|
. /build/venv/bin/activate && \
|
||||||
pip3 install --upgrade pip setuptools wheel ninja && \
|
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
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
# https://developer.nvidia.com/cuda-gpus
|
# https://developer.nvidia.com/cuda-gpus
|
||||||
@ -44,7 +44,7 @@ RUN virtualenv /app/venv
|
|||||||
RUN --mount=type=cache,target=/root/.cache/pip,rw \
|
RUN --mount=type=cache,target=/root/.cache/pip,rw \
|
||||||
. /app/venv/bin/activate && \
|
. /app/venv/bin/activate && \
|
||||||
pip3 install --upgrade pip setuptools wheel ninja && \
|
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
|
pip3 install torchvision torchaudio sentence_transformers xformers
|
||||||
|
|
||||||
# Copy and install GPTQ-for-LLaMa
|
# Copy and install GPTQ-for-LLaMa
|
||||||
@ -61,7 +61,7 @@ RUN --mount=type=cache,target=/root/.cache/pip,rw \
|
|||||||
|
|
||||||
COPY . /app/
|
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
|
# Install extension requirements
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip,rw \
|
RUN --mount=type=cache,target=/root/.cache/pip,rw \
|
||||||
|
Loading…
Reference in New Issue
Block a user