Text so far
The best pet is a
Inference & Hardware
Learn how models run, what hardware they need, and how to build a practical local inference system.
Start here
Start by understanding the inference loop, build a useful stack, then evaluate it with measured results.
Learn how tokens, model weights, attention, and memory fit together before choosing a stack.
02 / BuildChoose a runtime and connect a model to the hardware and workflow you actually want to use.
03 / EvaluateUse measured benchmark results to compare inference systems, then use estimates only for early planning.
Interactive fundamentals
Inspect tokenization and cached attention, then compare measured benchmark results with separate early-stage estimates.
The best pet is a
GPT-2 BPE tokens. ␠ marks a leading space included in the token.
Prompt IDs use the GPT-2 vocabulary (r50k_base). Continuations use a small example distribution.
[0.2, −0.7, …]Embeddings represent meaning. Attention mixes in useful context from the other tokens before the next-token scores are formed.
Sampled result: dog
Temperature reshapes the distribution; top-p keeps the smallest cumulative set at or above p, then renormalizes it. Zero temperature chooses the highest-probability candidate. A fixed draw keeps this toy example reproducible.
The best pet is a dog
Back revisits the previous generation's Pick step. Changing that choice starts a new continuation from there.
Local models keep data private
Start both together. Watch caching skip repeated work and finish first.
0.0 s · 0/12 tokens
0.0 s · 0/12 tokens
K/V means keys and values: the attention data computed for each token. Words stand in for token positions here; a model’s actual tokenizer may split them differently.
0 cached positions
Representative positions are shown for large contexts.
Both lanes use the same teaching weights: 60 ms to build a position’s K/V, 15 ms to read a position, and 150 ms of other work per output token. Only the cached lane skips rebuilding old K/V. Above 16 context positions, both per-position costs are scaled by 16/context to keep the race watchable. These illustrative times are not hardware measurements or predicted speedups.
Attention still reads the context in both lanes. Step advances the shared clock to the next token arrival; it does not force the two outputs to stay in sync. The last sampled token remains uncached because no further decode step consumes it.
Cache bytes = positions × 32 layers × 2 (K + V) × 8 KV heads × 128 head dimension × bytes per element. Batch size 1; no sharding, quantization scales, or metadata overhead.
Compare reproducible inference measurements on the hardware, models, runtimes, and context depths that matter in practice.
Compare GPUs and unified-memory systems, check VRAM fit, and estimate tokens per second for a model before you measure it.
Learn the fundamentals
Build a working mental model before comparing hardware or software.
Choose hardware
Start broad, then compare the devices and build types that fit your models.
Understand models
Connect model design to memory use, speed, quality, and local feasibility.
Build a local system
Start with the runtime choice, then wire up offloading, measurement, and experiments.
Roadmap
These topics are planned for a future pass; the learning paths above link only to finished work.
All articles
Chronological updates after the guided paths and interactive fundamentals.
An interactive demo of the same photo at 2, 3, 4, 6 and 8 bits per channel, with and without error diffusion. All measurements run live in your browser.
Why does an LLM run fast on turn one and crawl as context expands? We break down why memory bandwidth bottlenecks local inference, calculate theoretical speed limits, analyze measured dual-RTX 3090 context sweeps from 0K to 256K, and examine practical settings to keep generation fast.
DeepSeek V4.1 Flash introduces 748B total parameters, a 196B engram table, 8B prefill / 16B decode asymmetric routing, native vision, and an 890 B/token KV cache. Here is how the architecture works, how it delivers 100–200 tok/s at 150 million tokens per dollar, and why it's my new daily driver for code.
A practical review of GLM 5.3 Flash covering its 320B-A18B architecture, API economics against DeepSeek V4 Flash and Luna, coding behavior, quantized memory footprint, and my plans to run it locally on an M5 Ultra Mac Studio.
An overview of the Apple M5 Ultra Mac Studio for local large language models, covering its UltraFusion design, 1.2 TB/s memory bandwidth, expected prefill gains, decode expectations against NVIDIA Blackwell workstation cards, and how it compares to DGX Spark.
An in-depth guide to Qwen3.8-27B for local inference. We examine its Artificial Analysis Intelligence Index standing, native multi-token prediction (MTP), weights versus KV cache quantization, parallel context slots, and firsthand daily driver observations on a dual-GPU workstation.
An in-depth guide to Qwen3.8-Flash-Next and its 51B n-gram embedding table, updated with dual-RTX-3090 ExLlamaV3 results: hot expert placement, working MTP, and the memory tradeoff behind long-context inference.
A beginner's guide to Rotary Position Embeddings (RoPE) and YaRN. Learn how models track word order with clock hands, why advertised context differs from reliable reasoning, and how to test long sequences on local hardware.
A dual RTX 3090 local AI workstation with 48 GB of distributed VRAM, Threadripper Pro, WRX80, 128 GB ECC RAM and enough expansion room for larger multi-GPU experiments.
A step-by-step guide to using Tailscale and SSH for private remote access to a home local AI server, with Ollama and Open WebUI examples.
A beginner's guide to splitting a local LLM between GPU VRAM and system RAM, with practical llama.cpp settings and advice for dense and mixture-of-experts models.
A beginner's guide to Ollama, llama.cpp and vLLM: what an inference engine does, how model formats fit in, and which tool suits a laptop, home server or busy API.
A beginner's guide to chain-of-thought, reasoning models and test-time compute — from DeepSeek-R1 and GPT-o1 to the dot experiment and compressed reasoning — with practical advice for running distilled reasoning models on home hardware.
A beginner's guide to speculative decoding, draft models and multi-token prediction, including when they speed up local LLMs and when the extra work slows them down.
Kimi K3 explained without the research-paper fog: 2.8T parameters, 104B active, Kimi Delta Attention, MXFP4 weights, benchmark results, API pricing, and what running it locally really takes.
A beginner's guide to local LLM quantization: what bits per weight means, how popular GGUF formats compare, when to choose Q2 through Q8, and why Q4 is a strong starting point.
A comparison of WRX80, TRX40, and AMD EPYC motherboards for multi-GPU local AI builds, with UK marketplace prices, PCIe lanes, memory bandwidth, Threadripper Pro CCD layouts, remote management, and the risks of importing used server hardware.
How DeepSeek V4 Flash cuts inference cost with sparse experts, compressed attention, FP4/FP8 weights, disk-backed prefix caching and speculative decoding, plus API cost estimates and real local benchmarks on RTX PRO 6000, DGX Spark and Apple Silicon.
A concise guide to the M3 Ultra Mac Studio, M4 Max Mac Studio, and M5 Max MacBook Pro for local LLMs, including real benchmarks, current and used pricing, MLX and Metal software, Thunderbolt clustering, and current preorder context for the M5 Ultra.
A practical guide to NVIDIA DGX Spark and other GB10 systems for local LLMs, covering real token speeds, memory bandwidth, MoE models, clustering, thermals, software support, pricing, Strix Halo, and Mac Studio alternatives.
A concise guide to AMD Strix Halo for local LLMs, covering real token speeds, memory bandwidth, MoE models, ROCm and Vulkan support, clustering, and the 192 GB Gorgon Halo refresh.
A comparison of GPUs, workstation cards, unified-memory devices, and CPU inference setups for local AI, focused on price, speed, memory capacity, software support, and practical tradeoffs.
A practical look at the RTX 3090 for local AI workloads, covering specs, VRAM, bandwidth, TFLOPS, used pricing, power limiting, LLM performance, image generation, and why it remains one of the best-value GPUs for running open models at home.