---
title: "Technical field notes from Fanout"
description: "Practical writing on AI research, system design, inference engineering, and machine learning mathematics from the work behind Fanout."
canonical_url: "https://fanout.sh/blog"
md_url: "https://fanout.sh/blog.md"
last_updated: "2026-11-11"
access: "public"
---

# Technical field notes from Fanout

Practical writing on AI research, system design, inference engineering, and machine learning mathematics from the work behind Fanout.

## Public overview

Fanout field notes connect AI research, system design, inference engineering, and machine learning mathematics to practical engineering decisions.

Each note links to its primary sources and continues into a related Fanout course, roadmap, or interactive lab.

## Published field notes

### [What is fan-out? Fan-in, feeds and tail latency](https://fanout.sh/blog/fan-out.md)

Fan-out is one request or event turning into many downstream calls or deliveries. Fan-in, feeds on write vs read, pub/sub, and the tail-latency math.

- Author: Suraj Gaud
- Published: 2026-10-30
- Track: System design
- Access: Public

### [Compare llm-d prefix cache and server hits](https://fanout.sh/blog/llm-d-prefix-cache-index-vs-server-hits.md)

Compare llm-d router predictions with model-server cache reuse without mixing request cohorts, token units, endpoints, or disaggregated roles.

- Author: Suraj Gaud
- Published: 2026-10-24
- Track: Inference engineering
- Access: Public

### [Size vLLM KV cache bytes after CUDA graphs](https://fanout.sh/blog/vllm-kv-cache-bytes-cuda-graph-headroom.md)

Turn vLLM's manual KV-cache suggestion into a repeatable byte budget using measured CUDA-graph slack, an operating reserve, and block rounding.

- Author: Suraj Gaud
- Published: 2026-10-24
- Track: Inference engineering
- Access: Public

### [Measure speculative index confirmation rate](https://fanout.sh/blog/prefix-cache-speculative-index-confirmation-rate.md)

Define prefix-cache speculative index confirmation rate with mature cohorts, then separate event-pipeline health from actual prefill work avoided.

- Author: Suraj Gaud
- Published: 2026-10-23
- Track: Inference engineering
- Access: Public

### [Use minimum vLLM KV cache bytes per rank](https://fanout.sh/blog/vllm-kv-cache-bytes-multi-rank-minimum.md)

Choose one manual vLLM KV-cache budget from the weakest GPU rank, preserve graph-capture headroom, and quantify the lost capacity on stronger ranks.

- Author: Suraj Gaud
- Published: 2026-10-23
- Track: Inference engineering
- Access: Public

### [Prefix cache speculative index TTL](https://fanout.sh/blog/prefix-cache-speculative-index-ttl.md)

Size a prefix-cache speculative index TTL from route-to-event latency, confirmation failures, and the cost of routing on predicted KV state.

- Author: Suraj Gaud
- Published: 2026-10-22
- Track: Inference engineering
- Access: Public

### [vLLM KV cache manual memory drift](https://fanout.sh/blog/vllm-kv-cache-manual-memory-drift.md)

Reuse a manual vLLM KV-cache byte budget safely by measuring startup free-memory drift per GPU, preserving headroom, and gating rollouts.

- Author: Suraj Gaud
- Published: 2026-10-22
- Track: Inference engineering
- Access: Public

### [KV cache reserve under tensor parallelism](https://fanout.sh/blog/kv-cache-reserve-under-tensor-parallelism.md)

Build a per-rank GPU memory ledger, separate activation reserve from utilization headroom, and translate the remaining KV bytes into token capacity.

- Author: Suraj Gaud
- Published: 2026-10-18
- Track: Inference engineering
- Access: Public

### [Prefix cache eviction attribution after event gaps](https://fanout.sh/blog/prefix-cache-eviction-attribution-event-gaps.md)

Use publisher epochs, sequence continuity, and replay coverage to avoid calling a prefix miss an eviction when KV-event history is incomplete.

- Author: Suraj Gaud
- Published: 2026-10-18
- Track: Inference engineering
- Access: Public

### [KV cache headroom for burst arrivals](https://fanout.sh/blog/kv-cache-burst-headroom.md)

Size KV cache burst reserve from rolling net block growth, a recovery window, and measured overhead instead of a fixed utilization percentage.

- Author: Suraj Gaud
- Published: 2026-10-17
- Track: Inference engineering
- Access: Public

### [Prefix cache eviction attribution window](https://fanout.sh/blog/prefix-cache-eviction-attribution-window.md)

Size recent-eviction history from event rate and diagnostic delay, then preserve unknown outcomes when events expire, drop, or restart.

- Author: Suraj Gaud
- Published: 2026-10-17
- Track: Inference engineering
- Access: Public

### [KV cache working set capacity planning](https://fanout.sh/blog/kv-cache-working-set-capacity-planning.md)

Size an LRU prefix cache from reuse distance and a target hit rate, then convert pages into HBM, DRAM, or SSD capacity with headroom.

- Author: Suraj Gaud
- Published: 2026-10-16
- Track: Inference engineering
- Access: Public

### [Prefix cache miss attribution guide](https://fanout.sh/blog/prefix-cache-miss-attribution.md)

Tell prompt divergence from eviction, routing, and extra-hash mismatches by tracing the first uncached block without exposing prompt contents.

- Author: Suraj Gaud
- Published: 2026-10-16
- Track: Inference engineering
- Access: Public

### [Hybrid model cache: state vs KV bytes](https://fanout.sh/blog/hybrid-model-state-vs-kv-transfer-bytes.md)

Calculate hybrid-model transfer payload from attention KV, recurrent state, padding, tensor parallelism, and missing cache blocks.

- Author: Suraj Gaud
- Published: 2026-10-14
- Track: Inference engineering
- Access: Public

