Skip to content
All experiments

18 of 25

model and chip pairs where ExecuTorch beat llama.cpp at prompt reading

OpenWeights, 3 and 4 September 2026

Five chips, two runtimes.

How fast five small models answer on five phone chips, in llama.cpp and in ExecuTorch.

Two engines, two waits

llama.cpp and ExecuTorch are two engines that run a language model on a phone's own processor. The OpenWeights Android app ships both. A model reads and writes text in tokens, which are pieces of words. It is mostly a large set of learned numbers, its weights, which the engine reads through again for every token it writes.

A reply has two waits. First the engine reads the whole prompt (prefill): the prompt-reading time, from the engine's own timer, or as a speed, in tokens read a second. Then it writes the reply one token at a time (decode): the time per token, which sets how fast the reply streams. Neither counts the app's own work around them.

This page times speed only (see Limits). The Dimensity 9300+ post draws the two waits.

What we found

  • 18 of 25 model and chip pairs read the prompt sooner on ExecuTorch

    llama.cpp took 2.0 to 3.7 times as long as ExecuTorch for Gemma 3 1B, 1.7 to 2.7 for LFM2.5 1.2B and 1.2 to 2.0 for Llama 3.2 3B, but won Qwen3 1.7B on the 8 Gen 3 and 8 Elite, and SmolLM3 3B everywhere.

  • 19 of 25 wrote the reply faster on ExecuTorch

    Time per token was furthest apart on the Tensor G5, where llama.cpp wrote at about half ExecuTorch's speed for 4 of 5 models. Why is unknown: the 8 Elite and Exynos 2400, in the same remote phone lab, show smaller gaps.

  • SmolLM3 took 7 to 11 times as long to read the prompt on ExecuTorch

    The same questions came to 2.7 times as many tokens at the median on ExecuTorch, and the reports don't say why. Per token, ExecuTorch still read at 31 to 45% of llama.cpp's speed.

  • Qwen3 1.7B is not a like-for-like pair

    Its llama.cpp file stores weights in 8 bits and every other file in 4, so llama.cpp had more to read for each reply token. Leave it out and ExecuTorch read the prompt sooner in 15 of 20 pairs and wrote faster in 16 of 20.

The results

Every model on every chip

Each line joins a pair's llama.cpp dot to its ExecuTorch ring, and further left is faster in both columns. Both scales are logarithmic, so equal gaps are equal ratios. A note on a model's name says how its pair differs.

llama.cpp, GGUFExecuTorch

Prompt-reading time, s

0.31310Gemma 3 1BD9500s8 Gen 38 EliteTensor G5Exynos 2400LFM2.5 1.2BD9500s8 Gen 38 EliteTensor G5Exynos 2400Qwen3 1.7Bllama.cpp file is 8-bitD9500s8 Gen 38 EliteTensor G5Exynos 2400Llama 3.2 3BExecuTorch read 1.3× the tokensD9500s8 Gen 38 EliteTensor G5Exynos 2400SmolLM3 3BExecuTorch read 2.7× the tokensD9500s8 Gen 38 EliteTensor G5Exynos 2400

Time per token, ms

2050100200Gemma 3 1BD9500s8 Gen 38 EliteTensor G5Exynos 2400LFM2.5 1.2BD9500s8 Gen 38 EliteTensor G5Exynos 2400Qwen3 1.7Bllama.cpp file is 8-bitD9500s8 Gen 38 EliteTensor G5Exynos 2400Llama 3.2 3BExecuTorch read 1.3× the tokensD9500s8 Gen 38 EliteTensor G5Exynos 2400SmolLM3 3BExecuTorch read 2.7× the tokensD9500s8 Gen 38 EliteTensor G5Exynos 2400

Every number

Medians per model and chip, llama.cpp beside ExecuTorch. Bold blue marks the faster runtime where the gap is wider than a repeat run of one file moved its median. Closer pairs are left plain, among them one of finding 1's 18 (Qwen3 1.7B, Exynos 2400) and one of finding 2's 19 (SmolLM3 3B, Exynos 2400).

Swipe the table sideways for more columns.

ChipPrompt-reading time, sPrompt-reading speed, tok/sTime per token, ms
llama.cppExecuTorchllama.cppExecuTorchllama.cppExecuTorch
Gemma 3 1B
D9500s1.270.43, faster61164, faster42, faster48
8 Gen 31.020.37, faster69192, faster5127, faster
8 Elite0.800.40, faster79167, faster28, faster44
Tensor G51.350.48, faster56156, faster11350, faster
Exynos 24001.680.45, faster45151, faster7556, faster
LFM2.5 1.2B
D9500s0.810.30, faster138321, faster3125, faster
8 Gen 30.730.44, faster130217, faster4327, faster
8 Elite0.590.30, faster153288, faster2718, faster
Tensor G50.830.32, faster112248, faster10646, faster
Exynos 24000.970.42, faster92208, faster5938, faster
Qwen3 1.7B
D9500s1.050.76, faster11312257, faster64
8 Gen 30.49, faster0.77195, faster1207441, faster
8 Elite0.37, faster0.75266, faster1304041
Tensor G51.170.89, faster9310218494, faster
Exynos 24000.890.811001129767, faster
Llama 3.2 3B
D9500s2.391.36, faster3987, faster8282
8 Gen 32.111.82, faster4366, faster10791, faster
8 Elite1.701.47, faster4880, faster8363, faster
Tensor G52.431.55, faster3771, faster180125, faster
Exynos 24003.461.73, faster2564, faster151119, faster
SmolLM3 3B
D9500s1.18, faster12.6942, faster1379, faster91
8 Gen 31.43, faster10.3339, faster1410185, faster
8 Elite1.03, faster7.1847, faster217967, faster
Tensor G51.86, faster15.9035, faster11239108, faster
Exynos 24001.79, faster12.2629, faster11132121

