# MNN

> Alibaba's lightweight on-device inference engine for deep learning and LLMs

Source: https://talira.ai/catalog/mnn-mpm7mxr8
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework
- Categories: [ai / inference / engines](https://talira.ai/categories/ai/inference/engines)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Alibaba Group](https://talira.ai/orgs/alibaba.md)

MNN is Alibaba's lightweight deep learning framework for running and training models on phones, PCs and embedded devices, used across Alibaba's apps. It converts TensorFlow, Caffe, ONNX and TorchScript models, runs them on ARM and x64 CPUs with hand-optimized assembly and on GPUs through Metal, OpenCL, Vulkan and CUDA (and Qualcomm Hexagon DSPs), with FP16, INT8 and INT4 quantization, in an Android core of about 800 KB. On top of it, MNN-LLM runs large language models locally (Qwen, DeepSeek and others) and MNN-Diffusion runs Stable Diffusion, with Python and C++ APIs and sample chat apps for Android and iOS.

## Links

- GitHub: https://github.com/alibaba/MNN

## Problems it solves

- run an LLM on an Android phone offline
- deploy an ONNX model on mobile with a small runtime
- on-device inference engine for iOS and Android

## Features

- converts TensorFlow, Caffe, ONNX and TorchScript models
- ARM and x64 CPU, Metal, OpenCL, Vulkan, CUDA and Hexagon backends
- FP16, INT8 and INT4 quantization
- MNN-LLM for on-device language models
- MNN-Diffusion for Stable Diffusion
- Python and C++ APIs

## Trust

Overall: 0.73 out of 1.
Signals: maintenance 1.00, adoption 0.84, momentum 0.68, community 0.95, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 234 commits in the last 90 days
- latest release 3.6.2 31 days ago
- 16.7k GitHub stars
- 232 contributors
- backed by Alibaba Group

## Alternatives

- [MLC LLM](https://talira.ai/catalog/mlc-llm-92jjm3wq.md): Universal LLM deployment engine that compiles models to run natively on GPUs, phones and browsers
- [MediaPipe](https://talira.ai/catalog/mediapipe-j7w5svf3.md): Google's framework and ready-made solutions for on-device machine learning
- [LMDeploy](https://talira.ai/catalog/lmdeploy-xkgtxvqy.md): LMDeploy is a toolkit for compressing, deploying, and serving LLMs.
- [ncnn](https://talira.ai/catalog/ncnn-by0k0dce.md): Tencent's neural network inference framework for phones, embedded devices and desktops.

## Sources

[^1]: https://github.com/alibaba/MNN/blob/master/README.md (checked 30 Nov 2026)
[^2]: https://github.com/alibaba/MNN/blob/master/LICENSE.txt (checked 30 Nov 2026)