### [MoE GroupGEMM padding under expert skew](https://fanout.sh/blog/moe-groupgemm-padding-under-expert-skew.md)

Turn per-expert token counts into tile-padding ratios, then balance wasted compute against weight reuse, rank tails, and runtime kernel dispatch.

- Author: Suraj Gaud
- Published: 2026-10-14
- Track: Inference engineering
- Access: Public

### [KV cache scale calibration under drift](https://fanout.sh/blog/kv-cache-scale-calibration-drift.md)

Detect when static FP8 KV scales stop matching production traffic, then recalibrate by layer, head, workload, and context length.

- Author: Suraj Gaud
- Published: 2026-10-11
- Track: Inference engineering
- Access: Public

### [Redis HOTKEYS sample ratio and duration](https://fanout.sh/blog/redis-hotkeys-sample-ratio-duration.md)

Size Redis 8.6 HOTKEYS sampling and duration from detectable load, top-K limits, and the open sampled-total scaling bug.

- Author: Suraj Gaud
- Published: 2026-10-11
- Track: System design
- Access: Public

### [Multi-barrier prefix cache salting](https://fanout.sh/blog/multi-barrier-prefix-cache-salting.md)

Compare flat and multi-barrier prefix-cache salts with worked reuse math, trust boundaries, block alignment, and current vLLM implementation status.

- Author: Suraj Gaud
- Published: 2026-10-10
- Track: Inference engineering
- Access: Public

### [Per-token-head KV cache scale overhead](https://fanout.sh/blog/per-token-head-kv-cache-scale-overhead.md)

Calculate the FP32 scale bytes stored beside per-token-head FP8 and INT4 KV data, then compare actual capacity with static per-head calibration.

- Author: Suraj Gaud
- Published: 2026-10-10
- Track: Inference engineering
- Access: Public

### [MoE GroupGEMM occupancy vs EP size](https://fanout.sh/blog/moe-groupgemm-occupancy-vs-ep-size.md)

Derive tokens per expert as EP widens, then separate GroupGEMM shape, weight bandwidth, routing skew, and all-to-all cost.

- Author: Suraj Gaud
- Published: 2026-10-09
- Track: Inference engineering
- Access: Public

### [Structured output speculative decoding acceptance](https://fanout.sh/blog/structured-output-speculative-decoding-acceptance.md)

Separate grammar-invalid drafts from target-model rejections so structured-output acceptance rates keep a stable, useful denominator.

- Author: Suraj Gaud
- Published: 2026-10-09
- Track: Inference engineering
- Access: Public

### [Hybrid prefix cache lost tokens metric](https://fanout.sh/blog/hybrid-prefix-cache-lost-tokens-metric.md)

Use sparse-retention misses with prefix queries and hits to find shared tokens that a hybrid cache matched but could not safely reuse.

- Author: Suraj Gaud
- Published: 2026-10-08
- Track: Inference engineering
- Access: Public

### [NVFP4 KV cache A4Q prefill explained](https://fanout.sh/blog/nvfp4-kv-cache-a4q-prefill.md)

Compare inline NVFP4 dequantization, amortized repacking, and A4Q's native FP4 QK path across full-prefill and short-query workloads.

- Author: Suraj Gaud
- Published: 2026-10-08
- Track: Inference engineering
- Access: Public

### [METRO AllGather vs AllToAll for MoE decode](https://fanout.sh/blog/metro-allgather-vs-alltoall-moe-decode.md)

Compare METRO AllGather with conventional AllToAll using payload bytes, collective launch cost, activated experts, and decode-batch size.

- Author: Suraj Gaud
- Published: 2026-10-07
- Track: Inference engineering
- Access: Public

### [Prefix cache retention with speculative decoding](https://fanout.sh/blog/prefix-cache-retention-speculative-decoding.md)

Diagnose miss-miss-hit cache traces when MTP, EAGLE, or DFlash shifts the reusable boundary away from a retained recurrent-state checkpoint.

- Author: Suraj Gaud
- Published: 2026-10-07
- Track: Inference engineering
- Access: Public

### [LLM token buffer occupancy scheduling](https://fanout.sh/blog/llm-token-buffer-occupancy-scheduling.md)

Turn unread streamed tokens into scheduling runway, then account for consumption rate, preemption cost, KV memory, and overload fallback.

- Author: Suraj Gaud
- Published: 2026-10-06
- Track: Inference engineering
- Access: Public

### [Prefix cache salt granularity explained](https://fanout.sh/blog/prefix-cache-salt-granularity.md)

Separate vLLM cache-salt scope from prefix-match granularity, calculate the reuse cost of each isolation boundary, and plan safe rotation.

- Author: Suraj Gaud
- Published: 2026-10-06
- Track: Inference engineering
- Access: Public

### [Hot key detection hysteresis for databases](https://fanout.sh/blog/hot-key-detection-hysteresis-database.md)

Set hot-key promote, demote, dwell, and cooldown rules from sampled request rates, shard headroom, and mitigation warm-up time.

- Author: Suraj Gaud
- Published: 2026-10-02
- Track: System design
- Access: Public

### [Prefix cache hash collision probability](https://fanout.sh/blog/prefix-cache-hash-collision-probability.md)

Calculate prefix-cache collision probability for 128-bit and 256-bit hashes, then separate random risk from attacks, salts, and serialization.

- Author: Suraj Gaud
- Published: 2026-10-02
- Track: Inference engineering
- Access: Public

### [Cache hot-key detection window threshold](https://fanout.sh/blog/cache-hot-key-detection-window-threshold.md)

Size a cache hot-key detector from node spare capacity, reaction delay, queue growth, replica warm-up, and promote-demote hysteresis.

- Author: Suraj Gaud
- Published: 2026-10-01
- Track: System design
- Access: Public

