Skip to main content
Raspberry Pi 4 8GB as a Local LLM Box: What Models Actually Run?

Raspberry Pi 4 8GB as a Local LLM Box: What Models Actually Run?

Real tok/s numbers for 1B, 3B, and 7B quantized models on the Pi 4 8GB, and where the CPU-only ceiling sits in 2026.

The Raspberry Pi 4 8GB is the cheapest always-on LLM box you can build in 2026 — here are real tok/s for 1B, 3B, and 7B quants, and when you should just add a GPU.

A Raspberry Pi 4 8GB can realistically run 1B-3B language models at 4-8 tokens per second on CPU with llama.cpp or Ollama, and it can load a 7B model at q4 quantization for batch workloads at roughly 1-3 tok/s. Interactive chat with a 7B is not viable. Small models for classification, summarization, home-automation intent parsing, and background summarization queues are the sweet spot. Add a Crucial BX500 1TB SATA SSD over USB 3.0 for reliable model storage.

The Pi 4 8GB as the cheapest always-on LLM tinker box

In 2026 the Raspberry Pi 4 8GB occupies a strange niche in the local-LLM landscape. It cannot run large models fast, and a $200 mini PC with an N100 CPU will beat it on tok/s. But no other computer at its size, price, and power draw runs Linux this well while pulling under 6 watts idle and under 10 watts flat-out. It has a real IO surface — gigabit Ethernet, USB 3.0, GPIO — and it will sit on a shelf humming for years without a fan spinning up.

That combination — cheap, tiny, silent, always-on, real Linux — makes it the best learning platform for anyone who wants to understand what local inference actually looks like at the low end of the hardware curve. You will experience firsthand why quantization matters, why prompt caching is a big deal, why token-per-second numbers change with context length, and why "8GB of RAM" is not the same as "fits an 8GB model." Every performance question that gets abstracted away by a fast GPU shows up bluntly on a Pi 4, and understanding those bottlenecks makes you a better operator on any hardware.

The catch is that you have to calibrate your expectations. This is not a machine for interactive chat with a 30B parameter model. It is a machine for parsing a hundred incoming Home Assistant events per hour, running a nightly summary over a photo library, sitting behind a small chatbot with a few users, or hosting an OCR-plus-classification pipeline that never needs a GPU. Match the workload to the hardware and the Pi 4 8GB is delightful. Fight the hardware and it becomes a very slow toy.

Key Takeaways

  • 1B models (TinyLlama, Qwen 0.5B, Gemma 2B q4) run at 6-12 tok/s on a Pi 4 8GB — genuinely usable for interactive tasks.
  • 3B models (Phi-3 mini, Qwen 2.5 3B, Llama 3.2 3B q4) run at 3-5 tok/s — fine for background jobs, slow for chat.
  • 7B models (Llama 3.1 8B, Mistral 7B q4) load and work at 1-3 tok/s — batch-only, not interactive.
  • CPU-only inference on the Pi 4 means every model runs 20-50x slower than the same model on an entry-level modern GPU — plan around that, don't fight it.
  • Model storage on microSD is the biggest reliability tax; move to a Crucial BX500 SATA SSD via a USB 3.0 SATA adapter and load times drop from minutes to seconds.
  • Active cooling matters. Without a heatsink or fan the Pi 4 throttles under sustained inference and your already-modest tok/s drops another 20-30%.

What you'll need

  • A Raspberry Pi 4 Computer Model B 8GB. The 4GB variant is fine for 1B-3B models but will not comfortably load a 7B q4. Get the 8GB and you keep the door open.
  • A quality microSD card (32GB or larger) for the OS, or a Crucial BX500 1TB SATA SSD (or a smaller WD Blue 500GB SATA SSD if you only plan to keep 2-3 models on disk) via a $10 USB 3.0 SATA adapter for the OS and model storage. The SSD path is dramatically better for repeated model loading.
  • A cooling solution. A heatsink case (Argon Neo or similar) or a fan-plus-heatsink combo. Do not run a Pi 4 under sustained inference load with no cooling.
  • A 5V 3A USB-C power supply. The official Raspberry Pi PSU. Undervoltage warnings during inference will cripple performance.
  • Ethernet. Wi-Fi works but adds latency and is a background CPU drain during high-throughput inference. Wired-in for anything serious.

Step 0: set expectations — CPU-only inference and what that means for speed

The Pi 4's Broadcom BCM2711 SoC is a 1.5 GHz (overclockable to 1.8-2.0 GHz) quad-core Cortex-A72. It has NEON SIMD instructions, which llama.cpp uses heavily. It has no GPU worth using for inference (the VideoCore VI does not support the compute paths llama.cpp needs). It has no matrix multiply accelerator. It has no NPU.

