mirror of
https://github.com/Atinoda/text-generation-webui-docker
synced 2024-11-11 13:11:20 +00:00
parent
994e701bf2
commit
6726a71bf6
@ -37,7 +37,7 @@ RUN cp -ar /src /app
|
||||
# Base
|
||||
FROM app_base AS app_nvidia
|
||||
# Install pytorch for CUDA 12.1
|
||||
RUN pip3 install torch==2.1.* torchvision==0.16.* torchaudio==2.1.* \
|
||||
RUN pip3 install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 \
|
||||
--index-url https://download.pytorch.org/whl/cu121
|
||||
# Install oobabooga/text-generation-webui
|
||||
RUN pip3 install -r /app/requirements.txt
|
||||
@ -53,7 +53,7 @@ RUN chmod +x /scripts/build_extensions.sh && \
|
||||
# Base
|
||||
FROM app_base AS app_rocm
|
||||
# Install pytorch for ROCM
|
||||
RUN pip3 install torch==2.1.* torchvision==0.16.* torchaudio==2.1.* \
|
||||
RUN pip3 install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 \
|
||||
--index-url https://download.pytorch.org/whl/rocm5.6
|
||||
# Install oobabooga/text-generation-webui
|
||||
RUN pip3 install -r /app/requirements_amd.txt
|
||||
@ -89,7 +89,7 @@ RUN chmod +x /scripts/build_extensions.sh && \
|
||||
# Base
|
||||
FROM app_base AS app_cpu
|
||||
# Install pytorch for CPU
|
||||
RUN pip3 install torch==2.1.* torchvision==0.16.* torchaudio==2.1.* \
|
||||
RUN pip3 install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 \
|
||||
--index-url https://download.pytorch.org/whl/cpu
|
||||
# Install oobabooga/text-generation-webui
|
||||
RUN pip3 install -r /app/requirements_cpu_only.txt
|
||||
|
Loading…
Reference in New Issue
Block a user