Skip to content

Commit

Permalink
Pin HF Hub and cuDNN versions (#1152)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced Docker image with additional package installations for
improved functionality, including support for CUDA and Hugging Face hub.
  
- **Bug Fixes**
- Updated package installation commands to ensure compatibility and
specified version ranges for critical dependencies.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
jackalcooper authored Dec 2, 2024
1 parent 325128f commit 024f007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM ${BASE_IMAGE}

ARG ONEFLOW_PIP_INDEX
ARG ONEFLOW_PACKAGE_NAME=oneflow
RUN pip install -f ${ONEFLOW_PIP_INDEX} ${ONEFLOW_PACKAGE_NAME}
RUN python3 -m pip install "torch" "transformers==4.27.1" "diffusers[torch]==0.19.3"
RUN pip install -f ${ONEFLOW_PIP_INDEX} ${ONEFLOW_PACKAGE_NAME} "nvidia-cudnn-cu11>=8.9,<9.0"
RUN python3 -m pip install "torch" "transformers==4.27.1" "diffusers[torch]==0.19.3" "huggingface-hub==0.23.2"
ADD . /src/onediff
RUN python3 -m pip install -e /src/onediff
RUN python3 -m pip install -e /src/onediff/onediff_diffusers_extensions

0 comments on commit 024f007

Please sign in to comment.