Skip to content

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

Remove MacOS requirements (#30617)

Maxim Vafine15577a9f108
diff --git a/tests/constraints.txt b/tests/constraints.txt
index c5c692c7a66..7e01f0e0dbf 100644
--- a/tests/constraints.txt
+++ b/tests/constraints.txt
@@ -23,5 +23,4 @@ pytest-timeout==2.4.0
kornia==0.8.1
--extra-index-url https://download.pytorch.org/whl/cpu
-torch~=2.5.1; platform_system != "Darwin" or platform_machine != "x86_64"
-torch~=2.7.0; platform_system == "Darwin" and platform_machine == "x86_64"
+torch~=2.7.0
diff --git a/tests/requirements_pytorch b/tests/requirements_pytorch
index 2b2b8b6a725..74dc6fba8e7 100644
--- a/tests/requirements_pytorch
+++ b/tests/requirements_pytorch
@@ -3,14 +3,11 @@
# 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.6.0; platform_system != "Darwin" or platform_machine != "x86_64"
-torch==2.2.2; platform_system == "Darwin" and platform_machine == "x86_64"
+torch==2.6.0
--extra-index-url https://download.pytorch.org/whl/cpu
-torchvision==0.21.0; platform_system != "Darwin" or platform_machine != "x86_64"
-torchvision==0.17.2; platform_system == "Darwin" and platform_machine == "x86_64"
-torchaudio==2.6.0; platform_system != "Darwin" or platform_machine != "x86_64"
-torchaudio==2.2.2; platform_system == "Darwin" and platform_machine == "x86_64"
+torchvision==0.21.0
+torchaudio==2.6.0
# before updating transformers version, make sure no tests (esp. sdpa2pa) are failing
transformers==4.47.1
pytest==7.0.1; python_version < '3.10'