Labs
Hands-on notes from building an ML training and serving platform: distributed training (PyTorch DDP), Kubernetes, and Linux troubleshooting. Each lab starts from a question, runs on real code, and explains what the result means.
Interactive labs
ML platform interactive labs: 19 step-through labs in three areas. Each area starts with the big picture, then zooms in.
- Training (DDP), 11 labs: the cluster first (GPUs inside a node talk over NVLink, across nodes over the network card and a switch, and why a 16-GPU job prefers 2 × 8 over 4 × 4); then one training step on a hardware map (CPU, PCIe, GPU), with the functions called and the settings they read; then the DataLoader loop,
DistributedSampler,set_epoch, DataLoader workers,persistent_workers,zero_grad(), gradient buckets and hooks (who exchanges gradients, and how much communication is hidden vs exposed), gradient accumulation withno_sync, and checkpoint/resume (who writes, who reads, what the file holds). - Kubernetes, 5 labs: which component reads which YAML field from
kubectl applyto traffic; whether the API server or the scheduler refused a Pod; where the scheduler places Pods (spreading vs bin packing, and fragmentation); why multi-Pod training jobs need gang scheduling; and deleting or crashing Pods behind a Service. - Linux, 3 labs: what each
vmstatnumber means in the hardware (tasks on CPU cores, pages moving between RAM, page cache and swap); where network traffic goes (socket → TCP → interface → network card) and which tool looks at each layer; then practice: read avmstatline and find the bottleneck.
Flashcards
ML platform flashcards: tap-to-reveal cards on DDP, data loading, Kubernetes, Linux troubleshooting, and system design, written as what / how / so what.
Code
ml-systems-lab on GitHub: the experiments behind these pages (DDP benchmarks, Kubernetes labs, Linux troubleshooting, C++).