AI System Design - distributed-systems
#01 Performance

Build a Data Loader Pipeline That Prevents GPU Starvation Premium

Build a data loader for 128 H100 GPUs consuming 38,460 images per second: sharded reads, hedged fetches, bounded prefetch queues and async pinned copies lift GPU utilization from 77% to 99% and save $126,600 per 21-day run.

Read
#02 Distributed Systems

Build a Data Parallel vs Model Parallel Training Pipeline Premium

Derive the parallelism layout for a 70B model on 512 H100 GPUs: why TP=8, PP=4, DP=16 fits in 80 GB, holds the pipeline bubble to 4.7 percent and keeps the gradient all-reduce at 8.2 GB per step.

Read
#03 Databases

Build a Distributed Approximate Nearest Neighbor Search Engine Premium

Design a sharded ANN engine that answers 9,400 QPS over 12.4 billion vectors across 48 shards and 144 replica nodes, holding p99 under 90ms by narrowing the fan-out, hedging the tail, and re-scoring the merge exactly.

Read
#04 Distributed Systems

Build a Distributed Model Training Orchestrator on GPUs Premium

Design a training orchestrator that runs a 70B model across 512 H100 GPUs for 36 days, gang-schedules 64 nodes, survives about one node failure per day, and keeps goodput above 99 percent.

Read
#05 Distributed Systems

Build a Fault-Tolerant Checkpoint and Resume System for Training Runs Premium

Recover a 512 GPU, 70B training run from a node failure in 75.6 seconds by copying state from a data parallel peer, with replica digest voting and resharding across layouts.

Read
#06 Distributed Systems

Build a Gradient Accumulation and Synchronization Engine for Large Batches Premium

Accumulate 64 microbatches in fp32, hide a 331 ms gradient all-reduce behind a 77 ms backward window, and run a 4.19M token batch with a ramped learning rate on 512 H100 GPUs.

Read
#07 Distributed Systems

Build a Hyperparameter Sweep Orchestrator with Early Stopping Premium

Build a sweep orchestrator for 243 configurations on 16 H100 nodes: ASHA early stopping, checkpoint resume and a divergence guard cut a $183,130 grid to $24,499 and 36 hours.

Read
#08 Distributed Systems

Build a Mixed-Precision Training Pipeline with Dynamic Loss Scaling Premium

Build a mixed-precision pipeline for the 70B run on 512 H100 GPUs: bf16 master flow, fp8 GEMMs with per-layer fallback, and a dynamic loss scaler that keeps overflow skips under $1,200.

Read
#09 Performance

Build a Model Sharding System for Serving 70B+ Parameter Models Premium

Design a model sharding system that splits a 70B-parameter model's 140GB of FP16 weights across 8 A100 GPUs using tensor and pipeline parallelism, sustaining 40 tokens/s per replica with under 20GB of KV cache headroom per shard.

Read
#10 Distributed Systems

Build a Training Job Scheduler for Shared GPU Clusters Premium

Build a scheduler for 256 H100 GPUs shared by five teams: gang placement, decayed fair share, EASY backfill and quota preemption raise goodput from 58.7% to 78.3% and cut the cost of a useful GPU-hour from $11.72 to $8.79.

Read