File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
diffusers-pytorch-xformers-cuda Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
22LABEL maintainer="Hugging Face"
33LABEL repository="diffusers"
44
5- ARG PYTHON_VERSION=3.12
5+ ARG PYTHON_VERSION=3.11
66ENV DEBIAN_FRONTEND=noninteractive
77
88RUN apt-get -y update \
@@ -32,10 +32,12 @@ RUN uv venv --python ${PYTHON_VERSION} --seed ${VIRTUAL_ENV}
3232ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3333
3434# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
35+ # Install torch, torchvision, and torchaudio together to ensure compatibility
3536RUN uv pip install --no-cache-dir \
3637 torch \
3738 torchvision \
38- torchaudio
39+ torchaudio \
40+ --index-url https://download.pytorch.org/whl/cu121
3941
4042RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
4143
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
22LABEL maintainer="Hugging Face"
33LABEL repository="diffusers"
44
5- ARG PYTHON_VERSION=3.12
5+ ARG PYTHON_VERSION=3.11
66ENV DEBIAN_FRONTEND=noninteractive
77
88RUN apt-get -y update \
@@ -32,10 +32,12 @@ RUN uv venv --python ${PYTHON_VERSION} --seed ${VIRTUAL_ENV}
3232ENV PATH="$VIRTUAL_ENV/bin:$PATH"
3333
3434# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
35+ # Install torch, torchvision, and torchaudio together to ensure compatibility
3536RUN uv pip install --no-cache-dir \
3637 torch \
3738 torchvision \
38- torchaudio
39+ torchaudio \
40+ --index-url https://download.pytorch.org/whl/cu121
3941
4042RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
4143
You can’t perform that action at this time.
0 commit comments