Topophones

Home / Guides

Gemma 4 on a Raspberry Pi 5: what Google measured

Updated 27 Nov 2026.

Cover graphic for: 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

  1. Gemma 4 on LiteRT-LM, Google AI Edge

Checked: 27 Nov 2026. Figures change; confirm on the source before you rely on them.

Keep reading