skillfed

openvino-genai

Library of the most popular Generative AI model pipelines, optimized execution methods, and samples

openvino-genai v2026.3.0.0 116.0K downloads/30d#12,226 on PyPI
Permissive 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) Active released

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-genai

uv

uv add openvino-genai

poetry

poetry add openvino-genai

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: CProgramming Language :: C++Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Software Development :: Libraries :: Python Modules

Tags

generative AI inference pipelineLLM text generationOpenVINO model servinglocal language model inferenceoptimized neural network generation
llm-inferenceedge-deploymentmodel-optimization

More Python Modules packages