Overview of ONNX Runtime GenAI capabilities
mainONNX Runtime GenAI provides a high-performance API for running Large Language Models (LLMs) on-device. It manages the entire generative AI loop, including:
- Pre and post processing
- Inference via ONNX Runtime
- Logits processing, search, and sampling
- KV cache management
- Grammar specification for tool calling
Supported Architectures
Currently supports: AMD OLMo, ChatGLM, DeepSeek, ERNIE 4.5, Fara, Gemma, gpt-oss, Granite, HunYuan Dense V1, InternLM2, Llama, Mistral, Nemotron, Phi (language + vision), Qwen (language + vision), SmolLM3, and Whisper.
Supported Hardware and OS
- OS: Linux, Windows, Mac, Android
- Architecture: x86, x64, arm64
- Acceleration: CPU, CUDA, DirectML, NvTensorRtRtx (TRT-RTX), OpenVINO, QNN, WebGPU