Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[PT FE] Support torch 2.5.1 (#27334)

Maxim Vafin1ec99ee520cd
diff --git a/tests/constraints.txt b/tests/constraints.txt
index c6e2e5e65f9..2272151565c 100644
--- a/tests/constraints.txt
+++ b/tests/constraints.txt
@@ -28,5 +28,5 @@ networkx<=3.3
flax<=0.10.0
--extra-index-url https://download.pytorch.org/whl/cpu
-torch~=2.5.0; platform_system != "Darwin" or platform_machine != "x86_64"
+torch~=2.5.1; platform_system != "Darwin" or platform_machine != "x86_64"
torch~=2.2.0; platform_system == "Darwin" and platform_machine == "x86_64"
diff --git a/tests/requirements_pytorch b/tests/requirements_pytorch
index c2873210003..56446beba12 100644
--- a/tests/requirements_pytorch
+++ b/tests/requirements_pytorch
@@ -3,13 +3,13 @@
# optimum still requires numpy<2.0.0
numpy==1.26.4; python_version < "3.12"
numpy==2.1.1; python_version >= "3.12"
-torch==2.5.0; platform_system != "Darwin" or platform_machine != "x86_64"
+torch==2.5.1; platform_system != "Darwin" or platform_machine != "x86_64"
torch==2.2.2; platform_system == "Darwin" and platform_machine == "x86_64"
--extra-index-url https://download.pytorch.org/whl/cpu
-torchvision==0.20.0; platform_system != "Darwin" or platform_machine != "x86_64"
+torchvision==0.20.1; platform_system != "Darwin" or platform_machine != "x86_64"
torchvision==0.17.2; platform_system == "Darwin" and platform_machine == "x86_64"
-torchaudio==2.5.0; platform_system != "Darwin" or platform_machine != "x86_64"
+torchaudio==2.5.1; platform_system != "Darwin" or platform_machine != "x86_64"
torchaudio==2.2.2; platform_system == "Darwin" and platform_machine == "x86_64"
# transformers 4.45.1 is available
# but optimum still requires <4.45.0