AI & ML
Production AI Systems
Part of Systems, level 8. About 20 hours of study across the topics below.
1Regimes
- Training vs ServingTwo regimes, flipped constraints: throughput-hungry training vs latency-bound serving. 1–2 h
- Latency and ThroughputFast answers vs many answers: batching trades one for the other. 1–2 h
- Memory and Model SizeParameters, optimizer state, activations, and precision: where training and serving memory goes. 1–2 h
2Efficiency
- QuantizationFewer bits per weight: rounding models smaller with measured quality cost. 1–2 h
- Caching and ReuseNever compute twice: the KV cache, shared prompt prefixes, and result reuse at inference. 1–2 h
- Compute, Memory, and Cost AccountingCounting FLOPs, parameters, activations, and optimiser state to estimate training and inference cost. 1–2 h
- Accelerators and the Memory HierarchyWhy GPUs are fast and when they are not: compute-bound versus memory-bound operations and arithmetic intensity. 1–2 h
- Distributed Training and ParallelismData, tensor, pipeline, and sharded parallelism, and the communication each requires. 1–2 h
- Mixed-Precision TrainingTraining in 16-bit or lower floating point with loss scaling to prevent underflow. 1–2 h
- DistillationTeacher to student: soft targets transfer what hard labels cannot. 1–2 h
- Inference at ScaleServing under load: batching, bottlenecks, and reading a serving story. 1–2 h
3Operations
- Data Pipelines, Feature Stores, and Training-Serving SkewKeeping features computed identically in training and serving, and what breaks when they drift apart. 1–2 h
- Testing Machine Learning SystemsUnit tests for data and code, behavioural tests for models, and the readiness rubric for production. 1–2 h
- Monitoring and DriftInputs drift, performance decays: signals, alerts, and honest decay reading. 1–2 h
- Deployment PatternsBatch versus online prediction, shadow deployments, canaries, and rollbacks. 1–2 h
- Retraining and Continual Learning in ProductionWhen and how to update deployed models as data drifts, without forgetting or breaking downstream consumers. 1–2 h
- Evaluation LoopsShadow, A/B, rollback: continuous eval as the deployment safety net. 1–2 h
- Experiment Tracking and ReproducibilityVersioning code, data, configs, and seeds so a result can be reproduced and compared. 1–2 h