### [P95 ITL vs average TPOT](https://fanout.sh/blog/p95-itl-vs-average-tpot.md)

See why p95 inter-token latency and average TPOT can disagree, with worked streams, weighting rules, and the right metric for each serving SLO.

- Author: Suraj Gaud
- Published: 2026-10-01
- Track: Inference engineering
- Access: Public

### [Hybrid KV cache vs recurrent state memory](https://fanout.sh/blog/hybrid-kv-cache-vs-recurrent-state-memory.md)

Calculate when token-growing KV cache overtakes fixed recurrent state in a hybrid LLM, then include concurrency, precision, and allocator padding.

- Author: Suraj Gaud
- Published: 2026-09-30
- Track: Inference engineering
- Access: Public

### [Read a speculative decoding acceptance histogram](https://fanout.sh/blog/speculative-decoding-acceptance-length-histogram.md)

Turn a speculative-decoding acceptance histogram into mean progress, wasted draft work, conditional survival, and a test for choosing draft length.

- Author: Suraj Gaud
- Published: 2026-09-30
- Track: Inference engineering
- Access: Public

### [Consistent hash peak load with hot keys](https://fanout.sh/blog/consistent-hash-peak-load-with-hot-keys.md)

Calculate the peak-to-average load from one hot key, then solve for the read-replica count needed to meet a node-capacity target.

- Author: Suraj Gaud
- Published: 2026-09-29
- Track: System design
- Access: Public

### [FP8 KV cache layer skipping vs per-head scales](https://fanout.sh/blog/fp8-kv-cache-layer-skipping-vs-per-head-scales.md)

Compare FP8 per-head scales with BF16 layer skipping, including scale overhead and a worked hybrid-attention KV cache calculation.

- Author: Suraj Gaud
- Published: 2026-09-29
- Track: Inference engineering
- Access: Public

### [Label smoothing with sparse outputs](https://fanout.sh/blog/label-smoothing-sparse-outputs.md)

See why label smoothing diverges on exact-zero predictions, while an entropy confidence penalty stays bounded, with a four-class calculation.

- Author: Suraj Gaud
- Published: 2026-09-28
- Track: ML mathematics
- Access: Public

### [User idle latency in LLM serving](https://fanout.sh/blog/user-idle-latency-llm-serving.md)

Turn reading speed and buffered tokens into a user-visible stall deadline, then measure it separately from TPOT and server-side inter-token latency.

- Author: Suraj Gaud
- Published: 2026-09-28
- Track: Inference engineering
- Access: Public

### [Consistent hash peak-to-average load ratio](https://fanout.sh/blog/consistent-hash-peak-to-average-load-ratio.md)

Estimate the busiest node from ring variance, then compare virtual nodes, multi-probe hashing, and bounded loads for a target peak ratio.

- Author: Suraj Gaud
- Published: 2026-09-27
- Track: System design
- Access: Public

### [MoE balance batch size vs expert parallel size](https://fanout.sh/blog/moe-balance-batch-size-vs-expert-parallel-size.md)

Separate MoE load-balance reduction scope from expert ownership, then calculate tokens per expert and per rank as EP grows.

- Author: Suraj Gaud
- Published: 2026-09-27
- Track: AI research
- Access: Public

### [NVFP4 KV cache prefill vs decode performance](https://fanout.sh/blog/nvfp4-kv-cache-prefill-vs-decode-performance.md)

Separate NVFP4 KV cache kernel cost from capacity gains across prefill, decode, cache append, prefix hits, and preemption.

- Author: Suraj Gaud
- Published: 2026-09-11
- Track: Inference engineering
- Access: Public

### [Dynamic speculative decoding batch size thresholds](https://fanout.sh/blog/dynamic-speculative-decoding-batch-size-thresholds.md)

Tune dynamic speculative decoding batch size thresholds without hiding CUDA graph, K=0, acceptance, or threshold-crossing costs.

- Author: Suraj Gaud
- Published: 2026-09-10
- Track: Inference engineering
- Access: Public

### [Mamba state quantization for inference](https://fanout.sh/blog/mamba-state-quantization-inference.md)

Learn why Mamba state quantization is harder than weight or KV compression, with memory arithmetic, error recurrence, and a deployment test plan.

- Author: Suraj Gaud
- Published: 2026-09-10
- Track: Inference engineering
- Access: Public

### [EPLB activated experts vs token balance](https://fanout.sh/blog/eplb-activated-experts-vs-token-balance.md)

See why token-balanced EPLB can activate more expert replicas during memory-bound decode, with routing arithmetic and a regime-aware test plan.

- Author: Suraj Gaud
- Published: 2026-09-08
- Track: Inference engineering
- Access: Public

### [Prefix cache retention interval for hybrid models](https://fanout.sh/blog/prefix-cache-retention-interval-hybrid-models.md)

Choose a prefix cache retention interval for hybrid attention from checkpoint occupancy, recomputation, semantic boundaries, and EAGLE behavior.

- Author: Suraj Gaud
- Published: 2026-09-08
- Track: Inference engineering
- Access: Public

### [Consistent hash virtual node count variance](https://fanout.sh/blog/consistent-hash-virtual-node-count-variance.md)

Size a consistent hash ring from a target ownership variance, then price the metadata, lookup, and failure-recovery costs of more virtual nodes.

- Author: Suraj Gaud
- Published: 2026-09-07
- Track: System design
- Access: Public

### [EPLB window statistics memory overhead](https://fanout.sh/blog/eplb-window-statistics-memory-overhead.md)

Calculate vLLM EPLB load-window memory from steps, MoE layers, physical experts, and dtype, then separate it from redundant expert weights.

- Author: Suraj Gaud
- Published: 2026-09-07
- Track: Inference engineering
- Access: Public

