qmetrics.net

MNN

Lightweight on-device deep learning inference engine

MNN is Alibaba’s compact framework for running and training neural networks on phones, PCs, and embedded hardware with broad format and backend support.

Overview

MNN is a deep learning engine focused on efficient inference and on-device training. It targets mobile apps, embedded systems, and edge deployments where binary size and latency matter, and has been used across many Alibaba consumer products for scenarios such as search, video, and recommendations.

The stack imports models from TensorFlow, Caffe, ONNX, and TorchScript, supports CNNs, RNNs, GANs, and Transformers, and runs on CPU plus GPU backends including OpenCL, Vulkan, Metal, and CUDA. Quantized FP16 and INT8 paths shrink models substantially. Companion projects MNN-LLM and MNN-Diffusion add local large-language-model and stable-diffusion runtimes.

Tooling around the core engine includes converters, compression utilities, a lightweight OpenCV-like MNN-CV module, training APIs, and a Python layer for inference without C++. MNN Workbench offers pretrained models and deployment aids. Typical mobile library footprints are on the order of megabytes for core native builds.

The project emphasizes assembly-optimized CPU kernels, Winograd convolutions, and mixed device execution. It supports Android, iOS, and POSIX-like embedded targets, with optional NPU backends such as CoreML and Hexagon on supported hardware.

Key features

  • Multi-format model conversion
  • CPU and mobile GPU backends
  • FP16 and INT8 quantization
  • MNN-LLM local language models
  • MNN-Diffusion image runtime
  • Python and C++ APIs
  • On-device training support
  • Compact mobile library size

Use cases

  • On-device ML inference
  • Mobile app vision features
  • Embedded IoT intelligence
  • Local LLM deployment
  • Edge model compression

Tags

Similar software

TensorFlow

End-to-end machine learning platform and tooling ecosystem

TensorFlow is a machine learning platform with Python and C++ APIs, optional GPU packages, and companion libraries for data, training, deployment, and visualization.

★ 201.8k⟳ todayApache-2.0

Transformers

Shared model definitions for multimodal ML workloads

Transformers is a Python library that defines pretrained text, vision, audio, and multimodal models once in PyTorch for shared inference and training across the ecosystem.

★ 169.4k⟳ todayApache-2.0

RAGFlow

Open-source RAG engine and agent context platform

RAGFlow ingests heterogeneous documents, builds retrievable knowledge, and supports agent workflows with citations. It can run on your own hardware with Docker or a from-source server stack.

★ 94.8k⟳ todayApache-2.0

Headroom

Local LLM context compression library and proxy

Headroom shrinks tool outputs, logs, JSON, and chat history before LLM calls to cut input tokens while preserving retrievable originals. It offers a Python library, proxy, MCP tools, and agent wrappers.

★ 81k⟳ yesterdayApache-2.0

Unsloth

Local desktop workspace to run and fine-tune AI models

Unsloth is a desktop application to chat with, fine-tune, and serve LLMs, diffusion, audio, and embedding models on your own hardware with optional agent integrations.

★ 80.4k⟳ todayApache-2.0

Models

TensorFlow reference models and modeling utilities collection

The TensorFlow Model Garden hosts implementations of models and modeling solutions for TensorFlow, installable via pip as tf-models-official.

★ 77.6k⟳ 11 days agoApache-2.0