microsoft/onnxruntime-genai
Generative AI with ONNX Runtime observed · 2026-10-22
Health v2 · maintenance only
94/100
- Activity 100
- Release rhythm 97
- Longevity 76
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-22. Adoption (stars, forks) is never an input.
- gap_med: 19.5
- age_days: 1073
- days_rel: 23
- days_push: 0
- n_releases_24m: 31
Adoption not part of the score
1142 stars · 371 forks observed · 2026-10-22
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ONNX Runtime GenAI is a C++ library with Python, C#, C/C++, and Java APIs for running generative AI models (LLMs, Whisper, vision-language models) on device using ONNX Runtime. It implements the full generative loop including tokenization, logits processing, sampling, KV cache management, and constrained decoding for tool calling.
Use cases
- run llms locally on windows cpu or gpu
- on-device inference of phi-3 or llama models
- run whisper speech recognition with onnx runtime
- integrate local llm inference into a c# or c++ application
- run generative ai models on android devices
- quantized llm inference with cuda or directml acceleration
When to choose
- you need to run LLMs on-device with ONNX Runtime across Windows, Linux, Mac, or Android
- you want hardware acceleration via CPU, CUDA, DirectML, QNN, or OpenVINO without changing code
- you need multi-language APIs (Python, C#, C/C++, Java) for local generative AI inference
When to avoid
- you want server-side or cloud LLM inference with vLLM-style batching
- your model architecture is not in the supported matrix and you cannot export it to ONNX
- you need full multi-modal or speculative decoding support that is still on the roadmap
Facets
library · maturity active
llm-inference machine-learning sdk nlp large-language-models machine-learning artificial-intelligence developer-tools windows python cpp cross-platform onnx on-device-ai kv-cache tokenization sampling csharp java windows-ml foundry-local linux macos android gpu
1 source
- readme: https://github.com/microsoft/onnxruntime-genai · fetched 2026-10-22 · 703b8c4f0f09
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/onnxruntime-genai | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="microsoft/onnxruntime-genai")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem