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