Skip to main content

Running locally

First ask whether to run locally at all: data that must stay on your machine and offline use are the strongest reasons. Many tiny calls are often given as a reason too, but hosted small tiers are already cheap, so price them with the Model & API Radar first. Once you decide to run locally, check in turn whether it fits, which model, which runtime, which settings and how fast; how the KV cache grows with context is covered in the How LLMs work group, in Attention Variants and KV-Cache Compression.

Reading Order​

StepArticleYour job
1Single-Device Deployment: Weights, Memory and ContextDoes it fit: budget one device’s memory for weights, context and headroom.
2Local Models for Coding AgentsWhich model: start from model-card facts to list coding models worth trying locally.
3Local Inference RuntimesWhich runtime: choose an engine by model format, hardware, latency, throughput and security.
4Model Quantization: Precision, Size, and SpeedWhich settings: how low-bit numbers approximate weights, and what weight, activation and KV-cache quantization each save.
5Inference Performance: Loading, First Tokens, Decoding, and ThroughputHow fast: split a request into loading, prefill and decoding, and measure time to first token and throughput.
6Speculative Decoding: Drafting, Verification, and Real Speed GainsA little faster: a small model drafts, the large model verifies, and when that really speeds things up.
Explore connectionsOpen network