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

Stars
2.1k
License
custom license
Last commit
Jun 2026
Last release
Jan 2024
Language
C++
Stars, last 30 weeks+37
28 Apr 2026: 2,056 stars5 May 2026: 2,059 stars12 May 2026: 2,060 stars19 May 2026: 2,061 stars26 May 2026: 2,062 stars2 Jun 2026: 2,064 stars9 Jun 2026: 2,064 stars16 Jun 2026: 2,066 stars23 Jun 2026: 2,067 stars30 Jun 2026: 2,068 stars7 Jul 2026: 2,070 stars14 Jul 2026: 2,071 stars21 Jul 2026: 2,074 stars28 Jul 2026: 2,076 stars4 Aug 2026: 2,076 stars11 Aug 2026: 2,076 stars18 Aug 2026: 2,077 stars25 Aug 2026: 2,077 stars1 Sept 2026: 2,077 stars8 Sept 2026: 2,080 stars15 Sept 2026: 2,081 stars22 Sept 2026: 2,082 stars29 Sept 2026: 2,084 stars6 Oct 2026: 2,084 stars13 Oct 2026: 2,085 stars20 Oct 2026: 2,085 stars27 Oct 2026: 2,086 stars3 Nov 2026: 2,088 stars10 Nov 2026: 2,089 stars17 Nov 2026: 2,093 stars24 Nov 2026: 2,093 stars

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
Also in ML frameworks and libraries
RankProjectScore
#370jenly1314/mlkitKotlin Android library wrapping Google ML Kit vision APIs with camera-scan helpers1.2k starsApache-2.026 out of 100
#371raster-visionPython library for training vision models on satellite and aerial imagery2.2k starsApache-2.025 out of 100
#373robosatPipeline for extracting buildings and roads from satellite imagery as GeoJSON2.1k starsMIT25 out of 100
#374pytorch_scatterPyTorch extension for scatter and segment reduce operations1.7k starsMIT25 out of 100
#375bert4torchPyTorch library for loading BERT and LLM weights to fine-tune and serve1.3k starsMIT25 out of 100