Local AI use cases with systemd

systemd is the service manager on most Linux distributions. Ollama's Linux installer runs it as a systemd service, which can be given resource limits and sandboxing.

8 real examples, each linked to its original source.

A CPU-only PDF question-answering API with Ollama, Qwen2.5 1.5B and ChromaDB

A developer who wanted to keep documents inside the private network built a small RAG app on a PC with no active GPU: PDFs are indexed into ChromaDB and a local FastAPI endpoint answers questions with Qwen2.5 1.5B on Ollama.

DEV Community (RafterKode) · 2026-12-03

A private OpenAI-compatible LLM API on an AMD GPU with llama.cpp

A Vietnamese developer's notes on building llama.cpp for AMD cards, choosing between Vulkan and ROCm, and running llama-server as a locked-down systemd service that existing OpenAI SDK code can call.

DEV Community (EME GUG) · 2026-11-27

Switching two local GGUF models on a home server from Telegram

A personal assistant on a VPS uses a home server's RTX 3060 through llama.cpp, and its owner added a second local model and a Telegram /model switch, fixing OOM builds, GPU numbering and 64k context on the way.

DEV Community (metis atelier) · 2026-11-24

A Discord bot that answers with Qwen 2.5 3B on a CPU-only VPS

A Discord bot developer runs Ollama with Qwen 2.5 3B on the same 6-core VPS as the bot, with no GPU, so /ask answers and first ticket replies never go to a third party.

DEV Community (StellarDev) · 2026-11-24

A homelab llama-server on Fedora that runs as a systemd service and swaps models on demand

A homelabber's notes on keeping llama.cpp's server running on a Fedora VM with a systemd user unit, a fixed LAN address and a models folder, with Open WebUI as the chat front end.

mr-tinkerer (homelab notes) · 2026-11-04

Connecting a self-hosted Ollama server to WordPress, and why localhost fails

John Rotherham, who works on a WordPress SEO plugin, walks through pointing WordPress AI features at your own Ollama server instead of a cloud API key, including where Ollama must run, how to lock down its unauthenticated port, and how to test from PHP.

John Rotherham (DEV Community) · 2026-10-22

Four 125B-748B open models on one RTX 5090 and 128 GB of RAM, benchmarked side by side

Seppe Gadeyne runs Qwen3.8-Flash-Next, Ornith-1.5-122B, GLM-5.3-Flash and DeepSeek-V4.1-Flash on a single RTX 5090 workstation and measured all four in one night for speed, long context, memory and quality on nine tasks from his own day job.

Seppe Gadeyne (DEV Community) · 2026-10-22

Hardening a two-GPU Ollama server with systemd: 9.2 UNSAFE to 1.4

A homelab write-up that adds measured memory and CPU limits, restart policy and sandboxing to Ollama through systemd drop-ins on a server with two RTX 5060 Ti cards, testing after every round that the GPUs still work.

Gancho Stoychev (gshell.dev) · 2026-10-19