replicate / cog-stable-diffusion

Diffusers Stable Diffusion as a Cog model
https://replicate.com/stability-ai/stable-diffusion
Apache License 2.0
640 stars 324 forks source link

Operation error reporting #77

Open qingfengfenga opened 1 year ago

qingfengfenga commented 1 year ago

WSL2

$ cog run script/download-weights
Building Docker image from environment in cog.yaml...
[+] Building 14.0s (15/16)
 => [internal] load build definition from Dockerfile                                                               0.0s
 => => transferring dockerfile: 2.01kB                                                                             0.0s
 => [internal] load .dockerignore                                                                                  0.0s
 => => transferring context: 34B                                                                                   0.0s
 => resolve image config for docker.io/docker/dockerfile:1.2                                                       0.0s
 => CACHED docker-image://docker.io/docker/dockerfile:1.2                                                          0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04                             0.0s
 => [stage-0  1/10] FROM docker.io/nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04                                     0.0s
 => [internal] load build context                                                                                  0.1s
 => => transferring context: 40.63kB                                                                               0.1s
 => CACHED [stage-0  2/10] RUN rm -f /etc/apt/sources.list.d/cuda.list &&     rm -f /etc/apt/sources.list.d/nvidi  0.0s
 => CACHED [stage-0  3/10] RUN --mount=type=cache,target=/var/cache/apt set -eux; apt-get update -qq; apt-get ins  0.0s
 => CACHED [stage-0  4/10] RUN --mount=type=cache,target=/var/cache/apt apt-get update -qq && apt-get install -qq  0.0s
 => CACHED [stage-0  5/10] RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/p  0.0s
 => CACHED [stage-0  6/10] COPY .cog/tmp/build2431266460/cog-0.0.1.dev-py3-none-any.whl /tmp/cog-0.0.1.dev-py3-no  0.0s
 => CACHED [stage-0  7/10] RUN --mount=type=cache,target=/root/.cache/pip pip install /tmp/cog-0.0.1.dev-py3-none  0.0s
 => CACHED [stage-0  8/10] COPY .cog/tmp/build2431266460/requirements.txt /tmp/requirements.txt                    0.0s
 => ERROR [stage-0  9/10] RUN --mount=type=cache,target=/root/.cache/pip pip install -r /tmp/requirements.txt     13.5s
------
 > [stage-0  9/10] RUN --mount=type=cache,target=/root/.cache/pip pip install -r /tmp/requirements.txt:
#15 1.134 Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116
#15 3.250 Collecting diffusers==0.11.1
#15 3.257   Using cached diffusers-0.11.1-py3-none-any.whl (524 kB)
#15 4.544 Collecting torch==1.13.0+cu116
#15 13.49 /root/.pyenv/pyenv.d/exec/pip-rehash/pip: line 20:    99 Killed                  "$PYENV_COMMAND_PATH" "$@"
------
executor failed running [/bin/sh -c pip install -r /tmp/requirements.txt]: exit code: 137
ⅹ Failed to build Docker image: exit status 1
qingfengfenga commented 1 year ago

Centos7

$ cog run script/download-weights
Building Docker image from environment in cog.yaml...
[+] Building 254.6s (10/16)
[+] Building 385.4s (10/16)
[+] Building 557.1s (10/16)
[+] Building 557.3s (10/16)
[+] Building 1379.4s (14/16)
[+] Building 1388.9s (14/16)
 => [internal] load build definition from Dockerfile                                                                    0.0s
 => => transferring dockerfile: 2.08kB                                                                                  0.0s
 => [internal] load .dockerignore                                                                                       0.0s
[+] Building 1389.0s (14/16)
 => resolve image config for docker.io/docker/dockerfile:1.2                                                         1.3s.
 => CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3  0.0s.
 => [internal] load metadata for docker.io/nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04                               0.9s.
[+] Building 1401.6s (15/16)
 => [internal] load build definition from Dockerfile                                                                                    0.0s
 => => transferring dockerfile: 2.08kB                                                                                                  0.0s
 => [internal] load .dockerignore                                                                                                       0.0s
 => => transferring context: 94B                                                                                                        0.0s
 => resolve image config for docker.io/docker/dockerfile:1.2                                                                            1.3s
 => CACHED docker-image://docker.io/docker/dockerfile:1.2@sha256:e2a8561e419ab1ba6b2fe6cbdf49fd92b95912df1cf7d313c3e2230a333fdbcc       0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04                                                  0.9s
 => [stage-0  1/10] FROM docker.io/nvidia/cuda:11.6.0-cudnn8-devel-ubuntu20.04@sha256:6a4ef3d0032001ab91e0e6ecc27ebf59dd122a531703de8f  0.0s
 => [internal] load build context                                                                                                       0.0s
 => => transferring context: 40.93kB                                                                                                    0.0s
 => CACHED [stage-0  2/10] RUN rm -f /etc/apt/sources.list.d/cuda.list &&     rm -f /etc/apt/sources.list.d/nvidia-ml.list &&     apt-  0.0s
 => [stage-0  3/10] RUN --mount=type=cache,target=/var/cache/apt set -eux; apt-get update -qq; apt-get install -qqy --no-install-reco  18.4s
 => [stage-0  4/10] RUN --mount=type=cache,target=/var/cache/apt apt-get update -qq && apt-get install -qqy --no-install-recommends    44.8s
 => [stage-0  5/10] RUN curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash &&    606.2s
 => [stage-0  6/10] COPY .cog/tmp/build3144949188/cog-0.0.1.dev-py3-none-any.whl /tmp/cog-0.0.1.dev-py3-none-any.whl                    0.1s
 => [stage-0  7/10] RUN --mount=type=cache,target=/root/.cache/pip pip install /tmp/cog-0.0.1.dev-py3-none-any.whl                    498.0s
 => [stage-0  8/10] COPY .cog/tmp/build3144949188/requirements.txt /tmp/requirements.txt                                                0.1s
 => ERROR [stage-0  9/10] RUN --mount=type=cache,target=/root/.cache/pip pip install -r /tmp/requirements.txt                         231.6s
------
 > [stage-0  9/10] RUN --mount=type=cache,target=/root/.cache/pip pip install -r /tmp/requirements.txt:
#15 0.568 Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu116
#15 2.174 Collecting diffusers==0.11.1
#15 2.648   Downloading diffusers-0.11.1-py3-none-any.whl (524 kB)
#15 16.44      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 524.9/524.9 kB 37.4 kB/s eta 0:00:00
#15 19.68 Collecting torch==1.13.0+cu116
#15 20.56   Downloading https://download.pytorch.org/whl/cu116/torch-1.13.0%2Bcu116-cp310-cp310-linux_x86_64.whl (1983.0 MB)
#15 192.7      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 GB 2.6 MB/s eta 0:00:00
#15 204.1 Collecting ftfy==6.1.1
#15 206.6   Downloading ftfy-6.1.1-py3-none-any.whl (53 kB)
#15 214.5      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.1/53.1 kB 8.5 kB/s eta 0:00:00
#15 231.4 ERROR: Could not find a version that satisfies the requirement scipy==1.9.3 (from versions: none)
#15 231.4 ERROR: No matching distribution found for scipy==1.9.3
#15 231.4
#15 231.4 [notice] A new release of pip available: 22.3.1 -> 23.0.1
#15 231.4 [notice] To update, run: pip install --upgrade pip
------
executor failed running [/bin/sh -c pip install -r /tmp/requirements.txt]: exit code: 1
ⅹ Failed to build Docker image: exit status 1