OnnxStream
Lightweight inference library for ONNX files, written in C++. It can run Stable Diffusion XL 1.0 on a RPI Zero 2 (or in 298MB of RAM) but also Mistral 7B on desktops and servers. ARM, x86, WASM, RISC-V supported. Accelerated by XNNPACK. Python, C# and JS(WASM) bindings available.
By vitoplantamura. Free and open source for Windows. Latest version v0.2, released 2024-01-14.
Is OnnxStream safe?
Trust score 42/100: Use caution. Some warning signs. Read the notes, check the reviews, and verify the file before you run it.
- Established community: 2,092 GitHub stars
- Downloads come straight from the project's own GitHub releases
- Around since 2023
Things to watch:
- The latest release is more than 18 months old
- No OpenSSF Scorecard report yet, so security practices are unverified
- No checksums or signatures published: you can't verify the download
- Custom or unusual license: read it before relying on the app
2,092 GitHub stars · 2.9k downloads · 4 contributors.
Download OnnxStream
- llm.exe (Windows, 2.3 MB)
Downloads come straight from github.com/vitoplantamura/OnnxStream.
About OnnxStream
• September 28, 2025: Added Python and C# bindings for the library! • April 15, 2025: Added WebAssembly demo of OpenAI's Whisper here (running in the browser). • September 19, 2024: Added WebAssembly support for the library! Demo of the YOLOv8 object detection model here (running in the browser). • January 14, 2024: Added LLM chat application (TinyLlama 1.1B and Mistral 7B) with initial GPU support! More info here. • December 14, 2023: Added support for Stable Diffusion XL Turbo 1.0! (thanks to @AeroX2) • October 3, 2023: Added support for Stable Diffusion XL 1.0 Base!
• Features of OnnxStream • Performance • Attention Slicing and Quantization • How OnnxStream Works
The challenge is to run Stable Diffusion 1.5, which includes a large transformer model with almost 1 billion parameters, on a Raspberry Pi Zero 2, which is a microcomputer with 512MB of RAM, without adding more swap space and without offloading intermediate results on disk. The recommended minimum RAM/VRAM for Stable Diffusion 1.5 is typically 8GB.
Generally major machine learning frameworks and libraries are focused on minimizing inference latency and/or maximizing throughput, all of which at the cost of RAM usage. So I decided to write a super small and hackable inference library specifically focused on minimizing memory consumption: OnnxStream.
Similar apps
- MixTeX-Latex-OCR: MixTeX multimodal LaTeX, ZhEn, and, Table OCR. It performs efficient CPU-based inference in a local offline on Windows. (Low trust, 40/100)
- LlamaChat: Chat with your favourite LLaMA models in a native macOS app (Use caution, 49/100)
- Ollama: Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models. (High trust, 84/100)
- Unsloth Desktop: Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more. (High trust, 75/100)
- Tesseract OCR: Tesseract Open Source OCR Engine (main repository) (Good, 73/100)
- Netron: Visualizer for neural network, deep learning and machine learning models (Good, 73/100)
Questions
Is OnnxStream safe to download?
OnnxStream has an OpenShelf trust score of 42/100 (Use caution). Some warning signs. Read the notes, check the reviews, and verify the file before you run it. Main thing to watch: The latest release is more than 18 months old.
Is OnnxStream free?
Yes. OnnxStream is free and open source under a custom open-source license. The source code is public at github.com/vitoplantamura/OnnxStream.
Does OnnxStream work on Windows?
OnnxStream is available for Windows. Ready-made downloads exist for Windows.
How do I install OnnxStream?
Download the official file from the project's GitHub releases (for example llm.exe) and run it.
What are alternatives to OnnxStream?
Similar open-source apps: MixTeX-Latex-OCR (trust 40/100), LlamaChat (trust 49/100), Ollama (trust 84/100), Unsloth Desktop (trust 75/100).