Run MNIST with ExecuTorch and Ethos-U85 on Alif E8
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 ExecuTorch artifacts 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 with ExecuTorch and Ethos-U85 on Alif E8
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 ExecuTorch artifacts 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
Review 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.
Before you connect the DevKit, unplug all USB cables before changing any jumpers. Verify that the jumpers match the factory defaults documented in the DK-E8 User Guide. This helps you avoid power or boot issues during setup.
Connect a USB-C cable to the PRG USB port on the bottom edge of the DevKit. You can confirm that the board has power when a green LED illuminates near the E1 device.
Use Docker only if you plan to train and export the MNIST model to ExecuTorch format yourself. If you use the provided
.pte file, skip the Docker setup and model export, and proceed to preparing the firmware artifacts.You need
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.Run the firmware and monitor its output with SEGGER Real-Time Transfer. You should see the firmware load
mnist_ethos_u85.pte, execute inference on the Ethos-U85 NPU, and report a predicted digit in the RTT console.