How we ran it

Prompts
The same 90 prompts: 30 GSM8K maths problems, 30 IFEval instruction-following prompts and 30 BFCL function-calling prompts, except that Gemma 3 skips BFCL, having no tool syntax. So 60 to 90 per model and chip, 19 to 772 tokens long and 92 at the median, with the likeliest next token always taken, thinking off (these models can reason at length before they answer), and replies capped at 640 tokens, BFCL's at 384. The two runtimes' token counts matched to within 4 at the median, except for Llama 3.2 3B (118 on ExecuTorch, 88 on llama.cpp) and SmolLM3 3B (152 on ExecuTorch, 57 on llama.cpp).
Files
Each runtime ran its own file format, quantized (its numbers stored in fewer bits: smaller and faster, at some cost in accuracy). llama.cpp ran 4-bit GGUF files (Q4_K_M), except Qwen3 at 8 bits (Q8_0). ExecuTorch ran exports for its CPU backend, XNNPACK, with 4-bit weights and 8-bit activations, the numbers passed from layer to layer: react-native-executorch's exports for LFM2.5 (8da4w) and Llama 3.2 (SpinQuant), and for the other three, files the reports name only as INT8-INT4, with no publisher or revision. So each pair compares a whole setup, file and runtime, not the runtime alone.
Phones
One phone per chip. The benchmark matrix labels the Dimensity 9500s as D9400, and it lists a sixth chip, the Exynos 2500, which has no SmolLM3 run and is left out here.
Runs
One pass per model, chip and runtime with no repeats, on 3 and 4 September 2026. On 7 September, five ExecuTorch files on two phones were each run twice (in the reruns post), none of them a llama.cpp file. Their medians moved by up to 12% for prompt reading and 10% per token. 7 of the table's 75 pairs of numbers are closer than that.
Phone time
29 hours in all, plus loading and Test Lab queueing. Generation time per run ran from 6 minutes (LFM2.5-1.2B on ExecuTorch, 8 Elite) to about 100 minutes (SmolLM3 on llama.cpp, Tensor G5).

Limits

What it is for
Comparing how fast the two runtimes the app ships run each model on a given phone. Picking one also needs the pass rates below.
Speed, not answers
Summed over the five chips, ExecuTorch's files passed fewer prompts than llama.cpp's in 12 of the 14 model and test pairs. The worst: ExecuTorch's Gemma 3 file solved 0 to 2 of 30 GSM8K maths problems against llama.cpp's 12 to 14, and llama.cpp's SmolLM3 file got 0 of 30 BFCL function calls right against ExecuTorch's 22 to 27. A speed win for those setups is no reason to pick them. Every pass rate is in the repository's benchmark matrix.
Not the same tokens
For Llama 3.2 3B and SmolLM3 3B, ExecuTorch's prompt-reading time covers more tokens, so the speed column, per token, is the fairer comparison. A fair SmolLM3 timing needs both runtimes to see the same tokens, which this page doesn't have.
Not matched conditions
The Dimensity 9500s ran in hand under a desk fan. The Snapdragon 8 Gen 3 ran on Qualcomm Device Cloud and the 8 Elite, Tensor G5 and Exynos 2400 on Firebase Test Lab, racked, where phones throttle (slow themselves down to cool off) within about 40 seconds. A slower run lasts longer, so more of it is throttled.
Not recorded
The reports don't record either runtime's version, thread count or core pinning, whether llama.cpp used the GPU, any warm-up, or which runtime ran first on each phone.

Sources

Keep reading

All experiments
  • 63 to 71 ms

    per token on Inferentia2 from 1 to 32 streams, requests served at once, while total output grew 26×. A GPU took 5.0 ms at one stream.

    ASICs, July and August 2026

    Llama 3.1 8B on AWS Trainium and Inferentia

    Amazon's own AI chips: a fine-tune on Trainium, served on Inferentia2, set against AMD and NVIDIA GPUs from a separate study.

    Alpha Romer Coma

  • 1.84×

    the H200's room for conversation memory (the KV cache) on an MI300X with the same 70 GB of weights, from 1.36× the memory. Measured, the H200 is faster at most work

    Hardware, July 2026

    MI300X against H200

    One AMD Instinct MI300X against one NVIDIA H200, two datacenter GPUs, serving and training language models with the same versions of vLLM, a serving engine, and PyTorch.

    Alpha Romer Coma

  • 2.9×

    the X2 Elite's GPU speed at reading the prompt, on the M5 with Gemma 3 1B. On the CPU, the X2 Elite leads by 1.9×

    Hardware, 27 July 2026

    Apple M5 against Snapdragon X2 Elite

    A MacBook Air against a Qualcomm reference board on AI work: CPU, GPU and NPU, inference and training, with the same llama.cpp release and byte-identical weights.

    Alpha Romer Coma