CPU, GPU AND RAM

llm.npu: fast mobile prefill, CPU decoding and a one-device energy evaluation

In this article
THE QUICK TAKE

The prototype accelerates prompt processing with an NPU while its default decoding uses the CPU. Speed is tested on two phones, but energy is measured on only the rootable device.

Fast On-device LLM Inference with NPUs, an ASPLOS 2025 paper, presents llm.npu for mobile prompt processing. It targets workloads where a long input precedes a relatively short response. The key comparison is prefill acceleration, rather than a general claim that an NPU makes every generated token equally faster.

Hardware-friendly chunks and heterogeneous execution

Mobile NPU graphs prefer static shapes, while prompt length varies. The system divides a prompt into fixed-size chunks while preserving dependencies and reuses prepared computation graphs. This avoids treating every input length as a new graph compilation problem.

It also separates significant activation outliers for execution on CPU or GPU and schedules suitable subgraphs across heterogeneous processors. Necessary floating-point operations remain outside the efficient integer path where appropriate. Thus the system is not simply an unchanged model placed entirely on the NPU. Quantization, operator placement and scheduling jointly contribute to the result and require their own quality checks.

Prefill and decoding use different paths

The prototype is built on MLLM and Qualcomm’s runtime. Its default end-to-end configuration uses the MLLM CPU backend for decoding. A fast first-token preparation phase therefore does not establish the same improvement during autoregressive generation.

The study tests prefill lengths of 64, 256 and 1024 tokens on Redmi K70 Pro and K60 Pro. For the longest input on K70 Pro, it reports prefill speedups of 18.17–38.4× against the selected llama.cpp CPU cases. Those are author results under the tested models and backend configurations, rather than a universal NPU-to-CPU hardware ratio. Short prompts reduce the opportunity to amortize padding and scheduling overhead.

The energy comparison covers one phone

Timing is studied on both phones, but energy is measured only on K60 Pro because it is the rootable device. The paper samples Android power-supply telemetry at 100 millisecond intervals and averages three repetitions. This is not an external meter independently isolating the NPU rail.

The study excludes PowerInfer-v2 from energy comparison because the required code and energy data were unavailable. Its performance comparison instead uses that system’s published results. Accordingly, a table containing that baseline is not evidence that every competing implementation was rerun under an identical local setup. The energy measurement guide explains why source, interval and system boundary must accompany energy figures.

Preserve the research implementation’s version

The current MLLM repository documents a broader evolving runtime and several hardware backends. Its current model matrix should not be silently treated as the artifact that produced the historical paper’s results. The paper also states that the prototype does not address runtime resource detection and contention.

The benchmark method guide provides a framework for recording checkpoint, quantization, prepared graphs, prompt and output lengths, backend placement and repeated timing. A deployment decision should compare complete useful responses as well as prefill, retaining preparation and contention conditions. The work supports a concrete heterogeneous mobile acceleration mechanism, while sustained application behavior and newer device support require separate evidence.

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