AI & Machine Learning

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.

Things to watch:

2,092 GitHub stars · 2.9k downloads · 4 contributors.

Download OnnxStream

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

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).