Posts

Showing posts from November, 2026

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 ...

Running 70B: GPU + Memory Offload, Explained

Image
A 12GB card cannot hold 70B: a Q4 quant of Qwen3-70B is about 40GB. But this site's first node has 64GB of memory, so a GPU + memory mix (offload) can run 70B — some layers on the GPU, the rest in system memory computed by the CPU. Ollama spills into memory automatically; llama.cpp lets you control how many layers go to the GPU with -ngl, leaving the rest on the CPU. Why it is slow It is the same bandwidth formula: speed ceiling ≈ bandwidth ÷ model size. Weights sitting in system memory travel over memory bandwidth, an order of magnitude slower than VRAM bandwidth. A ~40GB model divided by a few tens of GB/s of memory bandwidth leaves single-digit tokens/s — this site estimates a few tokens/s. When it is worth it Worth it: trying out 70B answer quality, offline batch jobs, long reasoning runs with no deadline. Not worth it: everyday real-time chat — you would wait forever for each reply. The counterintuitive part With enough memory, 235B MoE actually runs faster than dens...

llama.cpp Dual-GPU 32B: Two Cards, One VRAM Pool

Image
Ollama is the fastest way in; llama.cpp is the more controllable way. Once Ollama runs, the next step is using llama.cpp to pool two cards and run 32B: the model file, the context size, and how many layers go to the GPU are all yours to set. Two cards pool their VRAM: an RTX 2060 12G + RTX 3080 combine into 22–24GB under llama.cpp, and a Q4 quant of Qwen3-32B is about 19GB — it just fits. One command to run it llama-server -m Qwen3-32B-Q4_K_M.gguf -c 8192 -ngl 99 --port 8080 -m is the model file (GGUF format, usually downloaded from Hugging Face); -c 8192 sets an 8K-token context; -ngl 99 offloads all layers to the GPUs; --port 8080 is the service port. Once it is running, open http://your-server-ip:8080 in a browser to see the service; you can also call it through its API or connect a chat interface to it. Checks before you run Both cards must be detected: nvidia-smi should show the 2060 and the 3080. Card not detected → enable Above 4G Decoding in the BIOS. Do not max out t...

Five Machines, One Model: Getting Started with llama.cpp RPC

Image
When one machine cannot hold a model, there is no need to buy new hardware first: five machines can work as one. That is what llama.cpp RPC distributed serving is for. The idea One main node plus four worker nodes. The model is split by layer across each node's memory, and the main node schedules the work and collects the results. To the user it is still one service address and one model. The network is the key Nodes pass data to each other constantly, so 10GbE is ideal; gigabit Ethernet works too, but transfers between nodes become the bottleneck (practical judgement). Confirm the switch and network cards before going distributed. Count the power first Five nodes at full load draw about 3–4kW. At 3.5kW, 24 hours a day for 30 days is about 2,520 kWh (estimate) — multiply by the local tariff for the monthly bill. Distributed serving is on-demand: when no large model is running, there is no need to keep all five nodes on. When it is needed Needed: models above 70B that do no...

Why MoE Models Fit This Cluster: Run a 235B Model by Activating Only Part of It

Image
Qwen3-235B has 235B parameters, but each inference activates only about 22B of them — that is an MoE (Mixture of Experts) model, and the key to running very large models on this cluster. What MoE is An MoE model contains many "experts". For each token, a router activates only a few of them; the rest sit out the computation. The model's total parameter count is large, but only a small part does the work each time. Two numbers Metric Qwen3-235B Total parameters 235B Activated per inference About 22B Q4 quant size About 145GB (must fit in memory) Why it fits this cluster Memory decides whether a model fits; compute decides how fast it runs. The Q4 version of a 235B model needs about 145GB of memory to load, but its inference speed is closer to a 22B model than a 235B one — because only 22B is computed each time. So the right play for this cluster is: stack memory first, then run MoE models, rather than buying a bigger GPU first. Reference numbers On this site...

Memory Planning: From 64GB to 256GB Across Five Nodes

