Quick reference
- Data and labels — A frozen snapshot, one label definition, a held-out slice.
- Train — Pinned versions, fixed seeds, the exact commit recorded.
- Evaluate — Offline metrics against a baseline, sliced by user group.
- Deploy — Shadow first, then a canary with an automatic rollback rule.
- Monitor — Input drift, output quality and cost, each with a threshold.
In one line: A model is a loop, not a launch. Deploy sits in the middle; monitoring is what sends you back to the data.
Pin the inputs:
git rev-parse HEAD && pip freeze > req.txtExplained
Data and labels
Freeze a snapshot and write the label definition down. A label that changes meaning between training and serving is the most expensive bug in the pipeline, and it will not show up in a unit test.
Train
Pin the library versions, fix the seeds and record the commit. A model you cannot rebuild is an artefact you cannot debug.
Evaluate
Compare against the baseline on slices, not only on the mean. A model that improves the average and breaks one group is not an improvement.
Deploy
Shadow traffic first, then a canary with a rollback rule written before the launch. The rollback rule is a threshold, an owner and a check, not a meeting.
Monitor
Input drift, output quality and cost. Each needs a threshold and a person who acts when one fires.
The honest caveat: the loop is slower than the line. A team that retrains weekly will ship fewer features than one that ships and forgets, and it will also discover its failures earlier.
The lesson: a model is a loop, not a launch.
Your turn: Where does your lifecycle stop?
Related on this site
More notes: Data & MLOps
- P1011Drift detection from baseline to retire
- P1010Five ways retrieval fails
- P1009LLM cost control without breaking the product
- P1008Inside a feature store
- P1007Five questions before you ship
- P1006A model card people actually read
- P1004Four numbers that make data trustworthy
- P1003Data quality checks that catch breakage
Open in the notes app: search, filters, copy This note on GitHub