SysDesignAtlas

AI Infrastructure

The machines underneath: GPUs, interconnects, distributed training, inference engines, and GPU-cluster economics.

HLDMedium11 min

GPUs & Accelerators

SMs, HBM, tensor cores, and the memory hierarchy that decides your kernel's speed — plus why every accelerator vendor is fighting the same battle against memory bandwidth.

HLDHard12 min

Interconnect & Collective Operations

NVLink, InfiniBand, and the all-reduce — why the network between GPUs determines how large a model you can train, and why bandwidth hierarchy dictates parallelism strategy.

HLDHard11 min

Data Parallelism & ZeRO

Replicating the model across GPUs, why optimizer state is the memory hog, and how sharding it turns a technique that hits a wall at 1B parameters into one that trains 500B.

HLDHard11 min

Model Parallelism

Tensor, pipeline, and sequence parallelism — splitting a model that no single GPU can hold, and composing all of them into the 3D layout frontier runs actually use.

HLDHard11 min

Training at Scale — the Operational Reality

Checkpointing, failure arithmetic at 10,000 GPUs, MFU, stragglers, and determinism — what actually consumes a training team's time, which is not the model.

HLDHard11 min

Training Data Pipelines

Crawl, dedup, filter, tokenize, shard, mix — the pipeline that determines model quality more than the architecture does, and the systems problems inside each stage.

HLDHard12 min

Inference Engines & Continuous Batching

The scheduler at the heart of every LLM server — why static batching wastes most of a GPU, how iteration-level scheduling fixes it, and the prefill/decode interference nobody warns you about.

HLDHard11 min

KV Cache Management

Prefix caching as a radix tree, tiering across HBM/DRAM/NVMe, prefill-decode disaggregation, and cache-affinity routing — squeezing more concurrency out of the resource that actually binds.

HLDHard10 min

Scheduling a GPU Cluster

Gang scheduling, topology awareness, preemption, and quotas — why a Kubernetes scheduler that works fine for web services does badly at allocating accelerators.

HLDMedium10 min

The Cost Model

Deriving dollars per million tokens from hardware specs, why utilization dominates every other term, and how to decide between an API and self-hosting with actual arithmetic.

HLDMedium11 min

Model Deployment & Rollout

Shipping a 140 GB artifact — registries, weight distribution, warm-up, and why canarying a model needs quality gates that a service deployment never does.

HLDMedium10 min

Observability for AI Systems

Token metrics, tracing across model calls, cost attribution, and the hard part — monitoring output quality when there is no ground truth and no exception to catch.

HLDHard13 min

Serving Reasoning Models

What changes when a model thinks for thousands of tokens before it answers — an output-heavy workload, KV cache that grows mid-request, minute-long responses, and budgets that turn accuracy into a dial you pay for.