Image
Memory is the most underestimated part of this cluster: the GPU decides how fast a model runs, but memory decides whether it can run at all. Here is the current memory situation and plan for this site's five nodes. What we have On hand are DDR4-2666 ECC RDIMM 8GB sticks — 24 in total (192GB). 8 of them are confirmed by counting; the other 16 are from memory and still to be confirmed by counting at home. If there really are 24, they only fill 3 nodes: 8 sticks / 64GB per node, 4 per CPU (4+4 split); the remaining 2 nodes would still be short 16 sticks. Three rules It must be ECC RDIMM — ordinary desktop memory will not fit, and will not boot. 4 sticks per CPU, 8 per node, in a 4+4 split across the two CPUs' memory channels. Stop buying 8GB sticks: slots are worth more than sticks, and 8GB sticks will soon be the bottleneck. What an upgrade costs A single 32GB RDIMM is about ¥600–1,100 (estimate, prices move with the market); taking one node to 256GB (8 x 32GB) is about...

Ollama in 10 Minutes: Run Your First Local Model

Image
Ollama is the fastest way into local LLMs: one command to install, one more to start chatting with a model. This guide uses this site's first node (Ubuntu 24.04 + RTX 3080 / 2060). Install curl -fsSL https://ollama.com/install.sh | sh Check it worked: ollama --version Run your first model ollama pull qwen3:8b ollama run qwen3:8b The first line downloads the model locally; the second starts a chat. Type a question, hit enter, and the model answers on your own GPU — no internet needed once downloaded. Everyday commands Command What it does ollama list Show downloaded models ollama ps Show running models and VRAM use ollama run <model> Start / switch to a chat with a model ollama stop <model> Stop a running model, free its VRAM ollama rm <model> Delete a local model Let other devices on your network use it By default Ollama only listens on localhost. To let a phone or another computer reach it, start it with a listen address: OLLAMA_HOST=0.0.0.0 ol...

Why VRAM Bandwidth Matters More Than Compute: Where Local Inference Speed Comes From

Image
When people pick a card for local LLMs, they usually look at compute (TFLOPS) first. In practice, generation speed is limited by VRAM bandwidth. The numbers below are rough theoretical ceilings, not measurements. One token out means reading the whole model once An LLM generates text one token at a time. For each token, the full model weights are read from VRAM and computed over. So there is a simple ceiling: Speed ceiling ≈ memory bandwidth ÷ model weight size Compute only dominates the input-processing step (prefill). During generation, bandwidth calls the shots. That is why gaming cards often punch above their paper compute for inference — and why doubling bandwidth roughly doubles speed. Do the math on this site's cards GPU Memory bandwidth Qwen3 8B (Q4, ~4.9GB) speed ceiling Site estimate RTX 2060 12G 336 GB/s ~68 tokens/s ~36–45 tokens/s RTX 3080 760 GB/s ~155 tokens/s ~60–100 tokens/s The ceiling is theoretical — attention math, kernel overhead, and CPU involvement ...

Running Bigger Models: Four Steps from 14B to 235B

Image
From 14B to 235B, no need to get there in one jump. Four steps, cheapest first. Step 1 · Add memory 8 × 32GB sticks per node = 256GB: 70B can run as a GPU + memory mix, and a Q4 quant of Qwen3-235B MoE is about 145GB — it fits on a single node. 32GB sticks run ~¥600–1,100 each, so filling a node costs ~¥5,000–8,000. Don't buy more 8GB sticks to fill slots — slots are worth more than sticks. Step 2 · Think MoE MoE models are big on parameters but cheap on compute: Qwen3-235B only activates about 22B parameters per generated token. If the VRAM / memory can hold the weights, speed doesn't fall off with the 235B size — that is the key to running huge models on a big-memory machine. Step 3 · Add a GPU 3090 24G ~¥5,500–8,000, or V100 32G ~¥3,700–4,500 (see the buying post on this site). One more card gives 32B-class models much more speed and context headroom. Step 4 · Five-node RPC cluster Use llama.cpp RPC to run the five nodes as one machine for very large models. Two costs...

Buying: Which Card Next — V100 32G vs RTX 3090 24G

