Step 20 of 36 · Delivery
ML from notebook to production
Across a function, the gap between a model in a notebook and a model in production is a question of ownership and a standard path.
At function level the question is not how to ship one model. It is what the standard path is and who owns each step.
Without a path, every model is a one-off. A scientist hands a notebook to an engineer who rewrites it, results differ, and each blames the other. Decide the ownership model. Either scientists own their models into production with platform support, or a separate team takes over at a defined point. Both can work. An unclear handover never does.
Then pave one road: shared templates for training and serving, automated tests for data and model, a registry that records which version is live, staged rollout and a way back.
Count models in use, not models trained.
Try this week
- Trace one production model back to its training code and data and note every manual step on the way.
- Write down who owns a model at each stage from idea to retirement, and where ownership changes hands.
Signs you've got it
- The second model in an area reaches production far faster than the first did.
- Every live model has a named owner, a recorded version and a rollback path.
Resources
- articleContinuous Delivery for Machine Learning (opens in a new tab)Danilo Sato, Arif Wider and Christoph Windheuser
- guideMLOps: Continuous delivery and automation pipelines in machine learning (opens in a new tab)Google Cloud Architecture Center
- paperThe ML Test Score: A Rubric for ML Production Readiness and Technical Debt Reduction (opens in a new tab)Eric Breck and colleagues
- articleWhat is Production? (opens in a new tab)Michael Kaminsky
- bookDeploying a Model (Machine Learning in Production) (opens in a new tab)Christian Kästner