Skip to content
aicoolies logo
NCNN logo

NCNN

High-performance mobile neural network inference

NCNN is Tencent's high-performance neural network inference framework optimized for mobile and embedded platforms. It features pure C++ with zero dependencies, ARM NEON assembly optimization, Vulkan GPU acceleration, and sophisticated memory management for minimal footprint. Supports importing models from PyTorch, ONNX, Caffe, TensorFlow, and Keras with 8-bit quantization and half-precision storage for efficient on-device deployment across Android, iOS, and Linux.

About NCNN

NCNN is Tencent's production-grade neural network inference framework designed from the ground up for mobile and embedded devices. Unlike frameworks that adapt desktop implementations for mobile, NCNN was built with mobile constraints as first-class requirements: zero external dependencies, minimal binary size, and hand-tuned ARM NEON assembly for maximum throughput on the processors that power smartphones and edge devices. It runs inside over 30 Tencent applications including WeChat, QQ, and Taobao.

The framework supports model import from all major training frameworks through its PNNX converter, which can translate PyTorch models directly without going through the often-unreliable ONNX intermediate step. It handles quantized 8-bit integer and half-precision floating-point inference for reduced model size and faster execution, and provides Vulkan-based GPU acceleration that works across Android, iOS, and desktop platforms. The extensive operator coverage supports CNN, RNN, Transformer, and detection architectures commonly used in mobile AI features.

NCNN's ARM big.LITTLE aware scheduling automatically distributes workloads across performance and efficiency CPU cores for optimal power consumption, a critical concern for battery-powered devices. The framework's memory management is designed for environments with limited RAM, reusing buffers and minimizing allocations during inference. With over 22,000 GitHub stars and active maintenance from Tencent's engineering team, NCNN remains one of the most mature and widely deployed options for developers shipping on-device AI features on mobile platforms.

Pricing & Platform Specs

Pricing Summary

Tencent ncnn is a 100% free and open-source high-performance neural network inference computing framework optimized for mobile platforms under the BSD 3-Clause license. It has no licensing fees, no commercial tier, and no third-party dependencies.

Supported Platforms

Android, iOS, Linux, Windows, macOS

Explore categories, tags & use cases

Alternatives

All NCNN alternatives →

Intel's open-source AI inference optimization toolkit

OpenVINO is Intel's open-source toolkit for optimizing and deploying AI inference across CPUs, GPUs, and NPUs. It supports models from PyTorch, TensorFlow, ONNX, and TFLite, providing graph optimizations, quantization, and hardware-specific acceleration. The toolkit includes a GenAI API for LLM deployment and runs on Intel, ARM, and x86 platforms for edge, desktop, and cloud inference workloads.

Open Source

Cross-platform on-device AI inference SDK

RunAnywhere SDK is a production-ready toolkit for running AI models entirely on-device across iOS, macOS, Android, Web, React Native, and Flutter. It provides a unified C++ core with platform-specific bindings for LLM text generation via llama.cpp, vision-language models, Whisper speech-to-text, Piper text-to-speech, and on-device image generation. All processing stays local with zero cloud dependency, ensuring privacy and low latency for mobile and edge AI applications.

freemiumOpen Source

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is NCNN?

NCNN is Tencent's high-performance neural network inference framework optimized for mobile and embedded platforms. It features pure C++ with zero dependencies, ARM NEON assembly optimization, Vulkan GPU acceleration, and sophisticated memory management for minimal footprint. Supports importing models from PyTorch, ONNX, Caffe, TensorFlow, and Keras with 8-bit quantization and half-precision storage for efficient on-device deployment across Android, iOS, and Linux.

Is NCNN free?

Yes — NCNN is open source and free to use. Tencent ncnn is a 100% free and open-source high-performance neural network inference computing framework optimized for mobile platforms under the BSD 3-Clause license. It has no licensing fees, no commercial tier, and no third-party dependencies.

Is NCNN open source?

Yes — NCNN is open source.

Is NCNN still maintained?

Yes — NCNN is active. Its listing was last verified on August 26, 2026.

What are the best NCNN alternatives?

The first editor-selected NCNN alternatives are OpenVINO, RunAnywhere SDK.