#2626th of 433 in ML frameworks and libraries

mnn

On-device inference engine for mobile and embedded, with LLM and diffusion runtimes

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
16.7k
License
Apache-2.0
Last commit
Nov 2026
Last release
Oct 2026
Language
C++
Stars, last 35 weeks+2,145
25 Mar 2026: 14,508 stars1 Apr 2026: 14,582 stars8 Apr 2026: 14,685 stars15 Apr 2026: 14,774 stars22 Apr 2026: 14,869 stars29 Apr 2026: 14,934 stars6 May 2026: 14,988 stars13 May 2026: 15,044 stars20 May 2026: 15,103 stars27 May 2026: 15,176 stars3 Jun 2026: 15,297 stars10 Jun 2026: 15,368 stars17 Jun 2026: 15,410 stars24 Jun 2026: 15,455 stars1 Jul 2026: 15,505 stars8 Jul 2026: 15,541 stars15 Jul 2026: 15,586 stars22 Jul 2026: 15,635 stars29 Jul 2026: 15,692 stars5 Aug 2026: 15,751 stars12 Aug 2026: 15,808 stars19 Aug 2026: 15,879 stars26 Aug 2026: 15,927 stars2 Sept 2026: 15,976 stars9 Sept 2026: 16,020 stars16 Sept 2026: 16,068 stars23 Sept 2026: 16,109 stars30 Sept 2026: 16,139 stars7 Oct 2026: 16,176 stars14 Oct 2026: 16,218 stars21 Oct 2026: 16,255 stars28 Oct 2026: 16,302 stars4 Nov 2026: 16,360 stars11 Nov 2026: 16,518 stars18 Nov 2026: 16,600 stars25 Nov 2026: 16,653 stars

14,508 on 25 Mar 202616,653 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

MNN is a C++ deep learning inference and training framework from Alibaba, aimed at phones and embedded devices. It converts TensorFlow, Caffe, ONNX and TorchScript models and runs them on ARM/x86 CPUs, OpenCL, Vulkan, Metal, CUDA and several NPUs. MNN-LLM and MNN-Diffusion run language and Stable Diffusion models locally, and the repo includes Android and iOS chat apps.

Who it is for: Mobile and embedded engineers deploying models on-device

Strengths

  • Small footprint: about 800KB Android core .so, about 12MB iOS static library with full options
  • Backends for ARM/x86 CPU, OpenCL, Vulkan, Metal, CUDA, CoreML, Hexagon, NNAPI
  • Converter handles TensorFlow, Caffe, ONNX and TorchScript, plus FP16/Int8 quantization
  • Ships MNN-LLM, MNN-Diffusion and Android/iOS demo apps; production use in 30+ Alibaba apps

Weaknesses

  • Not a drop-in server: no OpenAI-compatible HTTP API described in the README
  • Models must be converted to MNN format before use
  • Several backends rated B or C in the support matrix, e.g. NNAPI, NeuroPilot, QNN FP32
  • Community channels are mainly Chinese-language DingTalk groups

What it needs

  • GPU optional
  • Models: TensorFlow, TensorFlow Lite, Caffe, ONNX, TorchScript

What changed

  1. 3.6.2 ↗ (opens in a new tab)Security fix

    “ONNX Conversion: Fixed operator attributes, default values, shapes, and type handling”

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
#24feastFeature store that serves consistent ML features for training and online inference7.4k starsApache-2.085 out of 100
#25jaxPython library for autodiff, JIT compilation and vectorization of NumPy-style code36.7k starsApache-2.084 out of 100
#27fiftyoneDataset visualization, curation and model evaluation tool for computer vision Live demo ↗ (opens in a new tab)11.4k stars+107 (+1.0%) in 30 daysApache-2.084 out of 100
#28tabpfnPretrained transformer for tabular classification and regression, no per-dataset training Live demo ↗ (opens in a new tab)8.6k stars+239 (+2.9%) in 30 daysApache-2.084 out of 100
#29xgboostGradient boosted decision tree library for tabular machine learning29k starsApache-2.083 out of 100