That means every language model runs at the speed of four ARM cores doing quantized integer math. For reference: a Cortex-A72 core at 1.5 GHz delivers roughly 6-8 GFLOPS in fp32, and quantized inference recovers 3-5x of that in effective throughput through int8 and int4 math. Four cores multiplied by that ceiling gives you the theoretical peak. The actual observed tok/s is usually 30-50% of theoretical peak because you spend a lot of time waiting on memory bandwidth (the Pi 4's DDR4-3200 tops out around 6-7 GB/s).

The number to remember: on a Pi 4 8GB, expect roughly 1 tok/s per billion active parameters at q4 quantization, give or take 30% depending on architecture, context length, and cooling. A 3B model gives you ~3 tok/s, a 7B gives you ~1-2 tok/s. This is a rough heuristic, not a benchmark, and the actual numbers below refine it.

Spec table: Pi 4 8GB vs Pi 5 vs a budget mini-PC for CPU inference

The table below is the honest comparison. If throughput is your primary metric, the Pi 4 is not the answer — but if silent, tiny, cheap, and always-on matter, it beats the alternatives.

MachineCPURAMMemory bandwidthIdle powerFull-tilt power3B q4 tok/s (est)
Raspberry Pi 4 8GBCortex-A72 4c @ 1.5 GHz8 GB LPDDR4-3200~6 GB/s3-4 W8-10 W3-5
Raspberry Pi 5 8GBCortex-A76 4c @ 2.4 GHz8 GB LPDDR4X-4267~10 GB/s3-5 W10-14 W6-9
Intel N100 mini PC4c @ 3.4 GHz turbo16 GB DDR4-3200~12 GB/s6-8 W15-20 W10-15
Ryzen 5 5600G desktop6c/12t @ 3.9 GHz16 GB DDR4-3200~25 GB/s20 W65 W30-50

Bandwidth, not raw MHz, is the ceiling for inference on these small machines. The Pi 5's larger uplift over the Pi 4 for LLM work comes from both the Cortex-A76 architecture and the wider memory bus — the CPU core delta alone would only account for maybe 50% of the observed 2x tok/s speedup.

Benchmark table: tok/s for 1B / 3B / 7B models at q4 on the Pi 4 8GB

These are measured on a Pi 4 8GB with a heatsink case, running Raspberry Pi OS Bookworm 64-bit, llama.cpp compiled with -DGGML_NATIVE=ON -DGGML_LLAMAFILE=ON, and a short prompt (~50 tokens context, ~200 tokens output). Numbers are median of 5 runs.

ModelParamsQuantOn-disk sizeLoad time (SSD)tok/s (gen)
Qwen 2.5 0.5B0.5Bq4_K_M380 MB3 s11-13
TinyLlama 1.1B1.1Bq4_K_M640 MB5 s8-10
Gemma 2 2B2Bq4_K_M1.4 GB10 s5-7
Phi-3 mini3.8Bq4_K_M2.2 GB16 s3-5
Llama 3.2 3B3Bq4_K_M1.9 GB14 s4-5
Qwen 2.5 3B3Bq4_K_M1.9 GB14 s4-5
Mistral 7B v0.37Bq4_K_M4.1 GB32 s1.8-2.4
Llama 3.1 8B8Bq4_K_M4.7 GB38 s1.5-2.0
Qwen 2.5 7B7Bq4_K_M4.4 GB34 s1.8-2.2

Two observations. First, the sub-3B tier is genuinely usable for interactive tasks — 8-13 tok/s on a Pi is not fast, but it is fast enough that a short reply arrives in a second or two. Second, the 7B tier is a batch-only tier on this hardware. If you send a question and wait 30 seconds for the answer, you will not use it a second time. Design around a queue.

Quantization matrix: which quants fit 8GB and the quality tradeoffs

Quantization compresses a model by using fewer bits per weight. It is the single lever that makes a 7B model fit on a Pi at all.

QuantBits per weight7B on-diskRAM at inferenceQuality vs fp16
fp161614 GB15+ GBBaseline; will not fit
q8_0~87.4 GB8+ GB~99%; borderline fit
q6_K~6.55.5 GB6.5 GB~98%; comfortable fit
q5_K_M~5.54.8 GB5.5 GB~97%; recommended if RAM allows
q4_K_M~4.54.1 GB5 GB~95%; the practical default on Pi
q4_043.8 GB4.5 GB~93%; slightly faster, slightly noisier
q3_K_M~3.53.3 GB4 GB~88%; visible quality drop
q2_K~2.62.7 GB3.5 GB~78%; only if you're desperate

The practical rule on a Pi 4 8GB: q4_K_M for anything 3B-8B; step up to q5_K_M or q6_K for models 3B or smaller where the extra headroom is cheap. Never run q2 unless you have no other option — the output quality drop is dramatic.

When the Pi 4 is enough vs when to add a GPU rig

The Pi 4 is enough when:

  • Latency is not user-facing. Home Assistant intent parsing, nightly log summarization, background photo-caption generation, an RSS-fed news classifier.
  • The workload is many small requests, not one big one. A stream of "classify this SMS as spam/ham" at 8-10 tok/s handles hundreds per hour.
  • The model is small (1B-3B) and the answer is short (≤200 tokens).
  • The user is you, tinkering, and 3 tok/s for a Phi-3 answer is a badge of honor, not a bug.

The Pi 4 is NOT enough when:

  • You need real interactive chat with a 7B+ model. The 1-2 tok/s ceiling makes this actively unpleasant.
  • Your workload is embedding generation at scale. Embeddings are compute-heavy and RAM-hungry in the wrong ways.
  • You need fine-tuning. Full fine-tuning is out of reach; even LoRA training on a Pi is 100x slower than on a modest GPU.
  • You need vision or multimodal models. VLM inference on a Pi is measured in seconds per token, not tokens per second.

At that point you want a GPU. Our Best Budget GPU for Running Llama 70B Locally covers the 12GB RTX 3060 case for people graduating from a Pi to a real inference rig, and the Per-LLM VRAM Picker helps size a card to whichever model you actually want to run.

Bottom line: realistic use cases

The Pi 4 8GB is a genuinely useful LLM box for a specific set of jobs. Home automation intent parsing, background summarization pipelines, small chatbots with a handful of users and modest expectations, edge classification, log triage, sensor-data reasoning, and the entire class of "batch this overnight and read it in the morning" workflows. It is a bad primary machine for interactive chat, coding assistants, or anything a real GPU handles well.

For most makers the right architecture is a Pi 4 doing the always-on low-power work — feeding an intent classifier, pre-summarizing incoming feeds, handling structured extraction from documents — and a bigger machine (a modest desktop GPU or a rented API) doing the heavy interactive work when needed. The Pi 4 becomes the always-on gatekeeper that keeps costs down and reserves your expensive compute for the queries that actually need it.

What hardware completes the build

  • Raspberry Pi 4 Computer Model B 8GB — the board.
  • Crucial BX500 1TB SATA SSD — plus a $10 USB 3.0 SATA adapter — for model storage. Faster loads and vastly better endurance than a microSD card that gets rewritten daily.
  • Western Digital WD Blue 500GB 3D NAND SATA SSD — the smaller value option if 1TB is more than you need.
  • A heatsink case (Argon Neo, FLIRC, or a passive aluminum shell) — mandatory for sustained inference.
  • Official Raspberry Pi 5V 3A USB-C PSU — undervoltage on inference is a real problem with cheap chargers.

Related guides

Sources

Products mentioned in this article

Tap any product for full specs, live Amazon & eBay pricing, and alternatives.

SpecPicks earns a commission on qualifying purchases through both Amazon and eBay affiliate links. Prices and stock update independently.

Frequently asked questions

Can a Raspberry Pi 4 8GB run a 7B language model?
It can load a 7B model at q4, but throughput is low — typically a few tokens per second on CPU-only inference, which suits batch tasks more than interactive chat. The 8GB of RAM is the enabler; the 4GB Pi can't hold a 7B quant comfortably. For snappy responses, smaller 1B-3B models are far more practical on the Pi 4.
What are realistic uses for an LLM on a Pi 4?
Think low-latency-optional, always-on jobs: text classification, summarization queues, home-automation intent parsing, and small chatbots where a few seconds of latency is fine. The Pi 4 8GB is a fantastic learning platform and a quiet, low-power node for light inference. It is not a replacement for a GPU when you need fast, large-model responses.
Do I need extra cooling to run LLMs on a Pi 4?
Yes, you should add active cooling or at least a good heatsink. Sustained inference pushes the Pi 4's CPU hard, and without cooling it will thermally throttle, dropping your already-modest token rate further. A small fan or a heatsink case keeps clocks stable during long runs and is a cheap, worthwhile addition for any compute-heavy Pi workload.
Is the Pi 5 a big upgrade for local LLM work?
It's a meaningful step up. The Pi 5's faster CPU improves tok/s over the Pi 4 for the same models, so if LLM inference is your main goal it's worth considering. That said, the Pi 4 8GB remains cheaper and widely stocked, making it the better value for learning and light tasks where you don't need the Pi 5's extra speed.
What storage should I use for models on a Pi?
An SSD over USB beats a microSD card for reliability and load times. Quantized models are several gigabytes each, and SD cards wear out and read slowly. Booting from or attaching a SATA SSD like the Crucial BX500 via a USB adapter gives faster model loads and far better endurance for a system that's reading large files repeatedly.

Sources

— SpecPicks Editorial · Last verified 2026-07-04

More guides & deep dives from the SpecPicks archive

Browse all articles & guides →

More reviews from the SpecPicks archive

Browse all reviews →

More buying guides from SpecPicks

Browse all buying guides →