Repository navigation
3.6.2 #5068
wangzhaode
announced in
Announcements
3.6.2
#5068
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
MNN 3.6.2 版本发布说明
发布日期: 2026年10月
📦 安装:
pip install mnn==3.6.2| PyPI📌 版本概述
MNN 3.6.2 聚焦 端侧异构推理性能与投机解码加速。本版本以 Metal、Hexagon 和 DFlash 为重点,持续提升 Qwen3 / Qwen3.5 在 CPU、GPU 与 NPU 上的推理效率。
典型性能:Qwen3.5-2B 在 iPad Pro M5 的 GPU 上通过 Metal 后端运行,Prefill 达到 3542.91 tok/s;启用 DFlash 后,Decode 从 111.89 提升至 233.98 tok/s,达到常规解码的 2.09 倍。
🚀 版本亮点
📊 性能基准
图:左侧为 iPad Pro M5 的 CPU / Metal GPU 性能,Qwen3.5-2B 额外展示 DFlash 投机解码;右侧为 OnePlus 13 的 CPU / OpenCL GPU / Hexagon NPU 性能。上排 Prefill,下排 Decode。
✨ 新功能与性能优化
Metal 后端
Hexagon / NPU 后端
LLM / 推理与导出
--qat,读取qat_config.json与 safetensors,保留 scale / zero_point,支持 2 / 3 / 4 / 8-bit 权重MNN_LLM_TOKEN_COMPRESS编译选项和token_compress配置,按 Token 预算选取文本句子;默认关闭,支持纯文本请求及多模态模型的纯文本输入setPrefixCacheFile支持CPU 后端
其他 GPU 后端
LLM / 多模态模型
工具
-pg:支持共享 KVCache 的 Prefill / Decode 联合测试🐛 缺陷修复
LLM / VLM / 音频
GPU / NPU 后端
CPU / 框架
转换器 / 安全 / 其他
📚 其他改进
🙏 致谢
衷心感谢所有贡献者对本版本的宝贵贡献,以下按 GitHub login 列出部分代表性工作:
同时感谢 @BillyONeal、@JingliangGao、@PanicTitan、@TheodoreGan、@Xlawy、@baicai-1145、@bhu619、@blueskycoco、@eharris128、@eyesofish、@hebangwen、@huluhuluu、@ihb2032、@jxgxxx、@kabishou11、@mistletoe1024、@oftrongs、@patrickkabwe、@primorLee、@pruthvikar、@srpatcha、@vera-rubin,以及参与开发、测试和问题反馈的所有贡献者。
MNN 3.6.2 Release Notes
Release Date: October 2026
📦 Install:
pip install mnn==3.6.2| PyPI📌 Overview
MNN 3.6.2 focuses on on-device heterogeneous inference performance and speculative decoding acceleration. With Metal, Hexagon, and DFlash as key priorities, this release improves Qwen3 / Qwen3.5 inference across CPUs, GPUs, and NPUs.
Representative result: Qwen3.5-2B running on the iPad Pro M5 GPU through Metal achieves 3542.91 tok/s prefill. DFlash increases decoding throughput from 111.89 to 233.98 tok/s, reaching 2.09× the throughput of standard decoding.
🚀 Highlights
📊 Performance Benchmarks
Figure: Left: CPU / Metal GPU on iPad Pro M5, with DFlash decoding also shown for Qwen3.5-2B. Right: CPU / OpenCL GPU / Hexagon NPU on OnePlus 13. Prefill is on the top row and decode on the bottom row.
✨ New Features and Performance Improvements
Metal Backend
Hexagon / NPU Backends
LLM / Inference and Export
--qatto readqat_config.jsonand safetensors, preserving scale / zero_point for 2 / 3 / 4 / 8-bit weightsMNN_LLM_TOKEN_COMPRESSbuild option andtoken_compresssetting to select text sentences within a token budget; disabled by default; supports text-only requests, including text-only inputs to multimodal modelssetPrefixCacheFilesupportCPU Backend
Other GPU Backends
LLM / Multimodal Models
Tools
-pg: Supports combined prefill / decode benchmarking with a shared KVCache🐛 Bug Fixes
LLM / VLM / Audio
GPU / NPU Backends
CPU / Core
Converter / Security / Misc
📚 Other Improvements
🙏 Acknowledgements
We sincerely thank all contributors. Selected contributions are listed below by GitHub login:
Additional thanks to @BillyONeal, @JingliangGao, @PanicTitan, @TheodoreGan, @Xlawy, @baicai-1145, @bhu619, @blueskycoco, @eharris128, @eyesofish, @hebangwen, @huluhuluu, @ihb2032, @jxgxxx, @kabishou11, @mistletoe1024, @oftrongs, @patrickkabwe, @primorLee, @pruthvikar, @srpatcha, and @vera-rubin, and everyone who contributed development, testing, and feedback.
Full Changelog: 3.6.1...3.6.2
This discussion was created from the release 3.6.2.
All reactions