Skip to main content
The OpenVINO execution provider optimizes inference on Intel hardware including CPUs, integrated GPUs (iGPUs), and Neural Processing Units (NPUs).

Requirements

Hardware

  • CPU: Intel Core, Xeon, or Atom processors
  • GPU: Intel Iris Xe, Arc, or Data Center GPU Flex/Max
  • NPU: Intel Core Ultra processors (Meteor Lake and newer)

Software

  • OpenVINO Runtime 2024.0 or later
  • Intel Graphics Driver (for GPU acceleration)
  • Operating Systems:
    • Windows 10/11
    • Linux (Ubuntu 20.04+, RHEL 8+)
    • macOS 10.15+
OpenVINO provides excellent CPU performance and is the recommended provider for Intel hardware.

Installation

Basic Configuration

Python API

genai_config.json

Device Selection

CPU Acceleration

GPU Acceleration

NPU Acceleration

Best for:
  • General-purpose inference
  • Development and testing
  • Systems without dedicated GPU/NPU
Performance:
  • Excellent on Intel CPUs
  • Multi-threading support
  • INT8 quantization available

CPU Optimization

Thread Configuration

Performance Hints

Performance Hints:
  • LATENCY: Optimize for single-request latency
  • THROUGHPUT: Optimize for maximum throughput
  • CUMULATIVE_THROUGHPUT: Balance latency and throughput

Advanced Configuration

Model Caching

Enable model caching to speed up subsequent loads:

Load Config

Provide advanced OpenVINO configuration:

Device Filtering

Select specific devices in multi-device systems:

Stateful Models

OpenVINO supports stateful models with internal KV cache management:
When enable_causallm is set to “True”, OpenVINO manages the KV cache internally, reducing memory overhead.

Quantization Support

INT8 Quantization

OpenVINO provides excellent INT8 performance:

Precision Hints

  • Full precision
  • Highest accuracy
  • Baseline performance

Multi-Device Execution

OpenVINO can distribute inference across multiple devices:

Troubleshooting

OpenVINO Not Found

Device Not Available

Performance Issues

First load will be slower, but subsequent loads will be much faster.
INT8 quantized models provide 2-4x speedup on Intel CPUs.

Benchmarking

Best Practices

Use Model Caching

Enable cache_dir to reduce model loading time on subsequent runs.

Choose Right Device

Use CPU for latency, GPU for throughput, NPU for power efficiency.

Optimize Precision

Use INT8 models for best CPU performance on Intel hardware.

Performance Hints

Set appropriate performance hints based on your use case.

Next Steps

Model Optimization

Optimize models for OpenVINO

Quantization Guide

Learn about INT8 quantization