### [MoE load balancing loss and batch size](https://fanout.sh/blog/moe-load-balancing-loss-batch-size.md)

See how microbatch, sequence, and global scope change MoE load balancing loss, expert specialization, variance, and step time.

- Author: Suraj Gaud
- Published: 2026-09-06
- Track: AI research
- Access: Public

### [NVFP4 KV cache vs NVFP4 weights](https://fanout.sh/blog/nvfp4-kv-cache-vs-nvfp4-weights.md)

Separate NVFP4 KV cache from NVFP4 weights by lifecycle, memory math, kernels, calibration, and the vLLM controls that enable each one.

- Author: Suraj Gaud
- Published: 2026-09-06
- Track: Inference engineering
- Access: Public

### [Per-tensor vs per-head FP8 KV cache scales](https://fanout.sh/blog/per-tensor-vs-per-head-fp8-kv-cache-scales.md)

Compare per-tensor, static per-head, and dynamic per-token-head FP8 KV scales by range, metadata, calibration, and backend support.

- Author: Suraj Gaud
- Published: 2026-09-05
- Track: Inference engineering
- Access: Public

### [Prefix match unit vs KV cache block size](https://fanout.sh/blog/prefix-match-unit-vs-kv-cache-block-size.md)

Separate vLLM prefix hash granularity from physical KV blocks and scheduler alignment, with hybrid-model arithmetic and tuning constraints.

- Author: Suraj Gaud
- Published: 2026-09-05
- Track: Inference engineering
- Access: Public

### [EPLB window size and step interval](https://fanout.sh/blog/eplb-window-size-step-interval.md)

Turn vLLM's EPLB window size and step interval into sampling duty cycle, wall-clock lag, overlap, and a repeatable tuning procedure.

- Author: Suraj Gaud
- Published: 2026-09-01
- Track: Inference engineering
- Access: Public

### [Weighted rendezvous vs consistent hash ring](https://fanout.sh/blog/weighted-rendezvous-vs-consistent-hash-ring.md)

Compare weighted rendezvous hashing with a vnode ring using the correct logarithmic score, capacity shares, lookup cost, and key movement.

- Author: Suraj Gaud
- Published: 2026-09-01
- Track: System design
- Access: Public

### [Smooth goodput vs goodput in LLM serving](https://fanout.sh/blog/smooth-goodput-vs-goodput.md)

Compare binary goodput with smooth goodput using token deadlines, user idle latency, worked arithmetic, and the scheduling incentives each metric creates.

- Author: Suraj Gaud
- Published: 2026-08-31
- Track: Inference engineering
- Access: Public

### [W4A8 vs NVFP4 quantization on GPUs](https://fanout.sh/blog/w4a8-vs-nvfp4-quantization.md)

Compare integer W4A8 with NVFP4 by number format, scale overhead, GPU support, kernel behavior, and model quality before choosing a serving path.

- Author: Suraj Gaud
- Published: 2026-08-31
- Track: Inference engineering
- Access: Public

### [Label smoothing vs confidence penalty](https://fanout.sh/blog/label-smoothing-vs-confidence-penalty.md)

Compare label smoothing with confidence penalty through their KL directions, logit gradients, and a worked three-class probability example.

- Author: Suraj Gaud
- Published: 2026-08-29
- Track: ML mathematics
- Access: Public

### [Router z-loss vs load balancing loss](https://fanout.sh/blog/router-z-loss-vs-load-balancing-loss.md)

Compare router z-loss with MoE load balancing loss using the formulas and two counterexamples that isolate logit scale from expert utilization.

- Author: Suraj Gaud
- Published: 2026-08-29
- Track: AI research
- Access: Public

### [FP8 KV cache calibration: a practical test](https://fanout.sh/blog/fp8-kv-cache-calibration.md)

Choose FP8 KV cache scales by testing scale 1.0 first, finding systematic long-context loss, and calibrating on data that matches production.

- Author: Suraj Gaud
- Published: 2026-08-28
- Track: Inference engineering
- Access: Public

### [Paged KV cache block size: how to choose](https://fanout.sh/blog/paged-kv-cache-block-size.md)

Choose paged KV cache block size from tail-waste arithmetic, prefix reuse, kernel support, and measured SLO-qualified capacity instead of a default.

- Author: Suraj Gaud
- Published: 2026-08-28
- Track: Inference engineering
- Access: Public

### [WAL vs redo log vs undo log, mapped](https://fanout.sh/blog/wal-vs-redo-log-vs-undo-log.md)

Separate WAL's write-ordering rule from redo and undo recovery, then map the terms across PostgreSQL, MySQL, SQL Server, Oracle, and SQLite.

- Author: Suraj Gaud
- Published: 2026-08-27
- Track: System design
- Access: Public

### [Weighted jump consistent hash: what works](https://fanout.sh/blog/weighted-jump-consistent-hash.md)

Learn how to add weights around Jump Hash, calculate logical-bucket ratios, and decide when weighted rendezvous avoids unnecessary key movement.

- Author: Suraj Gaud
- Published: 2026-08-27
- Track: System design
- Access: Public

### [Goodput vs SLO attainment in LLM serving](https://fanout.sh/blog/goodput-vs-slo-attainment.md)

Goodput is a rate; SLO attainment is a fraction. Derive their relationship, expose denominator traps, and choose the right LLM serving metric.

- Author: Suraj Gaud
- Published: 2026-08-26
- Track: Inference engineering
- Access: Public

### [Online vs offline EPLB for MoE serving](https://fanout.sh/blog/online-vs-offline-eplb.md)

Compare offline and online EPLB by traffic drift, measurement windows, expert-weight movement, and the cost of rebalancing a live MoE server.

