#372372nd of 433 in ML frameworks and libraries
onnxstream
Memory-minimal C++ ONNX inference library that runs Stable Diffusion on 512MB devices
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts onnxstream on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.onnxstream is on your watch list. Its new releases and problems show there.
- Stars
- 2.1k
- License
- custom license
- Last commit
- Jun 2026
- Last release
- Jan 2024
- Language
- C++
2,056 on 28 Apr 20262,093 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
OnnxStream is a small C++ inference library for ONNX models that decouples the engine from a WeightsProvider, so weights can stream from disk, RAM or a custom source. It runs Stable Diffusion 1.5 and SDXL (including Turbo) in under 300MB of RAM on a Raspberry Pi Zero 2, using attention slicing, quantization and tiled VAE decoding. It also includes an LLM chat app (TinyLlama 1.1B, Mistral 7B) and WebAssembly builds.
Who it is for: Embedded and low-RAM developers running diffusion or small models on CPU
Strengths
- README reports up to 55x less memory than OnnxRuntime on SD 1.5 UNET
- SDXL 1.0 runs in under 300MB RAM via tiled VAE decoding and quantization
- Single implementation file plus header; Python and C# bindings available
- WebAssembly builds with demos for YOLOv8 and Whisper in the browser
Weaknesses
- Latency is 50% to 200% higher than OnnxRuntime on SD 1.5 UNET
- Implements only 41 ONNX operators; models using others will not run
- No dynamic input shapes and no batch size other than 1
- GPU support is limited to cuBLAS in the LLM app, FP16 and FP32 only
What it needs
- GPU optional
- Docker
- Needs XNNPACK, CMake
- Models: ONNX, Stable Diffusion 1.5, SDXL 1.0 Base, SDXL Turbo 1.0, TinyLlama 1.1B
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #370 | jenly1314/mlkitKotlin Android library wrapping Google ML Kit vision APIs with camera-scan helpers | 26 out of 100 |
| #371 | raster-visionPython library for training vision models on satellite and aerial imagery | 25 out of 100 |
| #373 | robosatPipeline for extracting buildings and roads from satellite imagery as GeoJSON | 25 out of 100 |
| #374 | pytorch_scatterPyTorch extension for scatter and segment reduce operations | 25 out of 100 |
| #375 | bert4torchPyTorch library for loading BERT and LLM weights to fine-tune and serve | 25 out of 100 |