File tree Expand file tree Collapse file tree
diffusers-onnxruntime-cpu
diffusers-pytorch-xformers-cuda Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ ENV UV_PYTHON=/usr/local/bin/python
2222# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2323RUN pip install uv
2424RUN uv pip install --no-cache-dir \
25- torch \
26- torchvision \
27- torchaudio \
25+ torch==2.10.0 \
26+ torchvision==0.25.0 \
27+ torchaudio==2.10.0 \
2828 --extra-index-url https://download.pytorch.org/whl/cpu
2929
3030RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ ENV PATH="/opt/venv/bin:$PATH"
2828# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2929RUN python3 -m pip install --no-cache-dir --upgrade pip uv==0.1.11 && \
3030 python3 -m uv pip install --no-cache-dir \
31- torch \
32- torchvision \
33- torchaudio\
31+ torch==2.10.0 \
32+ torchvision==0.25.0 \
33+ torchaudio==2.10.0 \
3434 onnxruntime \
3535 --extra-index-url https://download.pytorch.org/whl/cpu && \
3636 python3 -m uv pip install --no-cache-dir \
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ ENV UV_PYTHON=/usr/local/bin/python
2020# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
2121RUN pip install uv
2222RUN uv pip install --no-cache-dir \
23- torch \
24- torchvision \
25- torchaudio \
23+ torch==2.10.0 \
24+ torchvision==0.25.0 \
25+ torchaudio==2.10.0 \
2626 --extra-index-url https://download.pytorch.org/whl/cpu
2727
2828RUN uv pip install --no-cache-dir "git+https://github.com/huggingface/diffusers.git@main#egg=diffusers[test]"
Original file line number Diff line number Diff line change @@ -32,11 +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
35+ # Pin torch, torchvision, and torchaudio to a matching set so the torchvision C++
36+ # extension's ABI lines up with torch (otherwise torchvision::nms fails to register).
3637RUN uv pip install --no-cache-dir \
37- torch \
38- torchvision \
39- torchaudio \
38+ torch==2.10.0 \
39+ torchvision==0.25.0 \
40+ torchaudio==2.10.0 \
4041 --index-url https://download.pytorch.org/whl/cu129
4142
4243# Install compatible versions of numba/llvmlite for Python 3.10+
Original file line number Diff line number Diff line change @@ -32,11 +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
35+ # Pin torch, torchvision, and torchaudio to a matching set so the torchvision C++
36+ # extension's ABI lines up with torch (otherwise torchvision::nms fails to register).
3637RUN uv pip install --no-cache-dir \
37- torch \
38- torchvision \
39- torchaudio \
38+ torch==2.10.0 \
39+ torchvision==0.25.0 \
40+ torchaudio==2.10.0 \
4041 --index-url https://download.pytorch.org/whl/cu129
4142
4243# Install compatible versions of numba/llvmlite for Python 3.10+
You can’t perform that action at this time.
0 commit comments