Posts

Don't Expose Your Inference Services to the Internet

Image
Ollama, llama-server and Open WebUI ship with no password — ready to use out of the box, which also means anyone who can reach them can use them. Where the risk is llama-server on :8080 and Ollama on :11434 are open APIs with no authentication. Once exposed to the internet, anyone can run models on your GPUs — and the chat history inside Open WebUI is there for them to read too. What to do Keep it on the local network only: services run on the LAN, reachable from home and office machines. Do not port-forward 8080 / 11434 / 3000 on the router — a forward puts them straight on the public internet. Need access while away → use a mesh VPN such as Tailscale or WireGuard: join your own network first, then connect to the services. No ports exposed directly. Open WebUI: after registering, set a strong password first and turn off open registration if it is on. In one line Local inference services are LAN tools by default. Before they touch the public internet, add a layer of authent...

Quantization: Q4, Q5, Q8 — Trading VRAM for Quality

Image
The same 32B model takes 19GB as Q4 and 34GB as Q8 — quantization is the trade-off between VRAM and quality. What quantization is It compresses weights from 16-bit float down to 4 / 5 / 8 bits. The model file gets smaller, VRAM use drops, and reading the weights gets faster. Generation speed is bound by bandwidth, so reading less also means running faster — quantization saves speed, not just VRAM. Three levels (32B) Quant VRAM use Character Q4_K_M ~19GB The default; small quality loss Q5_K_M ~22GB A little better quality, 3GB more Q8_0 ~34GB Near-original quality, double the VRAM How to pick VRAM is tight → Q4_K_M; get it running first. VRAM is fine and you want better quality → Q5_K_M. Benchmarking, or VRAM to spare → Q8_0. On small models (8B / 14B), the quality gap between Q4 and Q8 is even smaller — prefer Q4. One caution Quantization compresses weights, not the KV cache. Longer context still eats VRAM — a 32B model with 8K context uses about 23GB, 40K about 31.6...

10GbE Networking: Five Nodes, and Gigabit Is Not Enough

Once distributed serving runs, the bottleneck is not the GPU or the memory — it is the network cable: the onboard ports are only gigabit. Why gigabit is not enough Nodes constantly pass data back and forth: layer activations and weights travel between nodes. Gigabit Ethernet is 125 MB/s; 10GbE is 1.25 GB/s — 10× faster. When node-to-node transfers are slow, the whole pipeline slows down, no matter how fast the GPUs are. How to build it One 10GbE NIC per node (single port is enough), one 10GbE switch, and DAC cables between the nodes and the switch. DAC is the cheapest option for short runs and needs no optical modules; use fiber plus modules only for longer distances. What it costs Second-hand market prices as of 2026-11-28 — verify before buying: Item Rough price Used Mellanox ConnectX-3 10GbE NIC ~¥50–150 each DAC cable ~¥10–20 each MikroTik CRS305, new (4× SFP+) ~¥950 Used enterprise 4–8 port SFP+ switch ~¥100–400 Five nodes fully wired: under ¥300 at the extreme budge...

Add a Chat UI: Connect Open WebUI to llama-server

The command line runs models, but everyday chatting wants a web interface. Open WebUI connects to llama-server's OpenAI-compatible API in a few steps. The API first llama-server is itself an OpenAI-compatible API at http://server-ip:8080/v1. Ollama's API is at http://server-ip:11434. Open WebUI only needs one of them to chat. Install Open WebUI Docker needs to be installed first, then one command starts it: docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main Then open http://server-ip:3000 and register the first account — that account is the admin. Connect llama-server In Settings → Connections → OpenAI API, add a connection: set the URL to http://host.docker.internal:8080/v1 (when Open WebUI and llama-server run on the same machine) and put any value in the API key field — llama-server does not check it. Save, pick a model, and start chatting. Olla...

Troubleshooting: Won't Boot, Not Detected, Too Slow — Check These First

Image
Building the first node and running models, the same few problems come up again and again: it will not boot, something is not detected, or everything is slow. Check by symptom, most likely cause first. Will not boot (no POST) Check first Cause Board revision The H11DSi must be REV 2.x to support the EPYC 7532; REV 1.x will not POST CPU lock Dell / Lenovo PSB-locked CPUs only work in the vendor's own machines, not on a Supermicro board Memory type Must be ECC RDIMM server memory; ordinary desktop UDIMM is not recognized Memory seating 4 sticks per CPU, 4+4 split; wrong channels mean no boot or half the memory missing Only one CPU detected The memory split is wrong: each CPU must get 4 sticks. Re-seat 4+4 and boot again. GPU not detected Enable Above 4G Decoding in the BIOS first; then re-seat the card and check the power connectors are fully in. Model runs very slowly Check nvidia-smi first to confirm the model is really running on the GPU and has not fallen back to the...

The Power and Cooling Bill: What Five Nodes Cost Per Month

Image
Five nodes at full load draw 3–4kW, so power and cooling are the first bills that arrive once the cluster runs. The math first: at 3.5kW full load, one month is 2,520 kWh. The power bill 3.5kW × 24 hours × 30 days ≈ 2,520 kWh/month. At ¥0.55/kWh that is about ¥1,386/month — tariffs vary by region, so treat this as the estimation method, not your bill. Usage Monthly use Monthly cost (at ¥0.55/kWh, estimate) One node, running 24/7 ~504 kWh ~¥277 Five nodes, 8 hours a day ~840 kWh ~¥462 Five nodes, 24/7 full load ~2,520 kWh ~¥1,386 A single node draws about 0.7kW — about 16.8 kWh a day, about ¥9/day. Idle draw is far lower; the real bill depends on how many hours a day the nodes actually run at full load. Cooling 3.5kW of electricity ends up as 3.5kW of heat — like three or four space heaters running at once. Summer is the hard season: without ventilation the room temperature keeps climbing, and fan speed and noise climb with it. Do not stack the nodes in a closed cabinet; l...

Picking a Model: 8B, 14B, 32B, 235B — Which Card Runs Which

Image
For local models, the card sets the ceiling and the job sets the floor. The table below is organized by this site's cards; all speeds are estimates, to be replaced with measurements from the first node. Pick by card Card Models that fit Speed (estimate) RTX 2060 12G Qwen3 8B, Qwen3.5 9B, Gemma 4 12B, Qwen3 14B ~20–45 tokens/s RTX 3080 Qwen3 8B (fast), Qwen3 14B (needs the 12G version) 8B ~60–100 tokens/s; 14B ~20–40 tokens/s Dual card 2060 + 3080 Qwen3 32B / 27B / 30B MoE ~15–25 tokens/s 256GB-memory node Qwen3-235B MoE (Q4, ~145GB) To be measured V100 32G (not owned, candidate) Qwen3 32B, 30B MoE 32B ~24 tokens/s; 30B MoE 4K context ~106 tokens/s RTX 3090 24G (not owned, candidate) Qwen3 32B ~41 tokens/s Pick by job Everyday chat and writing → 8B / 14B, fast and good enough. Coding and hard reasoning → 32B, slower but smarter. The hardest reasoning → 235B MoE, with enough memory to hold it. Do not forget context Longer context eats more VRAM: a 32B model with 8K ...