Run MNIST on an Alif E8 Ensemble DevKit using ExecuTorch and Ethos-U85
Introduction
Learn about MNIST and the Alif Ensemble E8 DevKit
Set up the Alif Ensemble E8 DevKit
(Optional) Set up a Docker development environment
(Optional) Export PyTorch model to ExecuTorch format
Prepare the ExecuTorch model and static libraries for the Alif E8 CMSIS project
Create the Alif E8 CMSIS project
Process and copy a sample image into the Alif E8 CMSIS project
Flash and run the project on the Alif Ensemble E8 DevKit
Next Steps
Run MNIST on an Alif E8 Ensemble DevKit using ExecuTorch and Ethos-U85
Introduction
Learn about MNIST and the Alif Ensemble E8 DevKit
Set up the Alif Ensemble E8 DevKit
(Optional) Set up a Docker development environment
(Optional) Export PyTorch model to ExecuTorch format
Prepare the ExecuTorch model and static libraries for the Alif E8 CMSIS project
Create the Alif E8 CMSIS project
Process and copy a sample image into the Alif E8 CMSIS project
Flash and run the project on the Alif Ensemble E8 DevKit
Next Steps
Who is this for?
This is an introductory topic for embedded developers and ML engineers who want to run TinyML inference on physical hardware with Arm Ethos-U85 NPU acceleration.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Set up the Alif Ensemble E8 DevKit for ML applications.
- (Optional) Train, compile and export an MNIST PyTorch model to ExecuTorch .pte format using a Docker container.
- Configure CMSIS project files, memory layout, and linker scripts for an ML workload on the Alif Ensemble E8.
- Build and flash firmware to the Alif Ensemble E8 DevKit.
- Run MNIST digit classification on the Ethos-U85 NPU, and monitor inference results through SEGGER Real-Time Transfer (RTT).
Prerequisites
Before starting, you will need the following:
- Experience with C or C++ and embedded development concepts
- Alif Ensemble E8 Series Development Kit (contact Alif Sales )
- USB Type-C cable for programming
- A SEGGER J-Link debug probe, included in the DevKit
- A development machine running Windows, Linux, or macOS with Visual Studio Code installed
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
.pte, and prepare the firmware artifacts. Then, you’ll configure CMSIS project files, memory layout, and linker scripts, and build and flash the firmware. Finally, you’ll run inference on the Ethos-U85 NPU and monitor the results with SEGGER Real-Time Transfer.Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
.pte file, skip the Docker setup and model export, and proceed to preparing the firmware artifacts.mnist_ethos_u85.pte and et_bundle.tar.gz. If you completed the optional export, you can find them in ~/mnist_alif/executorch-alif/output/. Otherwise, download the provided artifacts into your output directory.mnist_ethos_u85.pte, execute inference on the Ethos-U85 NPU, and report a predicted digit in the RTT console.