Image
The cluster needs one big-VRAM card. Two candidates, neither bought yet. Specs and market prices below. Prices are second-hand market rates as of 2026-11-23 — re-check before buying. Head to head Item V100 32G RTX 3090 24G VRAM 32GB HBM2 24GB GDDR6X Qwen3 32B speed (reference) ~24 tokens/s ~41 tokens/s Software support Winding down: CUDA 13 no longer builds for it, PyTorch only up to cu126 Mainstream support, drivers and frameworks keep up Cooling / output Passive cooling — add your own airflow; no video output Standard fan cooling, has video output Second-hand risk Retired datacenter cards, condition varies Many ex-mining cards — test the VRAM on arrival; PSU 850W minimum Price (2026-11-23) ~¥3,700–4,500 ~¥5,500–8,000 The V100 was only ~¥1,000–2,200 back in June — it has already gone through one round of price rises. In one line Cheapest big VRAM for inference-only work: V100. Least hassle, plus training and new frameworks: 3090. This site's own verdict waits for the f...

First-Node Build Guide (Condensed): Checklist, Three Pitfalls, Two Verification Steps

Image
The first node: dual-socket EPYC 7532 + Supermicro H11DSi. Checklist, three big pitfalls, two verification steps, and troubleshooting notes. A full build log will follow once the first node is done. Hardware checklist Part Spec / requirement Board Supermicro H11DSi, must be REV 2.x (see pitfall 1) CPU EPYC 7532 × 2, must be unlocked (see pitfall 2) Memory DDR4 ECC RDIMM 8GB × 8, 64GB total, 4+4 split across the two CPUs (see pitfall 3) GPU RTX 2060 12G + RTX 3080 PSU 1200W (headroom for dual CPUs + dual GPUs) OS Ubuntu 24.04 Three pitfalls to dodge before you build Pitfall 1 · Board revision The H11DSi must be REV 2.x to support the EPYC 7532 (7002 series). REV 1.x will not POST. Check the revision printed on the PCB before buying the board. Pitfall 2 · CPU lock EPYC has a vendor PSB lock: Dell- or Lenovo-locked CPUs only work in the vendor's own machines and will not POST on a Supermicro board. Confirm the CPU is the unlocked version before buying. Pitfall 3 · Memor...

Benchmarks: How Big a Model Can Each Card Run, and at How Many Tokens per Second

Image
Methodology first, numbers second Speeds below are estimates / public test references. The first node is not finished yet, so no measurements of my own exist. Once the machine is up, each figure will be replaced with a measurement from this site, with test conditions noted. Updated: 2026-11-23. RTX 2060 12G — ceiling: 14B Model Generation speed (estimate) Qwen3.5 9B ~37 tokens/s Qwen3 8B ~36–45 tokens/s Gemma 4 12B ~30 tokens/s Qwen3 14B ~20 tokens/s 12GB of VRAM with a 14B 4-bit quant is already near the limit; anything bigger needs memory offload, and speed falls off a cliff. RTX 3080 — bandwidth decides speed Local inference speed mostly comes down to memory bandwidth: the 3080 has 760 GB/s against the 2060's 336 GB/s, so the 3080 runs roughly 2× faster. The ceiling depends on the version: 10G tops out at 12B, 12G at 14B — and which version mine is, is still to be confirmed. Two cards, one pool (2060 + 3080, llama.cpp) llama.cpp pools the two cards into 22–24GB of ...

My Cluster: Five EPYC 7532 Nodes, Built from Scratch

Image
A cluster being built from scratch This site documents a five-node EPYC cluster going from bare hardware to running large models locally: how big a model each card can run, how many tokens per second, and every pitfall along the way — all measured on my own machines. Hardware list as of 2026-11-23. Everything listed is hardware I own. Where something is unconfirmed, it is labeled as such — no guessing. Hardware list Part Spec Status Board Supermicro H11DSi dual-socket × 5 Owned CPU AMD EPYC 7532 (32 cores / 64 threads) × 10 — 320 cores / 640 threads across the cluster Owned Memory DDR4-2666 ECC RDIMM 8GB × 24 sticks, 192GB total — 8 sticks confirmed, 16 more to be verified by counting at home 16 sticks to verify GPU RTX 2060 12G × 1 Owned GPU RTX 3080 × 1 (10G or 12G version unconfirmed) Version to confirm GPUs under consideration V100 32G, RTX 3090 24G — purchase options being compared Not owned Current status: first node being built If the memory really is 24 sticks, it ...