- Author: Suraj Gaud
- Published: 2026-08-26
- Track: Inference engineering
- Access: Public

### [Label smoothing minimum loss, calculated](https://fanout.sh/blog/label-smoothing-minimum-loss.md)

Derive the nonzero cross-entropy floor created by label smoothing, compare two conventions, and calculate it for 2, 10, and 1,000 classes.

- Author: Suraj Gaud
- Published: 2026-08-25
- Track: ML mathematics
- Access: Public

### [Router z-loss for stable MoE training](https://fanout.sh/blog/router-z-loss-moe-training.md)

Calculate router z-loss from four logits, see the common shift it removes, and separate numerical stability from expert load balancing.

- Author: Suraj Gaud
- Published: 2026-08-25
- Track: AI research
- Access: Public

### [Self-hosted LLM vs API break-even math](https://fanout.sh/blog/self-hosted-llm-vs-api-cost-break-even.md)

Calculate the token volume where a rented GPU beats an LLM API, then test model parity, utilization, peak capacity, caching, and operations costs.

- Author: Suraj Gaud
- Published: 2026-08-24
- Track: Inference engineering
- Access: Fanout Pro

### [W4A8 quantization in QServe](https://fanout.sh/blog/w4a8-quantization-qserve.md)

See why QServe stores 4-bit weights, computes on INT8 tensor cores, and pairs W4A8 with a 4-bit KV cache for batched LLM serving.

- Author: Suraj Gaud
- Published: 2026-08-24
- Track: Inference engineering
- Access: Public

### [Jump consistent hash vs hash ring](https://fanout.sh/blog/jump-consistent-hash-vs-hash-ring.md)

Choose jump hashing or a hash ring by pricing membership changes, lookup state, weights, failures, replicas, and a six-bucket rebalance.

- Author: Suraj Gaud
- Published: 2026-08-23
- Track: System design
- Access: Public

### [Write-ahead log vs transaction log](https://fanout.sh/blog/write-ahead-log-vs-transaction-log.md)

Separate the WAL ordering rule from a database transaction log, then trace one SQL Server update through commit, redo, undo, and truncation.

- Author: Suraj Gaud
- Published: 2026-08-23
- Track: System design
- Access: Public

### [FP8 attention vs FP8 KV cache](https://fanout.sh/blog/fp8-attention-vs-fp8-kv-cache.md)

Separate FP8 cache storage from FP8 attention math, calculate the memory saving, and check whether the active backend turns it into lower latency.

- Author: Suraj Gaud
- Published: 2026-08-22
- Track: Inference engineering
- Access: Public

### [vAttention vs PagedAttention for KV cache](https://fanout.sh/blog/vattention-vs-pagedattention.md)

Compare CUDA virtual memory with software KV blocks, including kernel overhead, page granularity, prefix sharing, and a practical choice rule.

- Author: Suraj Gaud
- Published: 2026-08-22
- Track: Inference engineering
- Access: Public

### [Expert parallelism load balancing with EPLB](https://fanout.sh/blog/expert-parallelism-load-balancing-eplb.md)

Decide whether EPLB's redundant experts repay their memory cost using measured routing skew, balance ratios, and a 2.4 GB DeepSeek-V3 example.

- Author: Suraj Gaud
- Published: 2026-08-21
- Track: Inference engineering
- Access: Public

### [Goodput vs throughput in LLM inference](https://fanout.sh/blog/goodput-vs-throughput-llm-inference.md)

Compare LLM serving plans by SLO-qualified requests, not raw tokens per second, with a 60-second capacity and cost calculation.

- Author: Suraj Gaud
- Published: 2026-08-21
- Track: Inference engineering
- Access: Public

### [Token choice vs expert choice routing in MoE](https://fanout.sh/blog/token-choice-vs-expert-choice-routing.md)

How token choice and expert choice routing split MoE work: who picks whom, load balance, dropped tokens, and why decoder LLMs route by token.

- Author: Suraj Gaud
- Published: 2026-08-19
- Track: AI research
- Access: Public

### [What is a good cross entropy loss value](https://fanout.sh/blog/what-is-a-good-cross-entropy-loss-value.md)

Judge cross entropy loss against the ln C uniform baseline and the data's entropy floor, with worked numbers from coin flips to GPT-2.

- Author: Suraj Gaud
- Published: 2026-08-19
- Track: ML mathematics
- Access: Public

### [AI inference engineering, explained with numbers](https://fanout.sh/blog/ai-inference-engineering-guide.md)

What AI inference engineering is, derived from one GPU ratio: bandwidth ceilings, batching, caching, quantization, and when self-hosting pays.

- Author: Suraj Gaud
- Published: 2026-08-18
- Track: Inference engineering
- Access: Public

### [FlashAttention vs PagedAttention: what each fixes](https://fanout.sh/blog/flashattention-vs-pagedattention.md)

FlashAttention cuts attention kernel memory traffic. PagedAttention cuts KV cache waste. Which one is your bottleneck, and why engines run both.

- Author: Suraj Gaud
- Published: 2026-08-18
- Track: Inference engineering
- Access: Public

### [What is W4A16? W4A16 vs W8A8 quantization compared](https://fanout.sh/blog/w8a8-vs-w4a16-quantization.md)

Choose W8A8 or W4A16 quantization from prefill compute, decode bandwidth, and memory-fit arithmetic, with the batch-size crossover that flips the answer.

- Author: Suraj Gaud
- Published: 2026-08-18
- Track: Inference engineering
- Access: Public

### [Expert parallelism vs tensor parallelism for MoE](https://fanout.sh/blog/expert-parallelism-vs-tensor-parallelism.md)

Choose expert or tensor parallelism for MoE serving from weight placement, all-to-all versus all-reduce arithmetic, expert size, and batch occupancy.

