System Design Lab
An ML training platform starts as one notebook and grows the lifecycle around it: pipelines, tracking, a cluster, and a registry.
Change training jobs per day, dataset size, cluster GPUs, experiments tracked, model size, and pipeline stages. Toggle data-parallel distributed training and automated retraining. The design moves from a single notebook to a scheduled pipeline, versioned data and feature prep, a distributed training cluster, an experiment tracker, a model registry, and CI/CD that promotes models to serving.
Guided walkthrough
Reason about it one step at a time
Takeaway
Normal evolution scenarios
Click left to right for the intended demo path. Each card changes the workload inputs.
Recommended shape
Bottlenecks
Why this changes
Decision tradeoffs
Source-backed rules
These are the durable system-design claims behind the model. The exact slider thresholds are deliberately labeled as teaching assumptions.
A model registry manages the lifecycle of versioned models
MLflow tracks params, metrics, and artifacts per run and registers versioned models with stage transitions, which is why tracking and a registry appear once many experiments and models exist.
MLflow DocsPipelines make ML workflows portable, scalable, and repeatable
Kubeflow Pipelines orchestrates multi-step ML workflows as DAGs on Kubernetes, the reason ad-hoc scripts become a scheduled pipeline as stages and run volume grow.
Kubeflow PipelinesProduction ML platforms standardize data, training, and deployment components
TFX defines reusable components (ingest, validate, transform, train, evaluate, push) so the lifecycle from data validation to deployment is consistent and automatable.
TFX GuideData versioning gives datasets git-like lineage and reproducibility
DVC version-controls large datasets and pipelines so any run can be reproduced from an exact data version, essential once the dataset changes frequently.
DVC DocsTeaching assumptions
- Single-host training tops out around 8 GPUs and roughly 1B parameters before model and optimizer state stop fitting on one accelerator.
- Orchestration, tracking, and storage budgets are conservative teaching numbers chosen to make the five scenarios progress, not vendor limits.
- Data-parallel distributed training is modeled as a throughput axis (more replicas finish faster); a model larger than one GPU instead needs model sharding (tensor/pipeline parallelism or FSDP/ZeRO), modeled as a separate sharding signal.