Library

ncnn 20261020

Version20261020
Stars★ 23,982
Released2026-10-20

ncnn is a high-performance neural network inference framework optimized for the mobile platform

Release notes

编译版本,默认配置,android-ndk-r30,ohos-sdk-5.0.3,xcode 16.4,ubuntu-22.04,ubuntu-24.04,ubuntu-26.04,vs2015,vs2017,vs2019,vs2022,vs2026,emscripten-6.0.12
| file | content | arch |
|---|---|---|
|ncnn-full-source.zip |包含全部 submodule 代码的完整源码 | | 
|ncnn-android.zip | android 静态库/动态库 | armeabi-v7a + arm64-v8a + x86 + x86_64 + riscv64 |
|ncnn-android-vulkan.zip | android 静态库/动态库,支持 GPU | armeabi-v7a + arm64-v8a + x86 + x86_64 + riscv64 |
|ncnn-harmonyos.zip | harmonyos 静态库/动态库 | armeabi-v7a + arm64-v8a + x86_64 |
|ncnn-harmonyos-vulkan.zip | harmonyos 静态库/动态库,支持 GPU | armeabi-v7a + arm64-v8a + x86_64 |
|ncnn-apple.zip | apple xcframework,ios + ios-simulator + macos + mac-catalyst + watchos + watchos-simulator + tvos + tvos-simulator + visionos + visionos-simulator | arm64 + arm64e + x86_64 |
|ncnn-apple-vulkan.zip | apple xcframework,ios + ios-simulator + macos + mac-catalyst + watchos + watchos-simulator + tvos + tvos-simulator + visionos + visionos-simulator,支持 GPU | arm64 + arm64e + x86_64 |
|ncnn-ios.zip | ios 静态库 | arm64 |
|ncnn-ios-vulkan.zip | ios 静态库,支持 GPU | arm64 |
|ncnn-ios-simulator.zip | ios simulator 静态库 | x86_64 + arm64 |
|ncnn-ios-simulator-vulkan.zip | ios simulator 静态库,支持 GPU | x86_64 + arm64 |
|ncnn-macos.zip | macos 静态库 | x86_64 + arm64 |
|ncnn-macos-vulkan.zip | macos 静态库,支持 GPU | x86_64 + arm64 |
|ncnn-mac-catalyst.zip | mac catalyst 静态库 | x86_64 + arm64 |
|ncnn-mac-catalyst-vulkan.zip | mac catalyst 静态库,支持 GPU | x86_64 + arm64 |
|ncnn-watchos.zip | watchos 静态库 | armv7k + arm64_32 |
|ncnn-watchos-simulator.zip | watchos simulator 静态库 | x86_64 + arm64 |
|ncnn-tvos.zip | tvos 静态库 | x86_64 + arm64 |
|ncnn-tvos-vulkan.zip | tvos 静态库,支持 GPU | x86_64 + arm64 |
|ncnn-tvos-simulator.zip | tvos simulator 静态库 | x86_64 + arm64 |
|ncnn-tvos-simulator-vulkan.zip | tvos simulator 静态库,支持 GPU | x86_64 + arm64 |
|ncnn-visionos.zip | visionos 静态库 | arm64 |
|ncnn-visionos-vulkan.zip | visionos 静态库,支持 GPU | arm64 |
|ncnn-visionos-simulator.zip | visionos simulator 静态库 | x86_64 + arm64 |
|ncnn-visionos-simulator-vulkan.zip | visionos simulator 静态库,支持 GPU | x86_64 + arm64 |
|ncnn-ubuntu.zip | ubuntu linux 静态库/动态库,支持 GPU,模型转换工具 | x86_64 |
|ncnn-windows.zip | windows 静态库/动态库,支持 GPU,模型转换工具 | x86 + x64 + arm + arm64 |
|ncnn-webassembly.zip | webassembly 静态库 | wasm32 + simd + threads + simd-threads |
|ncnn-webassembly64.zip | webassembly64 静态库 | wasm64 + simd + threads + simd-threads |

## 重点概览

- 新增原生 batch 推理基础设施,Mat/VkMat、CPU/Vulkan 调度、C/Python 接口和 pnnx 转换同步扩展;Reshape 支持 batch 与普通维度之间的重组,进一步完善动态 reshape、flatten、unflatten 的 batch 语义。(@futz12)
- Vulkan 后端新增 Convolution、ConvolutionDepthWise、InnerProduct、GEMM 的 int8 推理路径,配套 integer dot product、cooperative matrix、Winograd 和 int8 packing,量化模型不再因存在 int8 层而整体关闭 GPU。
- 新增面向 LLM 的 int4/int6/int8 块量化、`ncnnllm2table` / `ncnnllm2int` 工具和五大 CPU 后端的 int8 块量化优化,并引入会话级 KV cache allocator、容量复用及 bf16 模型权重存储。
- x86 后端新增 fp32/bf16 SDPA FlashAttention prefill/decode,扩展 AVX2、AVX-NE-CONVERT、FMA/FMA4 dispatch,并补齐 CumulativeSum、Reduction、Normalize、Permute 的 SIMD 实现。(@crafcat7)
- RISC-V 补齐 packed int8 Convolution、im2col GEMM、Winograd、SDPA/MultiHeadAttention,继续优化 fp16 GEMM 和常见激活,并新增 BF16 能力检测及 Cast/Clip 转换路径。(@Deepdive543443, @futz12, @darkavatar23)
- Vulkan LayerNorm、RMSNorm、GroupNorm、InstanceNorm 新增 subgroup 归约,cooperative matrix 继续优化访存、对齐和 Adreno 兼容;同步修复 bf16 舍入、归一化系数精度及 Tanh/GELU 大输入溢出问题。(@futz12)
- 模型、参数与图加载增加系统性校验,新增默认开启的 `NCNN_VALIDATION`,修复负数索引、长度/数值溢出、非法层参数、循环图、截断 mmap 权重及失败加载后的资源清理问题。(@aleff-github, @professor-moody, @beilzx, @kaltsit-10, @ktz03, @Dr3ladwyn, @FluxMind-O, @lxcxjxhx)
- pnnx 完善 MelSpectrogram、多前导维度 Linear、全局池化布局、ONNX fp16/bool 常量和 Transformer attention 融合,修复插值与动态 batch 转换,CI 测试矩阵扩展至 PyTorch 2.14。(@futz12, @Lfan-ke, @ktz03, @giuliocorradi, @Acture, @xy200303)
- 发布流程新增 Ubuntu 26.04、VS2026、wasm64 和 Android/iOS Python wheel,WebAssembly 更新至 Emscripten 6.0.12 并使用原生 LLVM OpenMP;Python 的 OpenCV 依赖改为可选项。

## Vulkan / GPU

- 新增 Vulkan Convolution、ConvolutionDep…

Share this resource


Discovered 2026-10-20 Source GitHub Archive 2026-10 →