- Author: Suraj Gaud
- Published: 2026-08-17
- Track: Inference engineering
- Access: Public

### [When KV cache quantization slows inference](https://fanout.sh/blog/when-kv-cache-quantization-slows-inference.md)

When FP8 or INT4 KV cache quantization slows LLM inference: unsupported attention backends, short contexts, low concurrency, and conversion kernels.

- Author: Suraj Gaud
- Published: 2026-08-17
- Track: Inference engineering
- Access: Public

### [Disaggregated prefill and decode with numbers](https://fanout.sh/blog/disaggregated-prefill-and-decode.md)

Calculate KV transfer bytes and time, size prefill and decode pools independently, and decide when disaggregation beats chunked prefill.

- Author: Suraj Gaud
- Published: 2026-08-16
- Track: Inference engineering
- Access: Fanout Pro

### [Write-ahead log explained through one crash](https://fanout.sh/blog/write-ahead-log-explained.md)

Follow one transfer through WAL records, dirty pages, commit, crash recovery, redo, undo, checkpoints, and group commit.

- Author: Suraj Gaud
- Published: 2026-08-16
- Track: System design
- Access: Public

### [Consistent hashing explained simply with 10 keys](https://fanout.sh/blog/consistent-hashing-explained-simply.md)

Trace 10 keys through modulo hashing and a hash ring, count exactly what moves, then add virtual nodes, replication, and failure limits.

- Author: Suraj Gaud
- Published: 2026-08-15
- Track: System design
- Access: Fanout Pro

### [Softmax temperature explained with numbers](https://fanout.sh/blog/softmax-temperature-explained.md)

See softmax at T=0.5, 1, and 2, then separate temperature's roles in sampling, calibration, training, and knowledge distillation.

- Author: Suraj Gaud
- Published: 2026-08-15
- Track: ML mathematics
- Access: Public

### [FP8 vs INT8 vs AWQ vs GPTQ](https://fanout.sh/blog/fp8-vs-int8-vs-awq-vs-gptq.md)

FP8 and INT8 are number formats. AWQ and GPTQ are weight quantization methods. Compare memory, kernels, quality, and the workloads each fits.

- Author: Suraj Gaud
- Published: 2026-08-14
- Track: Inference engineering
- Access: Public

### [Mixture of experts routing explained](https://fanout.sh/blog/mixture-of-experts-routing-explained.md)

Follow one token through MoE router logits, top-k softmax, expert outputs, and capacity limits. See why routing balance is a systems constraint.

- Author: Suraj Gaud
- Published: 2026-08-14
- Track: AI research
- Access: Public

### [KV cache quantization: memory savings by bits](https://fanout.sh/blog/kv-cache-quantization.md)

Calculate how much KV cache quantization saves after scale metadata and residual tokens, then decide when lower precision is worth the tradeoff.

- Author: Suraj Gaud
- Published: 2026-08-13
- Track: Inference engineering
- Access: Public

### [Why is FlashAttention faster?](https://fanout.sh/blog/why-is-flash-attention-faster.md)

FlashAttention is faster because it avoids writing full attention matrices to HBM. Follow the 4K-token memory traffic and exact softmax method.

- Author: Suraj Gaud
- Published: 2026-08-13
- Track: Inference engineering
- Access: Fanout Pro

### [How Grok 4.6 happened: Cursor's data flywheel](https://fanout.sh/blog/grok-4-6-cursor-data-flywheel.md)

The six-month story behind Grok 4.6: the $60B Cursor deal, trillions of trace tokens, and a post-training recipe where Grok 4.5 built its successor.

- Author: Suraj Gaud
- Published: 2026-08-12
- Track: AI research
- Access: Public

### [Tensor parallelism vs pipeline parallelism](https://fanout.sh/blog/tensor-parallelism-vs-pipeline-parallelism.md)

Choose tensor or pipeline parallelism for LLM inference using memory fit, interconnect topology, latency goals, and worked communication arithmetic.

- Author: Suraj Gaud
- Published: 2026-08-12
- Track: Inference engineering
- Access: Fanout Pro

### [What is chunked prefill?](https://fanout.sh/blog/what-is-chunked-prefill.md)

Chunked prefill splits long prompts across scheduler iterations. See the token-budget arithmetic and the TTFT, ITL, throughput, and memory tradeoffs.

- Author: Suraj Gaud
- Published: 2026-08-12
- Track: Inference engineering
- Access: Public

### [Cross-entropy loss: formula, logits and examples](https://fanout.sh/blog/softmax-cross-entropy-from-logits.md)

Cross-entropy loss is the negative log of the probability a model gives the correct class, worked through from raw logits to the loss and its gradient.

- Author: Suraj Gaud
- Published: 2026-08-09
- Track: ML mathematics
- Access: Public

### [How to read equations in AI research papers](https://fanout.sh/blog/how-to-read-equations-ai-research-papers.md)

A practical method for reading notation, scope, types, and meaning in AI research-paper equations, with an interactive reinforcement-learning example.

- Author: Suraj Gaud
- Published: 2026-08-09
- Track: ML mathematics
- Access: Public

### [Roofline model: a worked example for LLM inference](https://fanout.sh/blog/roofline-model-ai-inference.md)

The roofline model bounds a kernel by peak compute and memory bandwidth. Work it through on an H100: why LLM decode is memory-bound and prefill is not.

- Author: Suraj Gaud
- Published: 2026-08-09
- Track: Inference engineering
- Access: Public

### [Scaled dot-product attention equation, step by step](https://fanout.sh/blog/scaled-dot-product-attention-equation.md)

Scaled dot-product attention is softmax(QK^T / sqrt(d_k)) V. A worked example takes one query through the scores, the scaling, softmax and value mixing.

