Skip to content

Commit 2375f70

Browse files
authored
[core] minimum torch version is 2.6 (#13725)
minimum torch version is 2.6
1 parent 5fd2727 commit 2375f70

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

docker/diffusers-pytorch-minimum-cuda/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ LABEL repository="diffusers"
44

55
ARG PYTHON_VERSION=3.10
66
ENV DEBIAN_FRONTEND=noninteractive
7-
ENV MINIMUM_SUPPORTED_TORCH_VERSION="2.1.0"
8-
ENV MINIMUM_SUPPORTED_TORCHVISION_VERSION="0.16.0"
9-
ENV MINIMUM_SUPPORTED_TORCHAUDIO_VERSION="2.1.0"
7+
ENV MINIMUM_SUPPORTED_TORCH_VERSION="2.6.0"
8+
ENV MINIMUM_SUPPORTED_TORCHVISION_VERSION="0.21.0"
9+
ENV MINIMUM_SUPPORTED_TORCHAUDIO_VERSION="2.6.0"
1010

1111
RUN apt-get -y update \
1212
&& apt-get install -y software-properties-common \

docs/source/en/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ specific language governing permissions and limitations under the License.
1212

1313
# Installation
1414

15-
Diffusers is tested on Python 3.8+ and PyTorch 1.4+. Install [PyTorch](https://pytorch.org/get-started/locally/) according to your system and setup.
15+
Diffusers is tested on Python 3.8+ and PyTorch 2.6+. Install [PyTorch](https://pytorch.org/get-started/locally/) according to your system and setup.
1616

1717
Create a [virtual environment](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) for easier management of separate projects and to avoid compatibility issues between dependencies. Use [uv](https://docs.astral.sh/uv/), a Rust-based Python package and project manager, to create a virtual environment and install Diffusers.
1818

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"requests",
138138
"tensorboard",
139139
"tiktoken>=0.7.0",
140-
"torch>=1.4",
140+
"torch>=2.6",
141141
"torchvision",
142142
"transformers>=4.41.2",
143143
"urllib3<=2.0.0",

src/diffusers/dependency_versions_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"requests": "requests",
4545
"tensorboard": "tensorboard",
4646
"tiktoken": "tiktoken>=0.7.0",
47-
"torch": "torch>=1.4",
47+
"torch": "torch>=2.6",
4848
"torchvision": "torchvision",
4949
"transformers": "transformers>=4.41.2",
5050
"urllib3": "urllib3<=2.0.0",

0 commit comments

Comments
 (0)