New Tool Radar

Local AI

How to Run Ollama on a Raspberry Pi

A Raspberry Pi 5 runs Ollama with the same one-line Linux installer — but only small 1–3B models fit its RAM, so pick the model by the Pi's memory, not by the model list.

Schematic diagram with three steps: confirm the Pi runs 64-bit ARM, install Ollama with the Linux installer, and pull a small 1B model.

A Raspberry Pi can run a real local model — just not the ones people ask about first. Ollama installs on ARM64 the same way as on x86 Linux, and the installer detects ARM automatically, so there is no special Pi download. What is Pi-specific is everything after the install: the Pi has no graphics card for inference, its RAM is the hard limit, and sustained inference is a sustained full-CPU load that makes the board hot. This guide is about those Pi-specific limits, not about whether your computer can run Ollama in general.

Check the board before you install

Check What the guides say What to do
64-bit OS Use 64-bit Raspberry Pi OS — 32-bit builds cannot address enough memory, and much AI tooling ships aarch64 binaries only Run uname -m; it should print aarch64
RAM vs. model size On a Pi, the model must fit in RAM along with the OS (roughly 1–1.5 GB overhead). A 4 GB board fits models up to about 2.5 GB; an 8 GB Pi 5 fits models up to about 6.5 GB On 4 GB, stick to 1B models; on an 8 GB Pi 5, 3B models run comfortably
Storage A Pi 5 with an NVMe HAT loads multi-gigabyte models in seconds instead of minutes, and avoids wearing out flash Prefer NVMe over an SD card for the models folder
Cooling Active cooling is mandatory: sustained inference is a sustained 100% CPU load, and without a fan the Pi throttles and throughput quietly halves; the Pi 5 throttles above 80°C Fit an active cooler, and watch temperature with vcgencmd measure_temp and throttling with vcgencmd get_throttled — 0x0 means no throttling has occurred

Install and pick a model that fits

Install with the same one-line Linux installer, which runs Ollama as a systemd service automatically:

curl -fsSL https://ollama.com/install.sh | sh

Then pull a small model. The guides agree on the practical range: 1–3B parameter models on a Pi 5 with 8 GB of RAM, at a few tokens per second — one guide reports 3–8 tokens per second for a 3B model on a Pi 5 with 8 GB. Good first pulls are ollama pull llama3.2:1b (about 0.7 GB in one guide’s figures) or ollama pull qwen2.5:1.5b (about 1 GB, and small enough for a 4 GB Pi). Run it with ollama run llama3.2:1b. Two tuning tips from the same guides: keep the context window modest, because a large context costs memory the Pi does not have to spare, and set OLLAMA_NUM_THREAD=4 on the Pi 5’s four cores, since oversubscribing threads makes things slower, not faster.

Try it: prove the Pi, not the model, is the limit

For a fictional example, on a Pi 5 with 8 GB, run uname -m and confirm it prints aarch64, then pull llama3.2:1b and ask it a short question. The reply arrives slowly — a few tokens per second is normal here, and it is fine for a script that classifies a sensor reading or summarizes a short log, but frustrating for interactive chat. During the run, vcgencmd get_throttled prints 0x0, which means no throttling has occurred; a non-zero value would mean the Pi has thermally or electrically throttled, and any speed you measured while throttled is meaningless. Expected result. We checked the ML Journey Raspberry Pi guide and the LinuxTools Raspberry Pi guide. We did not install Ollama on a Raspberry Pi.

Limits

Chat with 7B models and larger is impractical on a Pi — memory-bound, with painful latency — and training or fine-tuning is out of the question; train on a machine with a GPU and deploy the resulting small model to the Pi instead. An AI accelerator HAT does not speed up Ollama: accelerators run compiled vision-style models, not general language models, so do not buy one expecting faster chat. If you need fast interactive responses, large context windows, or models larger than 3B parameters, the Pi is the wrong tool and a desktop GPU machine is the upgrade. We did not test any model on a Pi ourselves.

Sources

See all