# Raspberry Pi LLM server: what runs, real speeds, and using it as an AI node

A Raspberry Pi won't run a 70B model, but it can be a surprisingly useful little AI server for small chat models, embeddings, guard models and speech. Here's what a Raspberry Pi LLM server can really do, measured speeds on a Pi 4, and how to use it from anywhere or put it to work as a node.

Published 2026-11-26 · https://inpherio.co.uk/blog/raspberry-pi-llm-server

Key points:
- On a 2 GB Raspberry Pi 4, measured speeds were 10.5 tok/s for FunctionGemma, 7.0 for Qwen3Guard 0.6B and 4.2 for SmolLM2 360M.
- An embedding with EmbeddingGemma 2 270M took about 227 ms on the same Pi.
- Stick to models under about 1 GB on a 2 GB board; a Pi 5 with 8 GB opens up 3B to 4B models at low speed.
- Piper voices and small embedders are where a Pi is genuinely useful.
- The connector runs on 64-bit and 32-bit Raspberry Pi OS and other ARM boards, so a Pi can be reached by API or listed as a node.

There's a lot of hype about AI on a Raspberry Pi and not many real numbers. The short version: a Pi is a great home for small, focused models and speech, and the wrong place for a general chatbot. Here's what a Raspberry Pi LLM server can do, with speeds measured on a real board.

## Measured speeds on a Raspberry Pi 4 (2 GB)

These come from per-model benchmarks on a Raspberry Pi 4 Model B with 2 GB of memory, CPU only, running Ollama:

| Model | Type | Measured |
|---|---|---|
| FunctionGemma | Function calling | 10.5 tokens a second |
| Qwen3Guard 0.6B | Safety classifier | 7.0 tokens a second |
| SmolLM2 360M | Small chat | 4.2 tokens a second |
| EmbeddingGemma 2 270M | Embeddings | about 227 ms per embedding |

Those are usable for the right jobs. A function-calling model that turns "lights off in the kitchen" into a JSON call at 10 tokens a second is fast enough for a home assistant. An embedding in a quarter of a second is fine for indexing your notes overnight and answering searches. A general chat model at 4 tokens a second is slow enough to be frustrating. Compare that with an old laptop in our [old-laptop guide](/blog/run-an-llm-on-an-old-laptop-with-512mb-4gb-of-ram-the-honest-guide).

(Live on Inpherio: https://inpherio.co.uk/models/functiongemma:latest)

## What fits on which Pi

- **Pi 4 or Pi 5 with 2 GB:** models under about 1 GB in Q4: SmolLM2, FunctionGemma, Qwen3 0.6B-class guard models, small embedders.
- **4 GB:** 1B to 1.7B models such as Llama 3.2 1B and Qwen3 1.7B, at a few tokens a second.
- **8 GB to 16 GB Pi 5:** 3B to 4B models will load; expect low single-digit speeds.
- **Pi Zero and 32-bit boards:** speech and very small models only.

Use Q4 quants, a fast microSD or better an SSD over USB 3, and active cooling: the Pi throttles quickly under sustained load.

## Setting it up

1. Use 64-bit Raspberry Pi OS.
2. Install Ollama (`curl -fsSL https://ollama.com/install.sh | sh`) or build llama.cpp.
3. Pull a small model: `ollama pull smollm2:360m` or `ollama pull functiongemma`.
4. For speech, add Piper for text-to-speech; Whisper tiny or base for transcription.

## The jobs a Pi does well

- **Home-assistant intent parsing** with a function-calling model.
- **A home RAG index**: embed your documents slowly, search them quickly.
- **Text-to-speech** with Piper voices, which were built for this class of hardware.
- **Guard and classification models** in front of a bigger model elsewhere.
- **An always-on box** that costs a few watts.

## Tuning a Pi for LLMs

- **Use an SSD.** Loading a model from a slow microSD card can take longer than answering. A USB 3 SSD makes cold starts much quicker and is kinder to the card.
- **Cool it.** A Pi under sustained load throttles its clock. A fan case or a heatsink with a fan keeps speed steady.
- **Keep the model loaded.** On a small board, reloading is the slowest part. Keep one model warm rather than switching between several.
- **Short contexts.** Each extra token of context costs memory and time. Keep prompts and history short.
- **Use the official power supply.** Under-voltage also throttles the board, and the symptoms look like a slow model.

## Pi 5 versus Pi 4

A Pi 5 has a faster CPU and more memory bandwidth than a Pi 4, so the same small model runs noticeably faster, and 8 GB or 16 GB boards can load 3B to 4B models. It's still a CPU-only machine for LLMs: if you want 7B models at chat speed, a used mini PC or an old gaming GPU is better value. Where the Pi 5 shines is as a quiet, low-power box for speech, embeddings and small task models that run all day.

## A home assistant stack on one Pi

A practical setup: Whisper tiny for short voice commands, FunctionGemma to turn them into actions, Piper to speak the reply, and EmbeddingGemma 2 to search your household notes. Each model is small enough to share the board, as long as only one runs at a time. That's a fully private assistant that never needs the cloud.

## Power and running costs

A Raspberry Pi draws a few watts at idle and not much more under load, which is why it's attractive as an always-on AI box. Even running all day, its electricity use is a small fraction of a desktop PC with a GPU. The trade-off is speed: you're paying in waiting time rather than watts.

## Reaching your Pi from anywhere

Rather than forwarding ports, install the [connector](/connector). It supports Raspberry Pi boards (64-bit, 32-bit and Zero) and other ARM boards, dials out over an encrypted link, and with [self-serve](/self-serve) gives your Pi its own OpenAI-compatible API key at £0, usable from your phone or any server. Our [remote Ollama guide](/blog/access-ollama-remotely-without-port-forwarding) explains the options.

## Can a Raspberry Pi earn?

A Pi can be listed like any other machine. Every model is benchmarked on it before it gets traffic, and requests go to the host with the best mix of loaded models, health, price and speed. A Pi will only win requests for small models where it competes, so treat any earnings as a bonus rather than a reason to buy one. If you have a desktop GPU too, that's where hosting pays; our [GPU earnings guide](/blog/make-money-with-your-gpu-hosting-ai-models) has the fees.



The Pi is the cheapest way to have a private, always-on AI helper in the house, as long as you give it small, specific jobs.

## FAQ

**Can a Raspberry Pi run an LLM?** Yes, small ones. On a 2 GB Pi 4, models under about 1 GB run at roughly 4 to 10 tokens a second. Larger boards with more memory run 3B to 4B models slowly.
**Is Ollama available for Raspberry Pi?** Yes, on 64-bit Raspberry Pi OS. llama.cpp also builds and runs well on the Pi's ARM cores.
**What's a Raspberry Pi good for in local AI?** Small chat and function-calling models, embeddings for a home RAG index, guard models, text-to-speech with Piper, and wake-word or small Whisper transcription.
**Can a Raspberry Pi earn as an AI node?** It can be listed like any machine, with every model benchmarked first. It will only win requests for small models where its speed and price compete, so treat earnings as a bonus.
