Run Generative AI models with simple C++/Python API and using OpenVINO Runtime
583
stars
3,361
commits
C++
primary language
Sep 11, 2026
updated
OpenVINO™ GenAI is a library of the most popular Generative AI model pipelines, optimized execution methods, and samples that run on top of highly performant OpenVINO Runtime.
This library is friendly to PC and laptop execution, and optimized for resource consumption. It requires no external dependencies to run generative models as it already includes all the core functionality (e.g. tokenization via openvino-tokenizers).

Explore blogs to setup your first hands-on experience with OpenVINO GenAI:
pip install openvino-genai
optimum-cli export openvino --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 --weight-format int4 --trust-remote-code TinyLlama_1_1b_v1_ov
import openvino_genai as ov_genai
pipe = ov_genai.LLMPipeline("TinyLlama_1_1b_v1_ov", "CPU") # Use CPU or GPU as devices without any other code change
print(pipe.generate("What is OpenVINO?", max_new_tokens=100))
OpenVINO™ GenAI library provides very lightweight C++, Python, and Node.js APIs to run the following Generative AI Scenarios:
Library efficiently supports LoRA adapters for Text and Image generation scenarios:
All scenarios are run on top of OpenVINO Runtime that supports inference on CPU, GPU and NPU. See here for platform support matrix.
OpenVINO™ GenAI library provides a transparent way to use state-of-the-art generation optimizations:
Additionally, OpenVINO™ GenAI library implements a continuous batching approach to use OpenVINO within LLM serving. The continuous batching library could be used in LLM serving frameworks and supports the following features:
Continuous batching functionality is used within OpenVINO Model Server (OVMS) to serve LLMs, see here for more details.
The OpenVINO™ GenAI repository is licensed under Apache License Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
(top 30 of 158)
C++
62.3%
Python
30.2%
TypeScript
2.3%
MDX
2.1%
JavaScript
1.4%
Run Generative AI models with simple C++/Python API and using OpenVINO Runtime
583
stars
3,361
commits
C++
primary language
Sep 11, 2026
updated
OpenVINO™ GenAI is a library of the most popular Generative AI model pipelines, optimized execution methods, and samples that run on top of highly performant OpenVINO Runtime.
This library is friendly to PC and laptop execution, and optimized for resource consumption. It requires no external dependencies to run generative models as it already includes all the core functionality (e.g. tokenization via openvino-tokenizers).

Explore blogs to setup your first hands-on experience with OpenVINO GenAI:
pip install openvino-genai
optimum-cli export openvino --model TinyLlama/TinyLlama-1.1B-Chat-v1.0 --weight-format int4 --trust-remote-code TinyLlama_1_1b_v1_ov
import openvino_genai as ov_genai
pipe = ov_genai.LLMPipeline("TinyLlama_1_1b_v1_ov", "CPU") # Use CPU or GPU as devices without any other code change
print(pipe.generate("What is OpenVINO?", max_new_tokens=100))
OpenVINO™ GenAI library provides very lightweight C++, Python, and Node.js APIs to run the following Generative AI Scenarios:
Library efficiently supports LoRA adapters for Text and Image generation scenarios:
All scenarios are run on top of OpenVINO Runtime that supports inference on CPU, GPU and NPU. See here for platform support matrix.
OpenVINO™ GenAI library provides a transparent way to use state-of-the-art generation optimizations:
Additionally, OpenVINO™ GenAI library implements a continuous batching approach to use OpenVINO within LLM serving. The continuous batching library could be used in LLM serving frameworks and supports the following features:
Continuous batching functionality is used within OpenVINO Model Server (OVMS) to serve LLMs, see here for more details.
The OpenVINO™ GenAI repository is licensed under Apache License Version 2.0. By contributing to the project, you agree to the license and copyright terms therein and release your contribution under these terms.
(top 30 of 158)
C++
62.3%
Python
30.2%
TypeScript
2.3%
MDX
2.1%
JavaScript
1.4%