← Blog
·3 min

A home LLM on the public internet, from a PC and a router


I got a 27-billion-parameter language model running at home and made it reachable from the internet over HTTPS. No cloud needed — a PC and a Keenetic router were enough.

The model

Qwen3-27B in unsloth's UD-Q3_K_XL quant. The file is 13.2 GB and fits entirely in 16 GB of VRAM, with room left for context. The model "thinks" before answering, so it takes longer on hard questions — but answers noticeably better.

How it runs

The model runs in llama-server from llama.cpp (build b11247, CUDA) on an RTX 5070 Ti 16 GB.

  • All layers on the GPU.
  • 45K-token context.
  • Attention cache quantized to 8 bits — half the memory, almost no quality loss.
  • Flash attention on.

The API is OpenAI-compatible, so any client where you can change the base_url works. There's a built-in web chat too. For control I built a small Python panel: start and stop, live throughput, GPU load, and a log.

How it reaches the internet

llama-server listens on the home network and only accepts requests with an API key. Without the key, every request gets a 401.

Keenetic routers ship with a free service, KeenDNS, which hands you a domain like name.keenetic.pro. In the web-access rule I point the llm subdomain to the PC on port 8080. The router acts as a reverse proxy and issues a Let's Encrypt certificate itself. No ports are forwarded, and no nginx or VPS is involved.

client → HTTPS → Keenetic → home network → llama-server → GPU

Speed

Context fill Generation Prompt processing
empty 48 tok/s —
~6K tokens 46 tok/s 1600 tok/s
~28K tokens 41 tok/s 1430 tok/s
~42K tokens 38 tok/s 1270 tok/s

Over the domain the speed is the same, 47 tok/s, with the first token arriving in 0.4 seconds. A 1,000-token answer takes about 20 seconds. The model reads a 40K-token book in half a minute. The router's proxy costs almost nothing.

The main lesson: VRAM

My first measurement was 11 tok/s — four times slower. Steam, Docker Desktop, a VPN, a browser, and messengers were all running on the GPU at the same time. About 12 GB was left for the model, and Windows quietly spilled 2 GB of its data into regular RAM — after which every token had to travel across the PCIe bus.

I closed the extras and restarted the server, and throughput jumped from 11 to 48 tok/s — a 4–7× gain depending on context length. Across every measurement afterward, eviction stayed at 130 MB, meaning the model sits entirely in VRAM. That's why the panel now has a dedicated indicator: how much data has been evicted from video memory. If it isn't near zero, something is eating VRAM — and that's the first thing to fix.

Other things that surfaced

The Keenetic proxy drops any request that stays silent for more than ~60 seconds and returns a 504. A "thinking" model sometimes deliberates longer, so over the domain it's better to use streaming (stream: true) — the web chat does this by default. With streaming the first token arrives in 0.4 s, and the timeout never triggers.

Never open the server to the network without a key: it will be found quickly, and strangers will run your GPU for free.

Bottom line

A personal ChatGPT-like service on my own hardware: 40+ tokens per second, no data leaves the house, works from a phone. The only cost is electricity.

Сергей Гуськов
ML team lead. I write about models in production, the hardware under them, and what I build in the evenings.