openvino-genai
Library of the most popular Generative AI model pipelines, optimized execution methods, and samples
What it is and what it does
openvino-genai is a Python library that wraps OpenVINO's inference runtime to simplify running generative AI models locally. It provides a high-level LLMPipeline class that automatically loads tokenizers, detokenizers, and generation configs from a model directory, reducing boilerplate code to a few lines. The library handles the complexity of the generation process—including beam search, streaming output, and custom generation parameters—while targeting CPU and hardware accelerators through OpenVINO's backend.
The package is designed for developers who want to run language models without managing low-level inference details. It depends on openvino_tokenizers for tokenization and requires models to be pre-converted to OpenVINO IR format. Version alignment between openvino-genai and its dependencies is critical; mismatched versions can cause ABI incompatibility errors. The library supports both Python and C++ interfaces, though the Python API is the primary entry point for most users.
Use it for:
- Run a local chat interface or Q&A system using a converted LLM without cloud dependencies.
- Integrate text generation into a Python application with minimal setup overhead.
- Experiment with different beam search and generation parameters on a single machine.
- Deploy generative AI inference on edge devices or servers with Intel hardware acceleration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
openvino-genai simplifies running inference on generative AI models by wrapping OpenVINO's inference engine with a high-level pipeline API that handles tokenization, model loading, and text generation.
Yes, if you need to run generative AI models locally and are willing to pre-convert models to OpenVINO IR format. The library significantly reduces boilerplate compared to raw OpenVINO, and active maintenance plus Apache 2.0 licensing make it low-risk. The main gotcha is strict version pinning of openvino_tokenizers; verify compatibility before updating dependencies. Not recommended if you need out-of-the-box support for Hugging Face model formats or if you prefer cloud-based inference.
Install
openvino-genai on PyPI
pip
pip install openvino-genaiuv
uv add openvino-genaipoetry
poetry add openvino-genaiInstalling openvino-genai
Before you install
Medium install friction: prebuilt wheels available for Python 3.10–3.14 across macOS (ARM64), Linux (x86_64 and aarch64), and Windows, but requires version-matched openvino_tokenizers dependency to avoid ABI incompatibility errors. Active maintenance with a release 10 days old.
License in practice
Apache License 2.0 permits commercial and private use with minimal restrictions; you must include a copy of the license and note any modifications, but no patent indemnification or trademark restrictions apply to typical use.
Quickstart
pip install openvino-genai
import openvino_genai as ov_genai
pipe = ov_genai.LLMPipeline(models_path, "CPU")
print(pipe.generate("The Sun is yellow because", max_new_tokens=100))
Requires a model in OpenVINO IR format; version of openvino_tokenizers must match openvino-genai version to avoid ABI incompatibility.
Verify before relying
- Whether GPU acceleration (e.g., Intel Arc, discrete GPU) is supported beyond CPU inference.
- Performance characteristics and memory footprint compared to other local inference frameworks.
- Supported model architectures and whether custom models can be converted from Hugging Face format.
Package facts
| License | Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 1 — openvino_tokenizers |
| Maintenance | actively maintained — 10 days since the last release |
| First released | |
| Downloads | 115,968/month — #12,226 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openvino_genai-2026.3.0.0-2495-cp310-cp310-macosx_11_0_arm64.whl; openvino_genai-2026.3.0.0-2495-cp310-cp310-manylinux_2_28_x86_64.whl; openvino_genai-2026.3.0.0-2495-cp310-cp310-manylinux_2_31_aarch64.whl; openvino_genai-2026.3.0.0-2495-cp310-cp310-win_amd64.whl; openvino_genai-2026.3.0.0-2495-cp311-cp311-macosx_11_0_arm64.whl; openvino_genai-2026.3.0.0-2495-cp311-cp311-manylinux_2_28_x86_64.whl; openvino_genai-2026.3.0.0-2495-cp311-cp311-manylinux_2_31_aarch64.whl; openvino_genai-2026.3.0.0-2495-cp311-cp311-win_amd64.whl; openvino_genai-2026.3.0.0-2495-cp312-cp312-macosx_11_0_arm64.whl; openvino_genai-2026.3.0.0-2495-cp312-cp312-manylinux_2_28_x86_64.whl; openvino_genai-2026.3.0.0-2495-cp312-cp312-manylinux_2_31_aarch64.whl; openvino_genai-2026.3.0.0-2495-cp312-cp312-win_amd64.whl; openvino_genai-2026.3.0.0-2495-cp313-cp313-macosx_11_0_arm64.whl; openvino_genai-2026.3.0.0-2495-cp313-cp313-manylinux_2_28_x86_64.whl; openvino_genai-2026.3.0.0-2495-cp313-cp313-manylinux_2_31_aarch64.whl; openvino_genai-2026.3.0.0-2495-cp313-cp313-win_amd64.whl; openvino_genai-2026.3.0.0-2495-cp314-cp314-macosx_11_0_arm64.whl; openvino_genai-2026.3.0.0-2495-cp314-cp314-manylinux_2_28_x86_64.whl; openvino_genai-2026.3.0.0-2495-cp314-cp314-manylinux_2_31_aarch64.whl; openvino_genai-2026.3.0.0-2495-cp314-cp314t-macosx_11_0_arm64.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
openvinoOpenVINO converts and optimizes deep learning…
permissive · top 5,000 on PyPI
openvino-tokenizersConverts HuggingFace tokenizers into OpenVINO…
permissive · top 15,000 on PyPI
optimum-intelOptimum Intel bridges Hugging Face Transformers…
permissive · top 15,000 on PyPI
openvino-devProvides command-line tools and Python APIs to…
permissive · top 15,000 on PyPI
onnxruntime-openvinoEnables ONNX Runtime to accelerate machine…
permissive · top 15,000 on PyPI
gllm-inference-binaryProvides inference components and utilities for…
unclear · top 15,000 on PyPI
onnxruntime-genaiRuns small and large language models and…
permissive · top 15,000 on PyPI
optimumOptimum provides optimization tools to export…
permissive · top 5,000 on PyPI
vllmvLLM is a high-throughput inference and serving…
permissive · top 5,000 on PyPI
nncfNNCF provides post-training and training-time…
permissive · top 5,000 on PyPI