From 827a1b77a17e2efdc3f7f224d82906a0a1db16b4 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 7 Jan 2025 11:25:12 +0400 Subject: [PATCH] Pinned optimum to keep compatibility with 2024.6.0 (#1490) - Whisper is changed in transformers 4.47, see failures https://github.com/openvinotoolkit/openvino.genai/actions/runs/12639280880/job/35218207069?pr=1488 - Image generation models have been changed to accept different data types --- README.md | 2 +- samples/export-requirements.txt | 2 ++ tests/python_tests/requirements.txt | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1217a0215..a92e7b18e4 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Continuous batching functionality is used within OpenVINO Model Server (OVMS) to # Install optimum-intel to be able to download, convert and optimize LLMs from Hugging Face # Optimum is not required to run models, only to convert and compress - pip install optimum-intel@git+https://github.com/huggingface/optimum-intel.git + pip install optimum-intel@git+https://github.com/huggingface/optimum-intel.git@420fa87d039425a906b7f755e4562b65947f016a # (Optional) Install (TBD) to be able to download models from Model Scope ``` diff --git a/samples/export-requirements.txt b/samples/export-requirements.txt index 8e896cd348..939ad19a57 100644 --- a/samples/export-requirements.txt +++ b/samples/export-requirements.txt @@ -2,6 +2,8 @@ --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/pre-release --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly openvino-tokenizers~=2024.6.0.0.dev +# since https://github.com/huggingface/optimum-intel/pull/1085, Image generation models have changed their interface +# so, we have to pin to latest compatible commit optimum-intel @ git+https://github.com/huggingface/optimum-intel.git@420fa87d039425a906b7f755e4562b65947f016a numpy<2.0.0; sys_platform == 'darwin' einops==0.8.0 # For Qwen diff --git a/tests/python_tests/requirements.txt b/tests/python_tests/requirements.txt index bf13b0de7f..a0e786a8c6 100644 --- a/tests/python_tests/requirements.txt +++ b/tests/python_tests/requirements.txt @@ -1,5 +1,6 @@ --extra-index-url https://download.pytorch.org/whl/cpu -optimum-intel @ git+https://github.com/huggingface/optimum-intel.git +# optimum is pinned because of Whisper is changed since transformers 4.47 (https://github.com/huggingface/optimum-intel/pull/1088) +optimum-intel @ git+https://github.com/huggingface/optimum-intel.git@753f84db6e0966580eb9eaa74a808213be730631 numpy<2.0.0; sys_platform == 'darwin' onnx==1.16.1 pytest