Cortex-M Backend for ExecuTorch

•
4.3k
•

Optimizes and deploys PyTorch models to Arm Cortex-M processors using the CMSIS-NN backend.

The Cortex-M skill streamlines the development, testing, and export process for running PyTorch models on resource-constrained embedded devices. It leverages the CMSIS-NN library to rewrite quantized ATen operators into hardware-optimized equivalents through the CortexMPassManager. This skill is essential for developers working within the ExecuTorch ecosystem who need to validate graph correctness via the CortexMTester, perform PT2E quantization, or verify numerical accuracy on Corstone-300 FVP targets.

Características Principales

01Automated rewriting of quantized ATen operators to CMSIS-NN equivalents
02Integrated quantization pipeline using PT2E and CortexMQuantizer
03Seamless integration with Arm toolchains and Corstone-300 FVP
04End-to-end testing harness with CortexMTester for graph and implementation validation
05Streamlined workflow for adding custom operators and C++ kernels
064,333 GitHub stars

Casos de Uso

01Deploying quantized neural networks to microcontroller units (MCUs) with Arm Cortex-M
02Testing numerical accuracy of ML models on virtual hardware platforms like Corstone-300
03Implementing custom CMSIS-NN kernels for specialized edge AI applications