A €200 mini PC as an offline AI box: a week with Gemma and Qwen
- Hardware
- NiPoGi P1 mini PC: Ryzen 3 3300U (4 cores, 15 W), Radeon Vega 6 integrated GPU sharing system RAM, 16 GB DDR4, 512 GB SSD
- Models & engines
- Ollama 0.35.0 with gemma4:e4b (6.6 GB) and qwen2.5-coder:7b (4.7 GB), default 4-bit tags
- Key gotcha
- Thinking mode is on by default for Gemma 4 in Ollama and made a greeting produce 192 tokens instead of about 10.
What they built
The author bought a NiPoGi P1 mini PC for €200 (AMD Ryzen 3 3300U, integrated Radeon Vega 6, 16 GB DDR4) and set it up to serve two open models with no internet access at all: Gemma 4 E4B for general questions and Qwen2.5-Coder 7B for code.
The models run in a Debian 13 container on Proxmox with 4 cores, 10 GB of RAM and the integrated GPU passed in. His Mac talks to the box over the home network, either from the terminal with the Ollama client or in the browser through Open WebUI.
"Offline" here means a firewall rule: the box sits on the home network but has no route out, so prompts go from the Mac to the mini PC and nowhere else. Updates mean switching the firewall off on purpose, updating, and switching it back on.
Setup
- NiPoGi P1 mini PC: Ryzen 3 3300U (4 cores, 15 W), Radeon Vega 6 integrated GPU sharing system RAM, 16 GB DDR4, 512 GB SSD
- Proxmox VE with a Debian 13 container (4 cores, 10 GB RAM, iGPU passed in)
- Ollama 0.35.0 with gemma4:e4b (6.6 GB) and qwen2.5-coder:7b (4.7 GB), default 4-bit tags
- Mesa Vulkan drivers for the integrated GPU, Open WebUI in Docker on port 3000, ufw denying all outgoing traffic
How it works
- A systemd override sets OLLAMA_HOST=0.0.0.0:11434 so the Mac can reach it, keeps only one model loaded and one request at a time, unloads after 15 idle minutes, and enables the integrated GPU with OLLAMA_IGPU_ENABLE=1.
- ufw denies all incoming and outgoing traffic by default and only allows SSH, the Ollama API and Open WebUI from the home subnet, plus DHCP renewals.
- On the Mac, OLLAMA_HOST points at the mini PC and a small fish function opens a Gemma chat with thinking off and --verbose speed stats.
Results & numbers
- Generation on CPU was 5.5 tokens/s for both models; with Vulkan Gemma rose to 8.1 tokens/s while Qwen dropped to 4.5, but Qwen's prompt reading went from 10.0 to 27.7 tokens/s.
- Answering "Olá" took about 25 seconds with Gemma's thinking mode on and about 2 seconds with it off.
- His verdict after a week: worth it for quick questions, privacy and small pieces of text or code, but too slow for daily work, long conversations or agents.
Gotchas
- Thinking mode is on by default for Gemma 4 in Ollama and made a greeting produce 192 tokens instead of about 10.
- Open WebUI attached its built-in tool descriptions to every message, turning "Olá" into 2,051 input tokens and about 55 seconds of prompt reading; he unticked those capabilities and turned off tag generation, follow-up suggestions and autocomplete.
- Only one model fits in memory, so switching between Gemma and Qwen costs 10 to 20 seconds.
- Ollama's API has no authentication: the firewall keeps the internet out, but anyone on the home Wi-Fi could use the models.
- More RAM lets you load bigger models but doesn't speed up generation; a single RAM stick (single channel) halves bandwidth, so check with dmidecode.
“On slow hardware, the size of the prompt matters more than the size of the answer.”— Diogo Soares
Do it yourself
- Install Ollama on a spare Debian or Ubuntu machine with the official installer while it still has internet.
- Optionally install mesa-vulkan-drivers and vulkan-tools and check the integrated GPU shows up with vulkaninfo --summary.
- Pull your models, for example gemma4:e4b and qwen2.5-coder:7b.
- Add a systemd override with OLLAMA_HOST=0.0.0.0:11434, OLLAMA_MAX_LOADED_MODELS=1, OLLAMA_NUM_PARALLEL=1, OLLAMA_KEEP_ALIVE=15m (and OLLAMA_IGPU_ENABLE=1 for the iGPU), then restart Ollama.
- Test from another computer with curl http://<box-ip>:11434/api/tags.
- Optionally run Open WebUI in Docker with --network host, then turn off thinking and the built-in tools for small models.
- Set ufw to deny incoming and outgoing by default, allow ports 22, 11434 and 3000 from your home subnet only, and confirm curl to the internet fails.
ufw default deny incoming
ufw default deny outgoing
ufw allow from 192.168.1.0/24 to any port 22 proto tcp
ufw allow from 192.168.1.0/24 to any port 11434 proto tcp
ufw allow from 192.168.1.0/24 to any port 3000 proto tcp
ufw allow out 67/udp
ufw enableSimilar setups
OzAI: a self-hosted ChatGPT on a 16 GB MacBook with Ollama, LiteLLM and Open WebUI, and what broke
A DevOps engineer served Qwen3 8B and Qwen2.5-Coder 3B from one M1 Pro laptop as a small private platform with per-user keys, rate limits, local web search and IDE chat, and documented seven silent failures.
Home RAG assistant for embedded-systems docs on Proxmox
Ollama, llama.cpp, Open WebUI, BGE-M3 and SearXNG in a GPU-passthrough VM. Moving from 6 GB to 16 GB of VRAM changed which models could run.
A 4B local model on a 4 GB laptop GPU as a PASS/FAIL test evaluator
Qwen3 4B Instruct in Ollama (Docker, WSL2) grades a Spring Boot app's root-cause answers against expected ones, returning a JSON verdict, with every speed and memory number measured on a 4 GB Quadro T1000.
PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU
WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.