Guides · 9 min read

Local AI on a NAS

Which NAS (network attached storage) boxes can run a model, what a NAS without a graphics card can really do, how to install Ollama and Open WebUI on Synology, QNAP, TrueNAS and Unraid, and how to keep it private.

A NAS (network attached storage) is already switched on all day, has plenty of disk space and runs containers, so it makes a good always-on home for a small model and a chat page everyone in the house can open. It is a poor fit for big models: almost every NAS runs models on its CPU, and generation speed follows memory speed (bandwidth), not the number of drive bays. This guide covers which boxes qualify, what they can really run, how to set one up and how to keep it private. We have not run these steps on every NAS system ourselves; where a figure comes from a maker’s page, a published test or an owner’s report, we say so.

1. Check that your NAS qualifies

2. What a NAS without a graphics card can run

Measured figures for an actual Synology, QNAP or UGREEN unit are rare. The closest published test is Jeff Geerling’s Ollama benchmark of an Intel N150 mini PC with 16 GB, the same chip family as many current NAS boxes: Llama 3.2 3B at about 9 tokens per second and a 14B model at about 2, drawing 26 to 30 watts. A Ryzen AI 5 340 in the same test ran the 3B model at about 24 tokens per second, which is the class a Core i5 or Ryzen AI NAS belongs to. Our own figures on each hardware page are estimates from memory speed.

Memory in the NASModel size that fitsWhat to expect on a Celeron or N-series chip
8 GB1B to 3BUsable for short answers.
16 GB4B to 8BRoughly 2 to 9 tokens per second. Fine for background jobs, slow for chat.
32 GB or more14B and upIt fits, at about 2 tokens per second. More memory past 16 GB buys little without a faster chip or a graphics card.

3. Install Ollama and Open WebUI

The recipe is the same everywhere: two containers. Ollama runs the model and Open WebUI is the chat page with user accounts.

  1. Ollama: image ollama/ollama, a folder on the NAS mounted at /root/.ollama (the models live there), port 11434. The official command is docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama.
  2. Open WebUI: image ghcr.io/open-webui/open-webui:main, container port 8080 published as 3000, a folder mounted at /app/backend/data. The first account you create becomes the administrator.
  3. Join them: put both on one Docker network and set OLLAMA_BASE_URL=http://ollama:11434 in Open WebUI. Use the container name, not localhost and not https. With this layout you don’t need to publish port 11434 at all.
  4. Pull a small model first: ollama pull llama3.2:3b in the Ollama container’s terminal, or from Open WebUI’s admin settings.
  5. Check it: ollama run llama3.2:3b --verbose prints the speed in tokens per second, and ollama ps shows whether the model is on the CPU or a graphics card.

Where to click on each system:

Ollama is not the only choice. llama.cpp’s server, LocalAI and others publish container images too; see apps that run on a NAS.

4. Keep the models on an SSD

5. Leave memory for the NAS itself

Size the model against free memory, not installed memory: take off the NAS system, your other containers (Plex, Immich, Home Assistant, virtual machines) and the file cache. On TrueNAS the ZFS cache uses whatever memory is spare; it gives memory back under pressure, but file serving slows when it has to. Our NAS hardware pages already hold back a share of memory for this.

6. Keep it private

7. Adding a graphics card

A model that fits entirely in a card’s memory runs many times faster than on the NAS processor. Three things decide whether a card will work:

Each NAS product page says whether the unit has a usable slot. To choose a card, see choosing a graphics card. If your NAS has no usable slot, a mini PC or desktop with a graphics card beside it costs less than replacing the NAS.

8. Use the NAS as the model library or the front door

What to expect

See every NAS chip under Hardware and every unit under Products, with the models each can run and how fast. On a desktop or laptop, press Detect on My hardware; a NAS has no browser of its own, so pick yours from the list.

Was this guide useful?

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.