
Hardware · Raspberry Pi
What AI models can the Raspberry Pi 4 (4 GB) run?
- RAM
- 4.0 GB
- Usable for models
- 2.8 GB
- Memory bandwidth
- 13 GB/s
- Runs models on
- CPU cores
- Released
- 2019
Models run on the CPU cores here, so the memory’s speed and how fast those cores can read it set the pace: small models (about 1-4B) are usable, bigger ones are slow. We plan around 2.8 GB of the 4.0 GB (what Linux leaves free for a model). No NPU. The Hailo AI HATs need the Pi 5’s PCIe connector.
More about this hardware
| Maker | Raspberry Pi |
|---|---|
| Type | Single-board computer or edge AI board |
| Share of memory for models | 70% (what Linux typically leaves free on a board this size) |
| Chip | Broadcom BCM2711 |
| AI accelerator | No NPU. The Hailo AI HATs need the Pi 5’s PCIe connector. |
| Boards with this chip | Raspberry Pi 4 Model B · Raspberry Pi 400 · Compute Module 4 |
| Memory type | LPDDR4-3200, 32-bit |
| Bandwidth figure | 12.8 GB/s, the chip’s rated memory speed |
| Note | 4× Cortex-A72 at 1.8 GHz (1.5 GHz on early boards). Its cores read memory far more slowly than a Pi 5’s, so we assume 30% of the rated speed (estimate): small models (1-3B) at a few tokens per second. Needs the 64-bit OS. The 1 GB version leaves too little memory for language models and isn’t listed. |
| Specifications | www.raspberrypi.com |
Apps that run models well on the Raspberry Pi 4 (4 GB)
Linux on ARM boards
1 product with the Raspberry Pi 4 (4 GB)
Best LLMs for the Raspberry Pi 4 (4 GB)
| Quality | Model | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 54Fair quality (C) · 54 of 100: how capable the model is at Q5_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking. | LFM3 1.7B | Q5_K_M | 2.2 GB | 3.1 tok/s | Slow |
| 50Fair quality (C) · 50 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 66/100 (quality, fit, speed and memory use) sets the ranking. | MiniCPM5 2B | Q3_K_M | 2.4 GB | 3.4 tok/s | Slowtight fit |
| 47Fair quality (C) · 47 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 65/100 (quality, fit, speed and memory use) sets the ranking. | LFM3-VL 2B | Q4_K_M | 2.1 GB | 3.4 tok/s | Slow |
| 46Fair quality (C) · 46 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 63/100 (quality, fit, speed and memory use) sets the ranking. | Spark-X2.6 4B | Q2_K | 2.8 GB | 2.6 tok/s | Very slowtight fit |
| 30Basic quality (D) · 30 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 62/100 (quality, fit, speed and memory use) sets the ranking. | Unlimited OCR 2 (3B-A0.6B) | Q2_K | 2.7 GB | 17.0 tok/s | Runs welltight fit |
| 39Basic quality (D) · 39 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 62/100 (quality, fit, speed and memory use) sets the ranking. | MiniCPM-OCR 1.0 1.3B | Q4_K_M | 1.7 GB | 5.0 tok/s | Slow |
| 42Fair quality (C) · 42 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 62/100 (quality, fit, speed and memory use) sets the ranking. | TMax 4B | Q2_K | 2.8 GB | 2.6 tok/s | Very slowtight fit |
| 38Basic quality (D) · 38 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | MiniCPM-V 4.7 1B | Q4_K_M | 1.9 GB | 4.2 tok/s | Slow |
| 38Basic quality (D) · 38 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | TMax 2B | Q4_K_M | 2.1 GB | 3.5 tok/s | Slow |
| 28Basic quality (D) · 28 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | Unlimited OCR (3B-A0.6B) | Q2_K | 2.7 GB | 17.0 tok/s | Runs welltight fit |
| 38Basic quality (D) · 38 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | TeleOCR | Q4_K_M | 2.6 GB | 4.6 tok/s | Slowtight fit |
| 36Basic quality (D) · 36 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 60/100 (quality, fit, speed and memory use) sets the ranking. | LFM2.5 2.6B | Q3_K_M | 2.3 GB | 3.1 tok/s | Slow |
Best Image models for the Raspberry Pi 4 (4 GB)
| Quality | Model | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 28Basic quality (D) · 28 of 100: how capable the model is at FP16, whatever it runs on. Match score 56/100 (quality, fit, speed and memory use) sets the ranking. | SD Turbo | FP16 | 2.6 GB | 21 s | Runs welltight fit · encoder unloaded after use |
| 42Fair quality (C) · 42 of 100: how capable the model is at FP16, whatever it runs on. Match score 54/100 (quality, fit, speed and memory use) sets the ranking. | Realistic Vision V5.1 | FP16 | 2.5 GB | 5.2 min | Very slowtight fit · encoder unloaded after use |
| 40Fair quality (C) · 40 of 100: how capable the model is at FP16, whatever it runs on. Match score 53/100 (quality, fit, speed and memory use) sets the ranking. | DreamShaper 8 | FP16 | 2.5 GB | 5.2 min | Very slowtight fit · encoder unloaded after use |
| 30Basic quality (D) · 30 of 100: how capable the model is at FP16, whatever it runs on. Match score 52/100 (quality, fit, speed and memory use) sets the ranking. | LCM DreamShaper v7 | FP16 | 2.5 GB | 65 s | Slowtight fit · encoder unloaded after use |
| 50Fair quality (C) · 50 of 100: how capable the model is at FP16, whatever it runs on. Match score 51/100 (quality, fit, speed and memory use) sets the ranking. | PixArt-Σ XL 1024 | FP16 | 2.3 GB | 8.0 min | Very slowCPU offload |
| 35Basic quality (D) · 35 of 100: how capable the model is at FP16, whatever it runs on. Match score 51/100 (quality, fit, speed and memory use) sets the ranking. | Stable Diffusion 1.5 | FP16 | 2.5 GB | 5.2 min | Very slowtight fit · encoder unloaded after use |
Best Video models for the Raspberry Pi 4 (4 GB)
| Quality | Model | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 35Basic quality (D) · 35 of 100: how capable the model is at FP16, whatever it runs on. Match score 43/100 (quality, fit, speed and memory use) sets the ranking. | AnimateDiff v3 (SD 1.5) | FP16 | 2.6 GB | 1.8 h | Very slowtight fit · CPU offload |
Best Decision models for the Raspberry Pi 4 (4 GB)
| Quality | Model | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 86Excellent quality (A+) · 86 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 80/100 (quality, fit, speed and memory use) sets the ranking. | Jina Reranker v3.5 | Q8_0 | 1.7 GB | 10.4 s | Very slow |
| 84Great quality (A) · 84 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking. | Jina Reranker v3 | Q8_0 | 1.7 GB | 10.4 s | Very slow |
| 78Great quality (A) · 78 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 79/100 (quality, fit, speed and memory use) sets the ranking. | OpenAI Privacy Filter | Q8_0 | 2.4 GB | 468 ms | Slowtight fit |
| 80Great quality (A) · 80 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 78/100 (quality, fit, speed and memory use) sets the ranking. | GLiNER2.5 Decide | Q8_0 | 1.2 GB | 4.5 s | Very slow |
| 80Great quality (A) · 80 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. | FRIDA-Decisions | Q8_0 | 1.7 GB | 7.6 s | Very slow |
| 80Great quality (A) · 80 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. | Qwen3 Reranker 0.6B | Q8_0 | 1.7 GB | 10.4 s | Very slow |
| 81Great quality (A) · 81 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 77/100 (quality, fit, speed and memory use) sets the ranking. | mxbai-rerank-large v2 | Q6_K | 2.1 GB | 26.6 s | Very slow |
| 76Great quality (A) · 76 of 100: how capable the model is at Q8_0, whatever it runs on. Match score 76/100 (quality, fit, speed and memory use) sets the ranking. | Llama Prompt Guard 2 86M | Q8_0 | 1.0 GB | 5.2 s | Very slow |
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.
