Skip to content

Commit

Permalink
Protobuf required dependency (#429)
Browse files Browse the repository at this point in the history
* Protobuf required dependency
* fix setuptools issue (that is only triggered with latest peft version but most likely latent)
  • Loading branch information
oOraph authored Jun 24, 2024
1 parent b1e3e45 commit 62a3282
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 5 additions & 1 deletion docker_images/diffusers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ RUN pyenv install $PYTHON_VERSION && \

# Upgrade pip and install your desired packages
ARG PIP_VERSION=22.3.1
RUN pip install --no-cache-dir --upgrade pip==${PIP_VERSION} setuptools wheel && \

# FIXME: We temporarily need to specify the setuptools version <70 due to the following issue
# https://stackoverflow.com/questions/78604018/importerror-cannot-import-name-packaging-from-pkg-resources-when-trying-to
# https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/15863#issuecomment-2125026282
RUN pip install --no-cache-dir --upgrade pip==${PIP_VERSION} setuptools'<70' wheel && \
pip install --no-cache-dir torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2

WORKDIR /app
Expand Down
7 changes: 2 additions & 5 deletions docker_images/diffusers/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ uvicorn>=0.23.2
gunicorn>=21.2.0
psutil>=5.9.5
aiohttp>=3.8.5
# Tmp: replace with version once there is a tag above 0.8.1
# This commit includes a fix that concerns
# https://github.com/huggingface/diffusers/issues/6809
# peft==0.7.1
git+https://github.com/huggingface/peft.git@a30e006bb2f82824ab24435b9f07932738b44966
peft==0.11.1
protobuf==5.27.1

0 comments on commit 62a3282

Please sign in to comment.