- Author: Suraj Gaud
- Published: 2026-08-09
- Track: ML mathematics
- Access: Public

### [What is argmax? Meaning, examples, argmax vs max](https://fanout.sh/blog/argmax-vs-max.md)

Argmax returns the input where a function peaks, not the peak value that max returns, with worked examples in NumPy, PyTorch and greedy decoding.

- Author: Suraj Gaud
- Published: 2026-08-09
- Track: ML mathematics
- Access: Public

### [What the vertical bar means in mathematics](https://fanout.sh/blog/what-does-vertical-bar-mean-in-mathematics.md)

Resolve conditioning, magnitude, cardinality, determinants, set-builder notation, divisibility, and evaluation by reading the mathematical frame.

- Author: Suraj Gaud
- Published: 2026-08-09
- Track: ML mathematics
- Access: Public

### [A robotics roadmap for software engineers](https://fanout.sh/blog/robotics-roadmap-software-engineers.md)

A practical path from software engineering to robotics, covering math, ROS 2, simulation, controls, perception, planning, and real hardware.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: System design
- Access: Fanout Pro

### [How to estimate LLM API costs](https://fanout.sh/blog/llm-api-cost-estimation.md)

A workload-first method for estimating LLM API spend across input, output, caching, tools, retries, batch jobs, traffic growth, and quality.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: Inference engineering
- Access: Public

### [How to use AI to study for exams](https://fanout.sh/blog/how-to-use-ai-to-study-for-exams.md)

Build an exam plan with AI that uses active recall, spaced practice, mixed problems, error logs, and timed tests without outsourcing answers.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: AI research
- Access: Public

### [How to use AI to study without losing the work](https://fanout.sh/blog/how-to-use-ai-to-study.md)

Use AI as a tutor, question writer, and feedback partner while keeping retrieval, explanation, practice, and judgment in your own hands.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: AI research
- Access: Public

### [LLM inference interview questions that matter](https://fanout.sh/blog/llm-inference-interview-questions.md)

Twenty practical LLM inference interview questions with answer rubrics covering latency, KV cache, batching, GPUs, parallelism, and reliability.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: Inference engineering
- Access: Fanout Pro

### [OpenAI vs Anthropic API pricing](https://fanout.sh/blog/openai-vs-anthropic-api-pricing.md)

A dated comparison of OpenAI and Anthropic API token prices, cache costs, batch discounts, long-context rules, and workload-level cost.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: Inference engineering
- Access: Public

### [Speculative decoding for faster LLM inference](https://fanout.sh/blog/speculative-decoding-llm-inference.md)

How speculative decoding proposes and verifies tokens, why it can preserve model outputs, and when draft models make latency worse.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: Inference engineering
- Access: Public

### [The LLM inference engineer roadmap](https://fanout.sh/blog/llm-inference-engineer-roadmap.md)

A practical roadmap through GPU fundamentals, transformer decoding, KV cache memory, batching, parallelism, serving, and production measurement.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: Inference engineering
- Access: Public

### [The open-source robotics stack, explained](https://fanout.sh/blog/open-source-robotics-stack.md)

How ROS 2, Gazebo, MuJoCo, MoveIt, ros2_control, LeRobot, and open hardware fit together in a modern robotics project.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: System design
- Access: Public

### [Vision-language-action models for robotics](https://fanout.sh/blog/vision-language-action-models-robotics.md)

How VLA models turn images and instructions into robot actions, what OpenVLA changed, and where evaluation and deployment still break.

- Author: Suraj Gaud
- Published: 2026-08-06
- Track: AI research
- Access: Public

### [100 papers to understand software and computing](https://fanout.sh/blog/100-papers-to-understand-software-and-computing.md)

A foundational reading list for getting started with programming, databases, networks, distributed systems, interfaces, and machine learning.

- Author: Suraj Gaud
- Published: 2026-08-05
- Track: System design
- Access: Public

### [Build an AI homelab that works like one computer](https://fanout.sh/blog/ai-homelab-one-computer.md)

Connect every Mac, home server, and cloud worker into one secure AI software factory, with the tools that matter and the order to add them.

- Author: Medhansh
- Published: 2026-08-05
- Track: System design
- Access: Public

### [Continuous batching for LLM inference](https://fanout.sh/blog/continuous-batching-llm-inference.md)

How iteration-level scheduling lets LLM requests join and leave a live batch, and how token budgets, KV memory, and preemption shape latency.

- Author: Suraj Gaud
- Published: 2026-08-03
- Track: Inference engineering
- Access: Fanout Pro

### [PagedAttention: how vLLM manages the KV cache](https://fanout.sh/blog/pagedattention-vllm-kv-cache.md)

A systems guide to PagedAttention, KV blocks, block tables, copy-on-write, fragmentation, and what vLLM’s memory manager changes.

- Author: Suraj Gaud
- Published: 2026-08-03
- Track: Inference engineering
- Access: Fanout Pro

### [Prefill vs decode in LLM inference](https://fanout.sh/blog/prefill-vs-decode-llm-inference.md)

A practical guide to prefill, decode, TTFT, inter-token latency, chunked prefill, and why one LLM request creates two serving workloads.

- Author: Suraj Gaud
- Published: 2026-08-03
- Track: Inference engineering
- Access: Fanout Pro

### [How AI memory works: five systems, not one](https://fanout.sh/blog/how-ai-memory-works-five-systems.md)

A technical map of model weights, context windows, KV caches, recurrent state, retrieval, and the limits of what AI systems remember.

- Author: Suraj Gaud
- Published: 2026-07-29
- Track: AI research
- Access: Fanout Pro

### [Kimi K3 architecture: KDA, MLA and MoE](https://fanout.sh/blog/kimi-k3-architecture-kda-mla-moe.md)

