Run ERNIE-4.5 Mixture of Experts model on Armv9 with llama.cpp
Introduction
Understand Mixture of Experts architecture for edge deployment
Set up llama.cpp on an Armv9 development board
Compare ERNIE model behavior and expert routing
Optimize performance with Armv9 hardware features
Next Steps
Run ERNIE-4.5 Mixture of Experts model on Armv9 with llama.cpp
Who is this for?
This is an advanced topic for developers and engineers who want to deploy Mixture of Experts (MoE) models, such as ERNIE 4.5, on edge devices. MoE architectures allow large LLMs with 21 billion or more parameters to run with only a fraction of their weights active per inference, making them ideal for resource constrained environments.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Deploy MoE models like ERNIE-4.5 on edge devices using llama.cpp
- Compare inference behavior between ERNIE-4.5 PT and Thinking versions
- Measure performance impact of Armv9-specific hardware optimizations
Prerequisites
Before starting, you will need the following:
- An Armv9 device with at least 32 GB of available disk space, for example, Radxa Orion O6
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.
llama.cpp on an Armv9 Linux development board to deploy ERNIE-4.5 Mixture of Experts models, validate inference, and confirm multilingual output with the Thinking variant. You’ll install the PT and Thinking models, run the same task across both, and examine internal expert routing to see how only a subset of parameters is activated at runtime. Then, you’ll compare a baseline CPU build with an Armv9-optimized build that enables SVE, i8mm, and dotprod, and benchmark them under identical conditions to measure the impact of Armv9-specific optimizations.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.
llama.cpp build and runtime environment are working end to end.