Skip to content
anythingai.space
MLOpsbeginner11 min · 8 steps

Versioning Data, Code and Models

An ML model is the product of a dataset and a commit — version all three and link them, and you can reproduce, compare and roll back anything.

??Roll back to last week's model? There is nolast week's model.train.csvappended dailytrain.pyedited twicemodel.pkloverwrittenProduction
errordataresponseheavy workrequest
1 / 8
ProblemStep 1 of 8

“Which data trained the model that's live?”

Last week's retrain made the model worse. The team wants the previous model back — but its file was overwritten, the training CSV has been appended to since, and the script was edited twice.

Nobody can say which data and code produced which model, so nobody can reproduce it, explain it, or roll back with confidence.

Watch outGit alone can't help: the dataset is too big to commit and the model file is a binary blob produced from both.

Lesson 2 of 7 in MLOps