Optimum Intel 2.0
Optimum Intel 2.0: Intel/OpenVINO inference acceleration for HF models.
Working when we checked on .
What is Optimum Intel 2.0?
Optimum Intel 2.0 provides the interface between Hugging Face Transformers, Diffusers, Sentence Transformers and timm libraries and Intel's OpenVINO toolkit to accelerate end-to-end inference pipelines on Intel architectures. It is aimed at developers who want to optimize, convert, and run Hugging Face models on Intel CPUs, GPUs, and DL accelerators. Users can export models to OpenVINO IR format via the optimum-cli tool, run inference with OVModelForXxx classes such as OVModelForCausalLM, and apply post-training static quantization (e.g., int8) with calibration datasets. It also supports exporting Hub-hosted models through a Hugging Face Space.
Optimum Intel 2.0 pricing
Pricing model: Free
Free and open source
Optimum Intel 2.0 pros
- Accelerates inference on Intel CPUs, GPUs, and DL inference accelerators via OpenVINO
- Supports export of models to OpenVINO IR format using optimum-cli
- Provides post-training static quantization, e.g., int8 Whisper with calibration
- Works with Transformers, Diffusers, Sentence Transformers and timm libraries
- Open-source under Apache-2.0 license
- Includes example notebooks showing model optimization and inference
Optimum Intel 2.0 cons
- Optimized specifically for Intel hardware rather than other platforms
- Model support is fast-moving; some features may require installing from source
- Documentation for some advanced workflows is referenced but not included on the page
Frequently asked questions about Optimum Intel 2.0
What does Optimum Intel do?
It is the interface between Hugging Face libraries (Transformers, Diffusers, Sentence Transformers, timm) and Intel's OpenVINO tools, accelerating end-to-end pipelines on Intel architectures by optimizing models, converting them to OpenVINO IR, and running inference with OpenVINO Runtime.
Who is Optimum Intel for?
It is for developers and researchers who want to optimize Hugging Face models and accelerate inference on Intel CPUs, GPUs, and special DL inference accelerators.
How do I install Optimum Intel?
Install the latest release with pip using 'pip install -U optimum-intel', or install from source with 'pip install optimum-intel@git+https://github.com/huggingface/optimum-intel.git' for the newest model support.
How do I export a model to OpenVINO IR format?
Use the optimum-cli tool, for example: 'optimum-cli export openvino --model TinyLlama/TinyLlama_v1.1 ov_TinyLlama_v1_1'. Hub-hosted models can also be converted through the Hugging Face export Space.
How do I run inference with an exported model?
Load the model using the corresponding OVModelForXxx class (e.g., OVModelForCausalLM) instead of AutoModelForXxx, then use it with a standard Transformers pipeline such as text-generation.
Does Optimum Intel support quantization?
Yes. Post-training static quantization can be applied, for example int8 quantization of a Whisper model using the LibriSpeech dataset for calibration, configured with OVQuantizationConfig.
What hardware does Optimum Intel support?
It targets Intel CPUs, GPUs, and special DL inference accelerators supported by OpenVINO, whose full device list is available in the OpenVINO documentation.
Can exported models be used outside Optimum Intel?
Yes. An exported model can also be inferred using the OpenVINO GenAI framework, which provides optimized execution methods for highly performant Generative AI.
What compression techniques are available through OpenVINO?
OpenVINO ships with tools for compression techniques such as quantization, pruning, and knowledge distillation, accessible through the Optimum Intel interface.
Is Optimum Intel free and open source?
Yes, it is open source under the Apache-2.0 license and installable via pip at no cost.