Can I run it? / Raspberry Pi 5

Best LLMs to run on a Raspberry Pi 5

Updated November 2026

As of November 2026, the best model to run on a Raspberry Pi 5 is LFM3 1.7B by Liquid AI (Small LM Index 61.2), at about 8 tokens/s with 4-bit weights.

The Pi 5 runs models on its CPU. Its memory is slow (about 17 GB/s), so speed, not size, decides what is usable: the 16 GB board fits bigger models but runs them no faster. About 6.5 GB is usable for a model, at 17 GB/s. The figures below assume 4-bit weights and a 4K-token context, and only include models that generate at least 5 tokens per second.

Best quality
LFM3 1.7B
Index 61.2 · Q4_K_M · 1.6 GB · ≈ 8 tok/s · LFM Open License
Best with Apache 2.0 or MIT
MiniCPM5 2B
Index 60.9 · Q4_K_M · 2.3 GB · ≈ 6 tok/s · Apache-2.0

Models that run well on a Raspberry Pi 5

All 20 models that run at 5+ tokens/s, ranked by the Small LM Index.

#ModelIndexRuns atMemorySpeedLicense
1LFM3 1.7B Liquid AILiquid AI · 4-bit · LFM Open License61.24-bit Q4_K_M1.6 GB≈ 8 tok/sLFM Open License
2MiniCPM5 2B OpenBMB (MiniCPM)OpenBMB (MiniCPM) · 4-bit · Apache-2.060.94-bit Q4_K_M2.3 GB≈ 6 tok/sApache-2.0
3Ling 3.0 Tiny InclusionAI (Ling)InclusionAI (Ling) · 4-bit · MIT54.94-bit Q4_K_M5.6 GB≈ 5 tok/sMIT
4Spark-X2.6 1.7B SparkLLM (XHToken)SparkLLM (XHToken) · 4-bit · Apache-2.052.34-bit Q4_K_M1.7 GB≈ 8 tok/sApache-2.0
5Edge0 8B-A1B (preview) Edge0Edge0 · 4-bit · Apache-2.050.14-bit Q4_K_M5.6 GB≈ 5 tok/sApache-2.0
6LFM2.5 2.6B Liquid AILiquid AI · 4-bit · LFM Open License44.74-bit Q4_K_M2.3 GB≈ 5 tok/sLFM Open License
7EXAONE 4.0 1.2B LG AI Research (EXAONE)LG AI Research (EXAONE) · 4-bit · EXAONE License (non-commercial)42.54-bit Q4_K_M1.6 GB≈ 11 tok/sEXAONE License (non-commercial)
8LFM2.5 8B-A1B Liquid AILiquid AI · 4-bit · LFM Open License40.14-bit Q4_K_M5.9 GB≈ 7 tok/sLFM Open License
9Gemma 4 E2B GoogleGoogle · 4-bit · Apache-2.037.44-bit Q4_K_M3.7 GB≈ 6 tok/sApache-2.0
10Qwen3.5 2B Alibaba (Qwen)Alibaba (Qwen) · 4-bit · Apache-2.035.94-bit Q4_K_M2.0 GB≈ 6 tok/sApache-2.0
11LFM2.5 1.2B Thinking Liquid AILiquid AI · 4-bit · LFM Open License34.74-bit Q4_K_M1.3 GB≈ 12 tok/sLFM Open License
12MiniCPM5 1B OpenBMB (MiniCPM)OpenBMB (MiniCPM) · 4-bit · Apache-2.029.44-bit Q4_K_M1.3 GB≈ 13 tok/sApache-2.0
13LFM2.5 1.2B Instruct Liquid AILiquid AI · 4-bit · LFM Open License25.44-bit Q4_K_M1.3 GB≈ 12 tok/sLFM Open License
14MiniCPM-V 4.6 OpenBMB (MiniCPM)OpenBMB (MiniCPM) · 4-bit · Apache-2.024.74-bit Q4_K_M1.4 GB≈ 11 tok/sApache-2.0
15Gemma 3n E2B GoogleGoogle · 4-bit · Gemma20.94-bit Q4_K_M4.0 GB≈ 7 tok/sGemma
16LFM2.5 350M Liquid AILiquid AI · 4-bit · LFM Open License16.64-bit Q4_K_M0.8 GB≈ 40 tok/sLFM Open License
17Qwen3.5 0.8B Alibaba (Qwen)Alibaba (Qwen) · 4-bit · Apache-2.014.34-bit Q4_K_M1.1 GB≈ 16 tok/sApache-2.0
18Gemma 3 270M GoogleGoogle · 4-bit · Gemma12.84-bit Q4_K_M0.7 GB≈ 52 tok/sGemma
19Gemma 3 1B GoogleGoogle · 4-bit · Gemma8.94-bit Q4_K_M1.2 GB≈ 14 tok/sGemma
20Llama 3.2 1B MetaMeta · 4-bit · Llama 3.2 Community8.74-bit Q4_K_M1.4 GB≈ 12 tok/sLlama 3.2 Community

Change the context length or quantization, or see models that only just fit, in Can I run it? for this device.

How to run LFM3 1.7B on a Raspberry Pi 5

  1. Install Ollama. Use 64-bit Raspberry Pi OS. Ollama installs with one command and runs on the CPU.
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run LFM3 1.7B. Downloads the 4-bit GGUF from Hugging Face and opens a chat.
    ollama run hf.co/LiquidAI/LFM3-1.7B-GGUF:Q4_K_M
  3. Keep it cool. Use the active cooler: under sustained load an uncooled Pi 5 throttles and slows down.

Every model page lists the same commands for its own files. LFM3 1.7B's page also has a memory table for other context lengths.

Questions

What is the best LLM for a Raspberry Pi 5?

As of November 2026, the best model to run on a Raspberry Pi 5 is LFM3 1.7B by Liquid AI (Small LM Index 61.2), at about 8 tokens/s with 4-bit weights.

What is the biggest model that runs on a Raspberry Pi 5?

LFM2.5 8B-A1B (8.5B parameters, 1B active) fits at 4-bit, needing 5.9 GB and generating about 7 tokens/s. Bigger models may fit at lower quality or run more slowly; try them in the Can I run it? tool.

How much memory can a model use on a Raspberry Pi 5?

About 6.5 GB of the 8 GB. The Pi 5 runs models on its CPU. Its memory is slow (about 17 GB/s), so speed, not size, decides what is usable: the 16 GB board fits bigger models but runs them no faster.

How accurate are these speeds?

They are estimates from memory bandwidth (17 GB/s here), which limits how fast a model generates text, with a typical efficiency for this kind of hardware. Expect real speeds within about a third either way. Long prompts take longer to read before the first word appears.

Other devices