Skip to content

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

Fix pyarrow version in PyTorch Model Tests (#38712)

Alina Kladieva1528708e45e9
diff --git a/tests/model_hub_tests/pytorch/envs/hf_transformers.txt b/tests/model_hub_tests/pytorch/envs/hf_transformers.txt
index cad7ef99785..8de3e9e9f43 100644
--- a/tests/model_hub_tests/pytorch/envs/hf_transformers.txt
+++ b/tests/model_hub_tests/pytorch/envs/hf_transformers.txt
@@ -22,3 +22,7 @@ einops==0.8.0
# librosa/pyctcdecode needed internally by some HF audio models
librosa==0.10.2; python_version < "3.12"
pyctcdecode==0.5.0; python_version < "3.12"
+
+# pyarrow 26.0.0 release breaks PyTorch Models Tests due to NumPy incompatibility
+pyarrow==20.0.0; python_version < "3.12"
+pyarrow==25.0.1; python_version >= "3.12"
diff --git a/tests/model_hub_tests/pytorch/envs/llm.txt b/tests/model_hub_tests/pytorch/envs/llm.txt
index 73f512376e8..cf2672cfa49 100644
--- a/tests/model_hub_tests/pytorch/envs/llm.txt
+++ b/tests/model_hub_tests/pytorch/envs/llm.txt
@@ -40,3 +40,7 @@ optimum==2.1.0; python_version < "3.12"
# compressed-tensors (required for compressed-tensors quantized models, e.g. cyankiwi/Qwen3.5-4B-AWQ-4bit)
compressed-tensors==0.17.1
+
+# pyarrow 26.0.0 release breaks PyTorch Models Tests due to NumPy incompatibility
+pyarrow==21.0.0; python_version < "3.12"
+pyarrow==25.0.1; python_version >= "3.12"