Skip to content

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

Pin `kernels` Python module version to fix PyTorch Models Tests (#36136)

Andrey Babushkind79023838aec
diff --git a/tests/model_hub_tests/pytorch/envs/llm.txt b/tests/model_hub_tests/pytorch/envs/llm.txt
index 31fddc1dbf0..d83136f8536 100644
--- a/tests/model_hub_tests/pytorch/envs/llm.txt
+++ b/tests/model_hub_tests/pytorch/envs/llm.txt
@@ -8,6 +8,10 @@ huggingface-hub==1.10.1
autoawq==0.2.9; platform_system == "Linux" and platform_machine == "x86_64"
triton==3.6.0; platform_system == "Linux" and platform_machine == "x86_64"
gptqmodel==6.0.3; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.12"
+# `gptqmodel` depends on `kernels`, but doesn't have upper boundary for version, which caused test failures after
+# `kernels` was updated to 0.15.1
+kernels==0.14.1; platform_machine == "x86_64" and python_version < "3.12"
+
peft==0.18.1; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.12"
# optimum (required by transformers' GptqHfQuantizer for GPTQ model loading)