microsoft/onnxruntime-genai
Generative AI extensions for onnxruntime
About the project
A C++ library for running generative AI models (LLMs) on-device via ONNX Runtime: it implements the generative loop, pre/post-processing, KV cache management, search and sampling, and grammar constraints for tool calling. APIs are available for Python, C#, C/C++, and Java.
Useful for
- Run local LLMs like Phi, Llama, or Qwen on CPU without cloud services
- Build a desktop or mobile app with offline text generation in C#, Python, or Java
- Constrain model output with a grammar to enable tool calling
README summarized by DeepSeek V4.1 Flash. Details may be inaccurate.
Why it’s trending
- 2 stars so far today, about 2 expected by the end of the day.
Stars per day
Bars are daily stars, the line is the usual pace. Red marks spike days.
Numbers
- Total stars
- 1,124
- Stars in a day
- 2
- Forks
- 355
- Issues and pull requests
- 2,463
- Watchers
- 47
- Language
- C++
- License
- MIT
- Latest release
- v0.15.2 · August 7, 2026
- Created
- November 13, 2023
- Last push
- September 18, 2026
Star trust
Growth looks organic: forks and discussion are in line with active projects, and stars arrive unevenly, the way people give them.
These are heuristics, not a verdict: we judge by the repository’s behavior, not by a list of stargazers.
Spotted in
- September 18, 2026GitHub Trending C++ today: #16, +1 star
- September 17, 2026GitHub Trending C++ today: #16, +1 star
Similar projects
-
8.6
TheoLeeCJ/SemIf
An open reproduction of the Jev-style semantic decision interface: reads typed option probabilities directly from a 4B model's logits without generating text. Runs on a single RTX 3090.
-
7.1
vinnylarouge/jevlike
A small trainable model that picks one option from a changing list of text options in a single forward pass, an open alternative to TypeSafe's Jev. Aimed at developers who need fast classification or menu selection…
-
6.9
Continuum-AI-Corp/OrcaBonsai-27B-Uncensored
A tool for runtime refusal ablation in the compressed Ternary Bonsai 2 27B LLM: it projects the residual stream to remove the refusal direction without modifying or re-quantizing weights. Runs on Apple Silicon via MLX.
-
6.4
TianyuCodings/NanoJev
A nano replica of Jev built on Qwen3-0.6B that outputs probability distributions over candidates in a single forward pass with no token decoding, plus a training pipeline and game demos (maze, Snake).
-
6.3
zhengkid/Dream-RSI
Research project on recursive self-improvement: past discovery histories become a replay simulator used to evaluate and refine exploration policies. Code is still being prepared; paper and demo are available.
-
5.0
ekzhang/openjev-sglang
HTTP server implementing the TypeSafe/Jev API for structured text classification on Qwen3.6-35B-A3B via SGLang; returns answer probabilities without generating a chain of thought.