TECHNOLOGY

Arm SME2 in llama.cpp: an Android dispatch comparison

In this article
THE QUICK TAKE

Treat the walkthrough as a specific dispatch comparison; reconcile affinity and measure device resources before extending its result.

Arm’s walkthrough provides an unusually direct comparison: the same quantized model, with a specialized CPU path enabled and disabled. It is useful as a dispatch experiment. Reading it as an independently replicated phone benchmark, or as an energy result, would add evidence the published example does not provide.

Preserve the two measured phases

The Arm example uses Llama-3.2-3B-Instruct Q4_0 with one thread. It reports prompt processing/generation of 12.3/9.1 tokens/s with SME2 and 7.9/5.9 without it. The disabled path uses I8MM/DotProd kernels, not an unoptimized arithmetic baseline. The page does not establish a complete phone SKU, thermal protocol or energy measurement.

Prompt processing and generation should remain separate observations. They have different shapes and reuse patterns, so combining their rates into one supposed model speed would remove useful information. A test of another quantization or working set also needs fresh evidence that the intended specialized operations remain eligible; the presence of the same CPU instruction family is not enough.

Identify the implementation being switched

The authored build chapter pins llama.cpp b7610 and says newer versions are untested. That matters when reproducing the documented runtime switch: a current binary may have different dispatch, packing or supported operators. Preserve the actual source revision and build settings rather than treating the model filename as a complete experiment identity.

The KleidiAI repository describes operator microkernels without scheduling or memory management. An accelerated matrix operation therefore does not imply that every part of inference moves to that implementation. Inspect the effective dispatch separately from the throughput result. Diagnostic logging or profiling should also be distinguished from the timed configuration, because added observation can itself change execution.

Resolve affinity notation before copying the setup

The walkthrough calls taskset 2 a binding to core 2. The taskset manual defines the default argument as a bit mask; under that notation, 0x2 selects logical CPU 1. The prose label and mask therefore require reconciliation. Neither establishes the actual physical core type without the target device’s topology.

A follow-up should record the effective allowed CPU list and map it to the tested device. Keep process affinity and worker settings consistent in both modes. Do not silently replace the mask and then call the result an exact reproduction: changing placement can change the comparison independently of the arithmetic path. The useful artifact is the observed placement, not a copied label.

Add the missing operating conditions

Repeat the same workload with the specialized path off, on and off again, retaining variation and actual generated work. Save the selected kernels and phase timings alongside the device identity, operating system and thermal observations. These are proposed reproduction controls, not additional results measured here.

Measure energy separately if efficiency is the objective. Faster execution can affect energy, but speed alone supplies no consumption integral or whole-device boundary. The guides to benchmark controls and reproducible stacks help turn this vendor walkthrough into a bounded local experiment without extending its reported result to every Arm platform.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles