Design an ML Training and Deployment Platform
Design reproducible training, immutable model registration, and deployments to online and batch inference in a bounded multi-tenant platform.
Problem statement
Design a platform where scientists train, register, and deploy machine-learning models to both online and batch inference paths. Assume reproducible training jobs, immutable registered model versions, bounded multi-tenant resource pools, guarded online rollout and rollback, and atomic publication of batch outputs.
What to build
- Scientists submit reproducible training jobs with versioned code, data, configuration, and resource requests.
- Successful jobs can register immutable validated model versions with lineage and approval state.
- An approved model version can roll out to a low-latency online endpoint with guarded traffic shifting and rollback.
- The same model version can process resumable batch datasets and publish a complete output manifest while tenant quotas, authorization, isolation, and audit history remain enforced.
At scalePractice assumption
- 500 concurrent training jobs, with resource requests from one to 64 accelerator units.
- 200 online endpoints serve 100,000 predictions per second in aggregate with a 200 ms p95 platform budget.
- Batch jobs process up to one billion records and must resume at partition boundaries.
- Model artifacts are immutable and every deployment references one exact registered version.