Gemma 4 on a Raspberry Pi 5: what Google measured
Google's LiteRT-LM page includes a Raspberry Pi 5 with 16 GB of memory, running on the CPU. It is a useful floor to compare phones against.
| Model | Prefill (tokens/s) | Decode (tokens/s) | Time to first token | Peak CPU memory |
|---|---|---|---|---|
| E2B | 133 | 8 | 7.8 s | 1,546 MB |
| E4B | 51 | 3 | 20.5 s | 3,069 MB |
On the same CPU backend, the Galaxy S26 Ultra decodes E2B at 47 tokens per second, against 8 on the Pi (47 divided by 8 is about 5.9 times). For E4B it is 18 against 3 (6 times). The phone's first token arrives in 1.8 s and 5.3 s, against 7.8 s and 20.5 s.
The test setups differ, so this is a rough guide and not a controlled comparison. Source figures are Google's, checked 27 November 2026. See how fast is AI on a phone.
Sources
Checked: 27 Nov 2026. Figures change; confirm on the source before you rely on them.
Keep reading
- 8 GB vs 12 GB vs 16 GB phone for AI: which one should you buy?What each RAM tier lets you run, with the models, file sizes and the one-sentence verdict for each.
- AI-Benchmark ranking: what the columns mean, and what the top phones showReading the AI-Benchmark phone table: the score columns, five phones with their chip, RAM and AI Score as listed, and what the numbers cannot tell you about chat models.
- The airplane mode test: how to check a phone model is really offlineLoad a model on Wi-Fi, switch on airplane mode, send a prompt. The check VDF AI recommends and what it does and does not prove.
- Android local AI runtimes explained: MLC LLM, llama.cpp, ExecuTorch and moreA May 2026 guide lists five ways to run models on Android and warns about NNAPI deprecation, aggressive background killing and vendor-locked NPU tools. A secondary source, with caveats.