Raspberry Pi 4 Model B

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

MakerRaspberry Pi
TypeSingle-board computer or edge AI board
Share of memory for models70% (what Linux typically leaves free on a board this size)
ChipBroadcom BCM2711
AI acceleratorNo NPU. The Hailo AI HATs need the Pi 5’s PCIe connector.
Boards with this chipRaspberry Pi 4 Model B · Raspberry Pi 400 · Compute Module 4
Memory typeLPDDR4-3200, 32-bit
Bandwidth figure12.8 GB/s, the chip’s rated memory speed
Note4× 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.
Specificationswww.raspberrypi.com

Apps that run models well on the Raspberry Pi 4 (4 GB)

For a typical model that fits in memory. Each model page picks the best app for that model on this hardware. All apps

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.7BLiquid AI 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 2BOpenBMB 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 2BLiquid AI 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 4BSparkLLM 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)Baidu 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.3BOpenBMB 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 4BAi2 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 1BOpenBMB 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 2BAi2 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)Baidu 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. TeleOCRXingChen-AGI 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.6BLiquid AI 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 TurboStability AI 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.1SG161222 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 8Lykon 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 v7Tsinghua (LCM) 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 1024PixArt 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.5Stability AI / Runway 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)Shanghai AI Lab 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.5Jina AI 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 v3Jina AI 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 FilterOpenAI 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 DecideFastino 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-DecisionsSber AI 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.6BAlibaba 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 v2Mixedbread 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 86MMeta Q8_0 1.0 GB 5.2 s Very slow

Best LLMs by task on this hardware Open in Model Finder

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.

Was this page helpful?