// local-llm · alibaba/MNN

MNN

MNN — проект с открытым исходным кодом из категории «Локальные LLM» от alibaba (alibaba/MNN на GitHub). У него 16 192 звезды на GitHub и 2 467 форков, он распространяется по лицензии Apache-2.0 и последний раз обновлялся на GitHub 8 октября 2026.

Alibaba's lightweight, blazing-fast inference engine for on-device LLMs and edge AI.

★ 16,2 тыс. звёзд⑂ 2,5 тыс. форковApache-2.0обновлено окт. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
alibaba/MNN
Звёзды GitHub
16 192
Форки
2 467
Лицензия
Apache-2.0
Последнее обновление на GitHub
8 октября 2026
Категория
Локальные LLM
Тип страницы
Полное руководство по установке
// как это работает

Как это работает

  1. Pick your target device and model

    Decide whether you are targeting Android, iOS, embedded Linux or desktop, and choose a model to convert, such as a Qwen-series LLM for on-device chat.

  2. Clone the engine

    Get the MNN source, which includes the converter, runtime and sample apps including the MNN LLM chat apps.

  3. Convert and build

    Convert your TensorFlow, ONNX, Caffe or TorchScript model to MNN format and build the library for your platform, choosing CPU or GPU backends.

  4. Run inference on-device

    Integrate the runtime into your app or run the included chat app, then tune quantization (FP16/INT8) for size and speed.

// возможности

Почему его любят

Lightweight on-device runtime

Optimized for devices with no dependencies: the Android core library is about 800KB, and FP16/INT8 quantization can cut model size by 50-70%.

Broad model conversion

The converter supports models from TensorFlow, Caffe, ONNX and TorchScript, covering CNN, RNN, GAN and Transformer networks.

Many acceleration backends

Runs on ARM and x64 CPUs with optimized assembly, plus Metal, OpenCL and Vulkan on mobile GPUs, CUDA on NVIDIA, and a Hexagon DSP backend.

On-device LLM support

Powers local LLM apps, with recent releases adding support for Qwen3 and Qwen3-VL series models and multimodal chat on Android and iOS.

Python API

An MNN Python API lets ML engineers run inference, training and image processing without writing C++.

Training as well as inference

MNN supports training models on PC or mobile in addition to inference, plus a lightweight OpenCV-like image processing module.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Clone the MNN source, including the converter, runtimes and sample apps.

    git clone https://github.com/alibaba/MNN.git
    cd MNN
  2. Convert a model

    Convert an ONNX, TensorFlow, Caffe or TorchScript model into MNN format with the included converter before deploying it.

    # Convert your model with the MNN converter - see README for the exact command
  3. Build and run on your platform

    Build MNN for Android, iOS or desktop following the platform guide, or open one of the included LLM chat sample apps.

    # Build for your target platform - see README for the exact command
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains MNN?

MNN is developed by Alibaba and the open-source community; it is battle-tested in Alibaba's own products.

Is MNN free to use?

Yes. It is released under the Apache-2.0 license, which allows commercial use.

Does MNN need a paid API key?

No. MNN runs models locally on your device, so there is no cloud API or key involved.

How does MNN compare with TensorFlow Lite or ONNX Runtime?

MNN is a lightweight C++ engine focused on fast on-device inference, with its own converter for TensorFlow, Caffe, ONNX and TorchScript models and strong mobile GPU and LLM support; the best choice depends on your model and target hardware.

How do I get started?

Clone the repo, convert a model with the MNN converter, and try one of the included sample apps, such as the Android or iOS LLM chat app.

// продолжить изучение

Похожие инструменты

Локальные LLM

nobodywho

Lightweight inference engine for running LLMs efficiently on any device.

★ 1,5 тыс. звёздEUPL-1.2
Смотреть руководство →
Локальные LLM

vLLM

A high-throughput and memory-efficient inference and serving engine for LLMs

★ 93,1 тыс. звёздApache-2.0
Смотреть руководство →
Локальные LLM

airunner

Offline inference engine for art.

★ 1,3 тыс. звёздGPL-3.0
Смотреть руководство →
Локальные LLM

webclaw

Fast Rust scraper that turns web pages into clean data for LLMs.

★ 2,4 тыс. звёздAGPL-3.0
Смотреть руководство →
Локальные LLM

mlc-llm

Compile and run LLMs anywhere - phones, laptops, browsers and GPUs - with one engine

★ 23,2 тыс. звёздApache-2.0
Смотреть руководство →
Локальные LLM

omlx

A fast LLM inference server for Apple Silicon, managed from the macOS menu bar

★ 22,6 тыс. звёздApache-2.0
Смотреть руководство →
// альтернативы

Альтернативы: Локальные LLM

Другие проекты из категории «Локальные LLM» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если MNN вам не подходит.

// ещё в категории local-llm

Больше проектов: Локальные LLM

Соседние проекты из категории «Локальные LLM» в каталоге, ближайшие по числу звёзд к MNN — продолжайте изучать полку по обе стороны от него.

Получить MNN

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.