Yes — a Raspberry Pi 4 8GB can run local LLMs, but with a hard ceiling: think 1B–3B parameter models at q4 for a usable single-user chat, not a 14B assistant. The Pi 5 offers a real step up on the same class of workloads. An N100-class mini-PC beats both on raw throughput, and once you want interactive chat with 8B+ models the honest answer is to skip SBCs entirely and buy a GPU like the MSI GeForce RTX 3060 Ventus 3X 12G.
Why this question matters in 2026
The maker community has spent the last two years asking a very specific question: how small can you make a useful private AI assistant? A Pi 4 8GB is under $100, uses less than 10 watts under load, and slots into any home-automation stack. If it can run something useful — a home-lab summarizer, a voice-assistant intent classifier, a small chat model for kids' devices — then the local-AI story finally reaches ubiquitous, always-on hardware.
The answer, as of 2026, is more nuanced than either camp will admit. SBCs can run tiny models usably. They cannot pretend to be a workstation. The right framing is not "SBC vs GPU" but "which SBC or small-x86 box is the right tool for which class of model." Below we walk through the practical tiers, real-world tokens per second, quantization tradeoffs, and the moment you should stop upgrading the SBC and buy a proper GPU.
Key takeaways
- The Pi 4 8GB runs 1B–3B models at q4 usably; 8B is loadable but sluggish.
- The Pi 5 delivers a meaningful multiplier over the Pi 4 on the same models thanks to faster CPU and memory bandwidth.
- N100-class mini-PCs beat both Pis on raw generation throughput while staying under 20W typical.
- Beyond 8B models — especially for interactive chat — a 12GB GPU like the RTX 3060 is the right graduation.
- Cooling and fast USB SSD storage make a bigger difference than most SBC LLM setups appreciate.
What model sizes are realistic on 8GB of RAM?
The 8GB Pi 4 has 8GB total system memory shared between the OS, other services, and the model. In practice, you have about 5.5–6.5GB usable for the model plus KV cache after the OS and background services take their cut. That gives you the following rough tiers on CPU-only quantized inference:
| Model size | Practical quant on Pi 4 8GB | Fits comfortably? | Usable for chat? |
|---|---|---|---|
| 1B parameters | q4–q8 | Yes | Yes for simple tasks |
| 3B parameters | q4–q6 | Yes | Yes for straightforward chat |
| 7B parameters | q4 | Tight | Usable but slow |
| 8B parameters | q3–q4 | Very tight, requires care | Marginal; more waiting than chatting |
| 13B parameters | q3 | Barely | Not usable interactively |
If you want an interactive experience — read-alongside speed as the model generates — 1B–3B is the honest tier for the Pi 4 8GB. Anything bigger is technically loadable but crosses over into "batch job" territory rather than "chat."
Tokens per second — approximate community numbers
Local-LLM community benchmarks on the llama.cpp GitHub discussion threads and various maker blogs consistently report figures in the following ranges. Numbers vary by kernel, thermal throttling, quantization type, and which runtime is used, but the shape is stable:
| Model + quant | Pi 4 8GB (CPU) | Pi 5 (CPU) | N100 mini-PC (CPU) | RTX 3060 12GB |
|---|---|---|---|---|
| TinyLlama 1B q4 | ~10–14 tok/s | ~18–22 tok/s | ~30–40 tok/s | ~90+ tok/s |
| Phi 3B q4 | ~4–6 tok/s | ~8–10 tok/s | ~14–20 tok/s | ~60+ tok/s |
| Llama 3.x 7B q4 | ~1.5–2.5 tok/s | ~3–4 tok/s | ~5–8 tok/s | ~40+ tok/s |
| Llama 3.x 8B q4 | ~1–2 tok/s | ~2.5–3.5 tok/s | ~4–6 tok/s | ~35+ tok/s |
The Pi 5 roughly doubles the Pi 4 on the same models thanks to its stronger CPU and higher memory bandwidth. The N100 mini-PC lands 2–3× the Pi 5 on the same workloads. The RTX 3060 12GB is in a different class entirely — the point isn't that it's marginally better; it's that VRAM and parallel compute change the shape of what's runnable.
For context on "usable": text is typically read at roughly 5–8 tok/s comfortably. Anything above 8 tok/s reads as fluent. Anything below 3 tok/s reads as slow. That means a Pi 4 running a 7B model at ~2 tok/s technically produces output but is not interactive.
Board comparison table
| Board | RAM | CPU | Approx tok/s (3B q4) | Price range |
|---|---|---|---|---|
| Raspberry Pi 4 8GB | 8GB LPDDR4 | Cortex-A72 quad @ 1.5GHz | ~4–6 tok/s | $75–$95 |
| Raspberry Pi 5 (8GB) | 8GB LPDDR4X | Cortex-A76 quad @ 2.4GHz | ~8–10 tok/s | $80–$95 |
| N100 mini-PC | 8–16GB DDR4/DDR5 | Alder Lake-N quad @ up to 3.4GHz | ~14–20 tok/s | $130–$250 |
| RTX 3060 12GB desktop rig | 12GB VRAM + 16–32GB DDR4 | Any modern 6+ core CPU | ~60+ tok/s | $600–$1,000 for full build |
The Pi 4 stays in the mix in 2026 for one specific reason: it's cheap and it's the SBC most makers already own. If you have one on a shelf, spinning up an inference stack on it is a great learning exercise even if the tok/s ceiling is modest.
Quantization matrix on tiny SBC models
On CPU-only SBC inference, quantization tradeoffs are slightly different from GPU inference. Memory pressure matters more, but so does the CPU's ability to unpack the quantized weights efficiently. For a Pi 4 8GB running 1B–7B models:
| Quant | Approx RAM for 3B model | Speed impact on Pi 4 | Quality loss |
|---|---|---|---|
| q2_K | ~1.3GB | Slightly slower per-token | Noticeable — only for constrained use |
| q3_K_M | ~1.7GB | Baseline | Visible on complex reasoning |
| q4_K_M | ~2.0GB | Baseline | Modest — the SBC default |
| q5_K_M | ~2.4GB | Slightly slower | Small |
| q6_K | ~2.8GB | Slower | Small |
| q8_0 | ~3.5GB | Much slower on Pi 4 | Nearly imperceptible on simple tasks |
The practical Pi 4 pick is almost always q4 for anything bigger than 1B. It's the sweet spot between memory savings and quality retention. For 1B models, q6 or q8 is fine and looks nicer, but the speed penalty on ARM cores is real.
Prefill vs generation — where the wait actually is
On a CPU-only SBC, users often complain that "the model is slow" when the real experience is that prefill (initial prompt processing) is slow and generation is roughly linear from there. A 500-token prompt on a Pi 4 might take 30–60 seconds to prefill before the first output token appears, then generate at the tok/s rates in the table above.
Practical implications:
- Keep prompts short. Long system prompts eat SBC time visibly.
- Use RAG sparingly — if you inject 3–5 documents into every prompt, prefill will be the dominant experience.
- Consider streaming from the moment the first token is ready; do not wait for full completion.
- On the Pi 5 and mini-PC, prefill is faster, but the same principle applies.
For chat where the response is short and prompts are short, a Pi 4 8GB feels fine. For agentic loops with big prompts, it feels much worse than the raw tok/s numbers suggest.
Context length — running out of headroom fast
The KV cache scales linearly with context length. On an 8GB SBC, doubling the context roughly doubles the memory pressure for the cache, which can push a marginal setup into OOM territory.
Rough guide for a 3B model on Pi 4 8GB at q4:
- 2k context: ~200MB KV cache. Comfortable.
- 4k context: ~400MB KV cache. Comfortable.
- 8k context: ~800MB KV cache. Tight — watch for swap.
- 16k context: ~1.6GB KV cache. Not sustainable alongside the model and OS.
For agentic use cases that push toward 16k+ context, an 8GB SBC is not the tool. Either quantize the KV cache aggressively, drop to a smaller model, or move to a machine with more memory.
When should you graduate from an SBC to a GPU?
The honest threshold is when you want interactive chat with an 8B+ model. At that point no SBC keeps up, and you should look at a 12GB GPU. The math is fairly clean:
- Under 4B parameters, an SBC is genuinely fine.
- 4B–8B is Pi 5 or mini-PC territory, with tok/s slipping into "readable but slow."
- 8B+ interactively is GPU territory. Full stop.
If your workload is fitness assistant, home automation intent parser, small kids' chat model, RAG over a few dozen personal notes, or an embedded voice assistant, stay on the SBC.
If your workload is coding help, long-context research, agentic loops with heavy prompts, or general-purpose chat that must feel like a modern LLM, buy a GPU. The RTX 3060 12GB is the entry-level graduation path, and you can pair it with a fast storage drive like the WD_BLACK 250GB SN770 NVMe and a bulk SATA SSD like the Crucial BX500 1TB for the model zoo.
Our full self-hosted AI home lab writeup on the Pi 4 8GB covers the specific always-on configuration that plays to the SBC's strengths — small models, low power, home-automation-friendly integration — while our best GPU for LLM 2026 guide covers the graduation path.
Perf-per-watt — where SBCs shine
An SBC's real superpower is watts per token. A Pi 4 8GB under sustained inference draws roughly 5–7W. A Pi 5 draws 8–12W. An N100 mini-PC draws 15–25W typical. A desktop with an RTX 3060 12GB draws 250–400W during inference (system + GPU combined).
If you leave a model running 24/7 for home automation, an SBC is roughly 40–80× more efficient per token than the desktop GPU. That does not mean it's fast — it means that for always-on background workloads, the SBC economics are excellent. For interactive workloads where the human is waiting on the output, the wattage math flips: the GPU produces the answer in 5 seconds instead of 45, so total energy per answer is comparable, and human time is much better.
Match the tool to the shape of the workload:
- Always-on background LLM tasks → SBC.
- Interactive human-in-the-loop chat → GPU.
For extended sessions, the Raspberry Pi 4 8GB and its product page are the reference for the SBC path.
Common pitfalls on SBC LLM setups
- Running from a slow microSD card. Model loading takes forever, and any KV cache spillover thrashes storage. Always use a quality USB SSD.
- Skipping active cooling. Sustained inference throttles the CPU. A good heatsink or a small active cooler adds real tokens per second.
- Loading fp16 models when q4 fits. Memory is precious on SBCs; use the quantization that fits with headroom rather than the highest precision that "technically" works.
- Expecting cloud-scale performance. The Pi 4 is a $75 board. Comparing its throughput to a $2,000 GPU is not useful. Compare it to what you would otherwise use — often "nothing" or "a slow cloud call" — and it looks great.
- Ignoring context length. An 8k context on a small model on a Pi 4 is closer to the memory ceiling than beginners realize.
Verdict — which board for which use case
- Always-on home automation with a 1B–3B model: Pi 4 8GB. Cheap, low power, and the SBC most makers already own.
- Same use case with better responsiveness: Pi 5 (8GB). Roughly 2× the tok/s on the same models, similar power envelope.
- Small-to-mid model chat on a single always-on box: N100 mini-PC. Meaningfully faster generation, still under 20W typical, x86 compatibility helps runtime support.
- Interactive coding / research / agentic chat with 8B+: buy a RTX 3060 12GB rig. SBCs are not the tool.
For most makers, the honest sequence is: start with the Pi 4 8GB if you already own one, upgrade to the Pi 5 or an N100 mini-PC if you find yourself hitting the tok/s wall on tiny models, and jump to a GPU only when you want the model-quality tier that requires 8B+ parameters.
Bottom line
Local LLMs on SBCs are real and useful — for tiny models. The Raspberry Pi 4 8GB is a legitimate always-on host for 1B–3B chat and intent-classifier workloads. The Pi 5 tightens the tok/s picture. An N100 mini-PC widens what "tolerable on CPU" means. But the moment you want a modern-feeling LLM assistant, a 12GB GPU is not optional. Match the board to the model class, keep expectations honest, and the maker-scale local-AI stack works in 2026 without pretending an SBC is a workstation.
Citations and sources
- Raspberry Pi Foundation — Raspberry Pi 4 Model B product page
- llama.cpp GitHub — runtime and quantization reference
- Phoronix — SBC and ARM CPU inference benchmarks
This piece is editorial synthesis based on publicly available information. No independent first-party benchmarking is reported.
