Start studying
Module 14 · MLOps / LLMOps Module contents
Module 14  ·  Card 9 / 22intermediate

Model Versioning

Model versioning tracks every trained model and how it was produced.

A version should pin the code, data, hyperparameters and resulting metrics.

This makes results reproducible and rollbacks possible.

MLflow and DVC are common tools for this.

Without it you cannot answer which model produced a given bad prediction.

Learn in depth ↓
Module 14 · MLOps / LLMOps · 22 concepts
In depth  /  15 lines

Model Versioning, in more detail

Model versioning records every trained model and exactly how it came about.

A version number on a file is not versioning.

The version should pin the code, the data, the hyperparameters and the resulting metrics.

That combination is what makes a result reproducible.

Without it you cannot answer which model produced a given bad prediction.

That question arrives eventually, usually from someone senior and unhappy.

Data is the part people skip and the part that matters most.

The same code on last month's data is a different model.

DVC versions large files alongside git without putting them in git.

MLflow records runs, parameters, metrics and the model artefact together.

A registry adds lifecycle stages such as staging and production.

Rollback should be a matter of pointing at the previous version.

Log the model version with every prediction, since that is what links output to lineage.

Keep old versions, because the one you deleted is the one you need.

Treat a model as an artefact with provenance, not as a file someone produced.

Want the full technical article? Wikipedia ↗
Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
Why should model versioning pin the data as well as the code?
MLOps / LLMOps

22 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close