#2929th of 37 in ML frameworks and libraries
ncnn
C++ neural network inference library for mobile, embedded and desktop devices
- Stars
- 23.9k
- License
- custom license
- Last commit
- Oct 2026
- Last release
- May 2026
- Language
- C++
Missed the latest GitHub check; these facts may be older.
Overview
ncnn runs neural network inference on CPU or Vulkan GPU with no third-party runtime dependencies. It ships prebuilt packages for Android, iOS, HarmonyOS, macOS, Linux, Windows and WebAssembly, plus cross-compile guides for ARM, MIPS, RISC-V and LoongArch boards. The pnnx tool converts PyTorch and ONNX models to ncnn's param/bin format, and C++ and Python APIs are provided.
Who it is for: Developers deploying trained models to phones, embedded boards and browsers
Strengths
- No third-party runtime dependencies; CPU and Vulkan GPU backends
- Prebuilt packages for Android, iOS, HarmonyOS, Windows, Linux, macOS and WebAssembly
- Builds for many architectures: ARM, MIPS, ppc64, riscv64, loongarch64
- pnnx converts PyTorch and ONNX models; C++ and Python APIs
Weaknesses
- Inference only; training is not covered
- Models must be converted to ncnn param/bin format first
- No HTTP serving layer; it is an embedded library
- License detected as NOASSERTION; README badge says BSD 3-Clause
What it needs
- GPU optional
- Models: PyTorch (via pnnx), ONNX (via pnnx), ncnn param/bin
Also in ML frameworks and libraries
See all 37| Rank | Project | Score |
|---|---|---|
| 1 | transformersPython library defining open models for text, vision, audio and multimodal tasks | 95 out of 100 |
| 2 | pytorchPython tensor library with GPU support and tape-based autograd for deep learning | 94 out of 100 |
| 3 | ultralyticsPython library and CLI for training and running YOLO vision models | 90 out of 100 |
| #4 | supervisionPython toolkit for loading, annotating and counting computer vision detections | 87 out of 100 |
| #5 | pytorch-image-modelsPyTorch library of image models, pretrained weights and reference training scripts | 86 out of 100 |