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
- Python
- Build from Source
Basic Configuration
Python API
genai_config.json
Device Selection
CPU Acceleration
GPU Acceleration
NPU Acceleration
- CPU
- GPU
- NPU
Best for:
- General-purpose inference
- Development and testing
- Systems without dedicated GPU/NPU
- Excellent on Intel CPUs
- Multi-threading support
- INT8 quantization available
CPU Optimization
Thread Configuration
Performance Hints
Performance Hints:
LATENCY: Optimize for single-request latencyTHROUGHPUT: Optimize for maximum throughputCUMULATIVE_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
- FP32
- FP16
- INT8
- 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
Enable Model Caching
Enable Model Caching
Optimize Thread Count
Optimize Thread Count
Use Quantized Models
Use Quantized Models
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