Skip to content

Commit 0e5801e

Browse files
authored
Update auto to pytorch 2 (#442)
Closes #410
1 parent 2efaeb4 commit 0e5801e

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
<<: *base_service
2929
profiles: ["auto"]
3030
build: ./services/AUTOMATIC1111
31-
image: sd-auto:54
31+
image: sd-auto:55
3232
environment:
3333
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
3434

services/AUTOMATIC1111/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@ RUN . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interr
1818

1919
FROM alpine:3.17 as xformers
2020
RUN apk add --no-cache aria2
21-
RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/5.0.0/xformers-0.0.17.dev449-cp310-cp310-manylinux2014_x86_64.whl'
21+
RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/5.0.3/xformers-0.0.20.dev528-cp310-cp310-manylinux2014_x86_64-pytorch2.whl'
22+
2223

2324
FROM python:3.10.9-slim
2425

2526
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
2627

27-
RUN --mount=type=cache,target=/root/.cache/pip pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
28+
RUN apt-get update && apt install fonts-dejavu-core rsync git jq moreutils aria2 -y && apt-get clean
2829

29-
# RUN --mount=type=cache,target=/root/.cache/pip pip install torch==2.0.0+cu118 torchvision --extra-index-url https://download.pytorch.org/whl/cu117
30+
RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip \
31+
aria2c -x 5 --dir /cache --out torch-2.0.0-cp310-cp310-linux_x86_64.whl -c \
32+
https://download.pytorch.org/whl/cu118/torch-2.0.0%2Bcu118-cp310-cp310-linux_x86_64.whl && \
33+
pip install /cache/torch-2.0.0-cp310-cp310-linux_x86_64.whl torchvision --index-url https://download.pytorch.org/whl/cu118
3034

31-
RUN apt-get update && apt install fonts-dejavu-core rsync git jq moreutils -y && apt-get clean
3235

3336

3437
RUN --mount=type=cache,target=/root/.cache/pip \
@@ -38,8 +41,8 @@ RUN --mount=type=cache,target=/root/.cache/pip \
3841
pip install -r requirements_versions.txt
3942

4043
RUN --mount=type=cache,target=/root/.cache/pip \
41-
--mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.15-cp310-cp310-linux_x86_64.whl \
42-
pip install triton /xformers-0.0.15-cp310-cp310-linux_x86_64.whl
44+
--mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.20.dev528-cp310-cp310-manylinux2014_x86_64.whl \
45+
pip install /xformers-0.0.20.dev528-cp310-cp310-manylinux2014_x86_64.whl
4346

4447
ENV ROOT=/stable-diffusion-webui
4548

0 commit comments

Comments
 (0)