huggingface / optimum-intel

🤗 Optimum Intel: Accelerate inference with Intel optimization tools
https://huggingface.co/docs/optimum/main/en/intel/index
Apache License 2.0
409 stars 112 forks source link

Relax OpenVINO dependency version #1005

Open helena-intel opened 3 days ago

helena-intel commented 3 days ago

This PR enables installing optimum[openvino] in an environment where you already have a nightly version of OpenVINO installed. Currently running pip install optimum[openvino] in such an environment uninstalls the existing OpenVINO and that is usually not expected/desired. Since nightly versions have to be explicitly installed by providing the index url, there's no chance someone will accidentally end up with a nightly version. Once a new OpenVINO version has been released it will have been validated.

I also wanted to relax the lower version but would also like to add a test that the lower bound version does still work. I can do that in a future PR. That's more important for the upcoming LTS release.