Docker: Remove explicit CUDA 11.8 Reference (#4343)

This commit is contained in:
Adam White 2023-10-21 13:09:34 -05:00 committed by GitHub
parent b98fbe0afc
commit 5a5bc135e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 \