创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

ExecuTorch 新增 Arm Cortex-M 后端

AI 总结

PyTorch 博客宣布,ExecuTorch 的 Cortex-M 后端已在仓库中可用,使 PyTorch 模型可直接在 Arm Cortex-M CPU 上运行,并通过 Arm CMSIS-NN 加速,无需先转换到其他框架格式。该后端在编译期指定 M0 至 M85 的 CPU 型号与指令集层级,支持 Scalar、DSP 与 MVE/Helium 三档能力,并可与 Ethos-U NPU 委托共存,未委托的算子在同一计算图中回落到 CPU 执行。作者称在 Alif Ensemble E8 的单个 Cortex-M55 核心上测试了 MLPerf Tiny 五个模型中的四个,每个模型运行时间不超过 21.5 毫秒、占用不到 90 KiB RAM,核心运行时不到 20 KiB flash;这些数据均来自项目方自述,未见独立验证。

深度见解

对于以 PyTorch 训练、又要部署到微控制器的团队,这一后端省去了转换模型格式和维护另一套工具链的步骤。

TL;DR

  • Deploying PyTorch models on microcontrollers has historically required converting to other framework formats, maintaining separate toolchains, and debugging cross-framework numerical mismatches. ExecuTorch eliminates this conversion step entirely.
  • The Cortex-M backend enables PyTorch models to run directly on Arm Cortex-M CPUs with Arm CMSIS-NN acceleration. It supports all capability tiers (Scalar, DSP, and MVE/Helium) from a single workflow.
  • We benchmark four of the five models from the MLPerf Tiny suite on the Alif Ensemble E8. Each model runs in 21.5 ms or less and uses under 90 KiB of RAM on a single Cortex-M55 core.
  • For heterogeneous SoCs, the Cortex-M backend also provides the CPU execution path alongside Ethos-U NPU delegation.
  • Minimal binary footprint. The ExecuTorch core runtime is under 20 KiB of flash, and operator selective build links only the operators your model needs, so total code size scales with the model rather than the framework.

Background

Microcontrollers power billions of always-on devices: wearables, industrial sensors, voice interfaces, and smart home appliances. These devices operate under extreme constraints: often less than 1 MB of SRAM, single-digit megabytes of flash, and power budgets measured in milliwatts. Despite these limitations, there’s growing demand to run meaningful ML workloads on these platforms and the hardware is evolving to meet it. Modern Cortex-M based microcontroller units (MCUs) now include DSP & vector ISAs, large tightly-coupled memories (TCMs), and power-efficient NPUs such as the Arm Ethos-U NPU that make ML inference more practical in resource constrained devices.

#ExecuTorch#PyTorch#Arm#CMSIS-NN#Cortex-M#Ethos-U#Alif Ensemble E8#Raspberry Pi Pico 2#MLPerf Tiny

原文约 9 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。