LLMs on Pi & Phones: Devices Empowered by 2-Bit SpQR

While 2-bit quantization generally struggles with logical coherence for complex tasks, SpQR's advancements have enabled some LLMs, like smaller Falcon-H1-Tiny models, to run on extremely resource-constrained devices such as a 512MB RAM, single-core Raspberry Pi 1, albeit with significantly slower inference speeds.

The top 3

  1. Top LLMs for Raspberry Pi 5 Inference: The Raspberry Pi 5 (8GB/16GB) can run models like TinyLlama 1.1B at 18.4 t/s, Llama 3.2 3B at 8.8 t/s, and Phi-3.5 Mini 3.8B at 7.4 t/s (all Q4_K_M), with smaller models like Gemma 4 achieving 7-8 t/s with low RAM usage, enabling conversational AI on a low-cost device.
  2. Leading Phone Chipsets Powering Local LLMs: Modern mobile chipsets like Qualcomm's Snapdragon 8 Gen 3/4 and Apple's A17 Pro/A18/A19 Pro are optimized for on-device generative AI, with Snapdragon 8 Gen 3 capable of processing LLMs at up to 20 tokens per second and Apple's Neural Engine delivering up to 38 TOPS for NPU-accelerated inference.
  3. Best LLMs for Raspberry Pi 5 Inference: For Raspberry Pi 5, quantized models like Gemma 3:1b and Qwen 2.5:1.5b are highly efficient, achieving around 7-12 tokens/second (t/s) with low RAM usage (e.g., Gemma 2B Q4 at ~1.5-2GB RAM). Larger models like Llama 3.2 3B can run at 8.8 t/s, while 7B/8B models like Llama 3.1 8B Instruct are slower, around 2-3 t/s, suitable for batch jobs rather than interactive chat. llama.cpp is often preferred over Ollama for better performance and configurability on the Pi 5.

Sources

Open the full topic