A source-led guide to Kimi K3’s hybrid attention, Attention Residuals, Stable LatentMoE, cache design, and deployment tradeoffs.

- Author: Suraj Gaud
- Published: 2026-07-29
- Track: Inference engineering
- Access: Fanout Pro

### [KV cache formula for LLM inference memory](https://fanout.sh/blog/kv-cache-formula-llm-inference-memory.md)

Derive KV-cache memory from layers, KV heads, head dimension, context, batch, and precision, then connect the result to GPU capacity.

- Author: Suraj Gaud
- Published: 2026-07-29
- Track: Inference engineering
- Access: Public

### [Daily paper summaries for AI engineers](https://fanout.sh/blog/daily-paper-summaries-for-ai-research-engineers.md)

How AI research engineers can use daily paper summaries for discovery, verification, durable notes, experiments, and team decisions.

- Author: Suraj Gaud
- Published: 2026-07-25
- Track: AI research
- Access: Public

### [Deep learning for computer vision engineers](https://fanout.sh/blog/deep-learning-course-for-computer-vision-engineers.md)

How to choose and sequence computer vision learning across foundations, current architectures, experiments, evaluation, and deployment.

- Author: Suraj Gaud
- Published: 2026-07-25
- Track: AI research
- Access: Public

### [Machine learning roadmap for backend engineers](https://fanout.sh/blog/machine-learning-roadmap-for-backend-engineers.md)

A backend-first machine learning roadmap covering model behavior, data, evaluation, serving, observability, and inference systems.

- Author: Suraj Gaud
- Published: 2026-07-25
- Track: Inference engineering
- Access: Public

### [ML interview prep for software engineers](https://fanout.sh/blog/how-to-prepare-for-ml-engineer-interviews-as-a-software-engineer.md)

A role-specific ML engineer interview plan for software engineers covering coding, mathematics, modeling, systems, projects, and mocks.

- Author: Suraj Gaud
- Published: 2026-07-25
- Track: AI research
- Access: Public

### [System design prep for senior engineers](https://fanout.sh/blog/system-design-prep-for-senior-engineer-interviews.md)

Senior-level system design preparation focused on scope, trade-offs, evolution, failure recovery, operations, and clear technical leadership.

- Author: Suraj Gaud
- Published: 2026-07-25
- Track: System design
- Access: Public

### [AI papers for system design engineers](https://fanout.sh/blog/ai-research-papers-for-system-design-engineers.md)

A focused paper-reading path from distributed systems foundations to modern AI serving, with a practical protocol for each paper.

- Author: Suraj Gaud
- Published: 2026-07-24
- Track: System design
- Access: Public

### [ML engineer roadmap for career switchers](https://fanout.sh/blog/machine-learning-engineer-roadmap-for-career-switchers.md)

A career-switch roadmap that maps existing engineering strengths to ML foundations, model development, production systems, and credible projects.

- Author: Suraj Gaud
- Published: 2026-07-24
- Track: AI research
- Access: Public

### [ML math roadmap without a math degree](https://fanout.sh/blog/ml-math-roadmap-for-engineers-without-a-math-degree.md)

A dependency-based ML math roadmap for engineers covering notation, linear algebra, calculus, probability, optimization, and practice.

- Author: Suraj Gaud
- Published: 2026-07-24
- Track: ML mathematics
- Access: Public

### [Paper-reading habit for staff engineers](https://fanout.sh/blog/research-paper-reading-habit-for-staff-engineers.md)

A sustainable paper-reading system for staff engineers built around work questions, triage, durable notes, discussion, and application.

- Author: Suraj Gaud
- Published: 2026-07-24
- Track: AI research
- Access: Public

### [System design labs for distributed systems](https://fanout.sh/blog/system-design-labs-for-distributed-systems-engineers.md)

A lab framework for distributed systems engineers that tests invariants, failure recovery, observability, performance, and design judgment.

- Author: Suraj Gaud
- Published: 2026-07-24
- Track: System design
- Access: Public

### [Deep learning roadmap for self-taught engineers](https://fanout.sh/blog/deep-learning-roadmap-for-self-taught-engineers.md)

A practical deep learning roadmap that connects mathematics, model building, evaluation, systems work, and research reading.

- Author: Suraj Gaud
- Published: 2026-07-23
- Track: AI research
- Access: Public

### [ML interview prep for data scientists](https://fanout.sh/blog/ml-interview-prep-for-data-scientists.md)

A focused ML engineering interview plan for data scientists covering coding, modeling, system design, and research communication.

- Author: Suraj Gaud
- Published: 2026-07-23
- Track: AI research
- Access: Public

### [ML math for software engineers](https://fanout.sh/blog/machine-learning-math-for-software-engineers.md)

The machine learning mathematics software engineers need for model code, training behavior, evaluation, and production debugging.

- Author: Suraj Gaud
- Published: 2026-07-23
- Track: ML mathematics
- Access: Public

### [System design prep for backend engineers](https://fanout.sh/blog/system-design-interview-prep-for-backend-engineers.md)

A system design interview plan that turns backend experience into clear requirements, trade-offs, failure analysis, and operational judgment.

- Author: Suraj Gaud
- Published: 2026-07-23
- Track: System design
- Access: Public

### [System design prep for new grads](https://fanout.sh/blog/system-design-interview-prep-for-new-grads.md)

A beginner-friendly system design interview framework for new grads, with estimation, core components, failure reasoning, and mock practice.

- Author: Suraj Gaud
- Published: 2026-07-23
- Track: System design
- Access: Public

### [SLMs are more powerful than you think](https://fanout.sh/blog/slms-are-more-powerful-than-you-think.md)

Why small language models might be the secret sauce your AI stack is missing.

- Author: Suraj Gaud
- Published: 2025-05-18
- Track: AI research
- Access: Public

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
