A model that works in a notebook and a model people depend on are separated by a body of work that is rarely taught and consistently underestimated. These are the parts I have had to learn more than once.
The input distribution is the project
Every serious problem I have had came from a mismatch between the data a model was trained on and the data it received.
The crop model at 96% on a benchmark and 61% in the field. The retrieval system that was excellent on documented topics and dangerous on undocumented ones.
In both cases the model was fine. The distribution was different from what we assumed, and we found out late.
Ask what the real input looks like in week one. Not as an evaluation step. As a design input.
Failure has to be a designed path
A notebook has one path: input, output. Production has many, and most of them are the interesting ones.
What happens when the input is unusable? When retrieval returns nothing relevant? When the model is 51% confident on a decision that matters?
If you have not designed those paths, the system will improvise, and improvisation from a generative model looks exactly like a correct answer.
The abstention path in Lumify has its own latency budget, its own metrics, and its own interface treatment. Making it first-class rather than a fallback is what made the system trustworthy.
Evaluation is a merge gate, not a notebook cell
Application code has had regression testing for decades. ML components in the same repository frequently have none, because ML evaluation is slow, non-deterministic, and expensive.
All three are true. None are a reason to skip it — they are a reason it needs different infrastructure: cached results, tolerance bands, and per-case diffs.
And one warning from experience: a flaky gate is worse than no gate. Ours failed intermittently for two weeks and engineers learned to add a skip label by reflex. Rebuilding the trust took months longer than fixing the flakiness.
Aggregate metrics hide the thing you need to see
An unchanged average can conceal enormous churn. Fifty cases improved and fifty degraded reads identically to nothing happening.
Slice by sub-population. Diff individual cases. The per-case diff view in our evaluation harness was scheduled as a later enhancement and turned out to be the only reason anyone read the report.
Write it down while you still remember why
The decision that seems obvious today is unreconstructable in eight months. I know this because I have opened code I wrote alone, with no comments, and been unable to follow it.
Commit messages, comments on non-obvious choices, a postmortem after a failure. None of it is overhead. It is the only artefact that survives the people.
The shape of the work
If there is one thing I would tell someone making this transition, it is that the interesting problems move.
In a notebook, the interesting problem is the model. In production, the model is usually the settled part, and the interesting problems are distribution, failure paths, evaluation, and trust.
That is not a downgrade. It is where the work actually is.
- MLOps
- Career
- Engineering Practice
