Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docker/diffusers-doc-builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ ENV UV_PYTHON=/usr/local/bin/python
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN pip install uv
RUN uv pip install --no-cache-dir \
torch \
torchvision \
torchaudio \
torch==2.10.0 \
torchvision==0.25.0 \
torchaudio==2.10.0 \
--extra-index-url https://download.pytorch.org/whl/cpu

RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
Expand Down
6 changes: 3 additions & 3 deletions docker/diffusers-onnxruntime-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ ENV PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN python3 -m pip install --no-cache-dir --upgrade pip uv==0.1.11 && \
python3 -m uv pip install --no-cache-dir \
torch \
torchvision \
torchaudio\
torch==2.10.0 \
torchvision==0.25.0 \
torchaudio==2.10.0 \
onnxruntime \
--extra-index-url https://download.pytorch.org/whl/cpu && \
python3 -m uv pip install --no-cache-dir \
Expand Down
6 changes: 3 additions & 3 deletions docker/diffusers-pytorch-cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ ENV UV_PYTHON=/usr/local/bin/python
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN pip install uv
RUN uv pip install --no-cache-dir \
torch \
torchvision \
torchaudio \
torch==2.10.0 \
torchvision==0.25.0 \
torchaudio==2.10.0 \
--extra-index-url https://download.pytorch.org/whl/cpu

RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
Expand Down
9 changes: 5 additions & 4 deletions docker/diffusers-pytorch-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ RUN uv venv --python ${PYTHON_VERSION} --seed ${VIRTUAL_ENV}
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# Install torch, torchvision, and torchaudio together to ensure compatibility
# Pin torch, torchvision, and torchaudio to a matching set so the torchvision C++
# extension's ABI lines up with torch (otherwise torchvision::nms fails to register).
RUN uv pip install --no-cache-dir \
torch \
torchvision \
torchaudio \
torch==2.10.0 \
torchvision==0.25.0 \
torchaudio==2.10.0 \
--index-url https://download.pytorch.org/whl/cu129

# Install compatible versions of numba/llvmlite for Python 3.10+
Expand Down
9 changes: 5 additions & 4 deletions docker/diffusers-pytorch-xformers-cuda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ RUN uv venv --python ${PYTHON_VERSION} --seed ${VIRTUAL_ENV}
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
# Install torch, torchvision, and torchaudio together to ensure compatibility
# Pin torch, torchvision, and torchaudio to a matching set so the torchvision C++
# extension's ABI lines up with torch (otherwise torchvision::nms fails to register).
RUN uv pip install --no-cache-dir \
torch \
torchvision \
torchaudio \
torch==2.10.0 \
torchvision==0.25.0 \
torchaudio==2.10.0 \
--index-url https://download.pytorch.org/whl/cu129

# Install compatible versions of numba/llvmlite for Python 3.10+
Expand Down
Loading