← all repositories
Tencent/ncnn

Neural network inference with zero runtime baggage

An inference runtime that strips away third-party dependencies to run neural networks on everything from smartphones to smartwatches.

ncnn
Velocity · 7d
+4.1
★ / day
Trend
cooling
star history

What it does ncnn executes trained neural networks on mobile, embedded, and desktop hardware using either the CPU or a Vulkan GPU backend. The project bundles conversion tools—notably pnnx—to translate PyTorch and ONNX models into its own compact format. It is already baked into major Tencent consumer apps such as WeChat, QQ, and Pitu, so this is not theoretical armchair software.

The interesting bit Most inference frameworks treat portability as an afterthought; ncnn treats it as the main event. It ships with zero third-party runtime dependencies and pre-built binaries for a dizzying array of targets including Android, iOS, HarmonyOS, WebAssembly, Raspberry Pi, and even Loongson.

Key highlights

  • Zero third-party runtime dependencies; runs fully offline once deployed
  • Dual backend support: CPU and Vulkan GPU
  • Includes pnnx for converting PyTorch and ONNX models to ncnn format
  • Platform coverage spans Android, iOS, macOS, Windows, Linux, watchOS, tvOS, visionOS, WebAssembly, NVIDIA Jetson, and HarmonyOS
  • BSD 3-Clause license

Caveats

  • The README touts high performance but never supplies benchmarks, memory figures, or comparative latency data
  • The download matrix is exhaustive to the point of intimidation; picking the right pre-built binary for your target feels like a small research project

Verdict Grab it if you need to deploy a PyTorch or ONNX model to mobile, embedded, or exotic edge hardware without bloating your app. Look elsewhere if you want a server-side stack with CUDA or a fully Python-native inference experience.

Frequently asked

What is Tencent/ncnn?
An inference runtime that strips away third-party dependencies to run neural networks on everything from smartphones to smartwatches.
Is ncnn open source?
Yes — Tencent/ncnn is an open-source project tracked on heatdrop.
What language is ncnn written in?
Tencent/ncnn is primarily written in C++.
How popular is ncnn?
Tencent/ncnn has 23.6k stars on GitHub and is currently cooling off.
Where can I find ncnn?
Tencent/ncnn is on GitHub at https://github.com/Tencent/ncnn.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.