OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
OpenVINO GGUF Frontend
The GGUF frontend converts models into ov::Model from two input paths that share operation
translators:
- Native GGUF: parses a
.gguffile's metadata and weights and builds the graph through the architecture registry. llama.cpp is not needed. - Supplied decoder: consumes a
GgufDecoder, such as the graph decoder of the llama.cpp OpenVINO backend.
Architecture coverage is validated separately for each path; see supported models and, for multimodal projector files, supported projectors.
Loading a model
The frontend is hidden from automatic discovery, so ov.Core.read_model() does not select it for
.gguf files. Select it by name:
from openvino.frontend import FrontEndManager
frontend = FrontEndManager().load_by_framework("gguf")
model = frontend.convert(frontend.load("model.gguf"))
For split GGUF models, pass any standard shard filename to discover the remaining files in the same directory, or supply a complete list of paths. No merged GGUF copy is created. See split-file loading for Python and C++ usage and validation.
The result is a stateless graph with llama.cpp-style inputs and explicit cache inputs/outputs.
In C++, pass the converted model to adapt_to_genai() to obtain
stateful models with the OpenVINO GenAI interface; this function is not available from Python. Tokenizer metadata is attached
to the converted model's rt_info. See running converted models for both contracts.
Projector files convert to encoder models; see multimodal conversion.
Source layout
| Location | Purpose |
|---|---|
| include | Frontend, decoder, tokenizer metadata and conversion-pass interfaces |
| dev_api | Builder, architecture and projector extension APIs; no cross-release compatibility |
| src/builder | Registries, native model builders and graph construction |
| src/quant | GGUF parsing, weight loading and quantization |
| src/op and op_table.cpp | Operation translators and their registration |
| src/pass | Stateful conversion, GenAI adaptation and graph cleanup |
| tests | Unit, accuracy and extension tests, fixtures, generators and llama.cpp oracles |
| examples | Architecture and projector extension examples |
Guides
- Load split files and run converted models: state, GenAI, tokenizer, internal operations
- Supported models and multimodal projectors
- Add or port an architecture
- Register extensions and build plugins, with runnable examples
- Add an operation translator
- Weight formats, unpacking, memory costs and precision
- Debug accuracy differences
- Build, test and regenerate references
The frontend is enabled by default. C++ tests need ENABLE_TESTS=ON and a shared-library build;
architecture fingerprint tests skip unless their generated headers are present.