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

AI-assisted

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.

Close
?
You’ll use 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

AI-assisted

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.

Close
?
What result should I expect when verifying the setup on the Armv9 board?
You should see successful model inference and multilingual output from the ERNIE-4.5 Thinking variant. This confirms the llama.cpp build and runtime environment are working end to end.
Which ERNIE-4.5 variant should I use for the comparison step?
Use both PT and Thinking on the same task and with the same settings. This makes the differences in response style and reasoning easier to observe.
How do I inspect and interpret MoE expert routing during generation?
Use the inspection method shown in the steps to view which experts are selected per token. Compare activation patterns between PT and Thinking to understand routing differences.
How do I set up baseline and optimized builds to benchmark Armv9 features?
Build a regular CPU version and a separate Armv9-specific version with SVE, i8mm, and dotprod enabled. Run the same benchmarks on both builds and compare results under identical conditions.
What should I check if a model download or inference run fails?
Verify the device uses an Armv9 CPU and that at least 32 GB of disk space is available. Re-run the setup verification on the board before proceeding to comparisons or benchmarking.
Next