Design a Model-Weight Deployment Platform
Design a control plane that safely distributes large immutable model versions to serving fleets through staged rollout, verification, activation, and rollback.
Problem statement
For this exercise, assume an ML platform stores immutable model-weight versions and deploys one approved version to selected inference-worker pools.
A release operator starts a staged rollout, workers fetch and verify a manifest plus weight chunks, and each worker atomically activates either the complete new version or keeps serving the previous version. Operators can observe fleet convergence, pause a rollout, and roll back to the last healthy version.
Retries must not create competing releases, a corrupt or partial artifact must never become active, and a failed region or overloaded origin must not trigger an unbounded download storm. Design the artifact path, deployment control plane, worker protocol, rollout state, monitoring, failure recovery, and rollback.
Model training, inference request routing, experiment analysis, and model-quality evaluation are outside scope.
What to build
- An authorized producer can register an immutable, integrity-verifiable model version and make it eligible for deployment only after validation succeeds.
- An operator can idempotently start, pause, resume, and inspect a staged deployment to selected worker pools.
- Workers resumably fetch and verify complete artifacts, atomically activate one version, report health, and converge to a rollback target when required.
At scale
- Assume immutable model versions are as large as 200 GB and a serving fleet contains 20,000 workers across three regions.
- Assume up to 50 model deployments per day, with several deployments targeting thousands of workers concurrently.
- Target 95 percent of healthy target workers on an approved version within 20 minutes without overwhelming the artifact origin or regional network.
- A rollout must survive control-plane process or single-zone failure, and operators must be able to begin rollback of an unhealthy release within five minutes.