THE INFERENCE RIG

Local GPUs and one router, so I own the token supply

Infrastructure EngineerLocal GPU cluster / Ollama / custom router2025 — NOW

The Problem

The Inference Rig runs agent workloads on local GPUs through a custom router. It supports classification, routing, draft scoring, alert triage and embedding queries without per-call API charges or sending inputs to the cloud.

Repetitive agent work made cloud costs unpredictable. Sensitive workloads also required local processing.

I already had GPUs; the question was whether open-weights models could meet the workloads' quality requirements.

SYSTEM DIAGRAM — CONSUMERS, ROUTER AND SEPARATE GPU POOLS

The Solution

A custom router distributes requests across local inference capacity. Applications use one interface, keeping the underlying infrastructure separate from the workflows that depend on it.

A mid-size open-weights model handles interactive classification, vetting and draft generation. A larger model handles heavier reasoning.

Own your tokens: no per-call cost, no privacy boundary crossed, and no vendor outage spilling into agent downtime.

Image generation and inference run concurrently without competing for VRAM.

Craft Details

The quantization tradeoff. Aggressive quantization ran faster but produced unusable output for downstream agents. A quality-preserving configuration met their needs: raw throughput alone was the wrong benchmark.

The context-window lesson. The default context window silently truncated longer prompts, causing malformed outputs. Sizing it to real workloads fixed the failures and established the need for explicit context-window contracts.

vLLM and the pragmatism decision. I evaluated vLLM for batching and throughput, but it lacked support for the model families in use at the time. I shipped with Ollama.

The router. The router gives applications a consistent way to request inference. It keeps the service reachable during backend reloads and restarts, so maintenance does not require changes in each consuming application.

Stack

Local GPU clusterOllamaVirtualizationCustom RouterLinux servicesOpen-weights modelsLong-context serving

Result

The rig now supports classification, routing, draft scoring, alert triage and embedding queries locally. These workloads run without per-call API charges or sending their inputs to the cloud.

Cloud cost savings remain unquantified because no pre-switch baseline was recorded. Synthetic end-to-end events verified cloud-independent alert triage without per-call charges. Power use and utilization remain unmeasured.

Image batches and agent traffic run concurrently without VRAM contention or queue stalls; each workload can reach its hardware capacity.

Pick the model that fits your VRAM, your hardware and the context window your agents actually need, even when it isn't the biggest one.