IT Vizag
← MLOps: Shipping ML Models

▶ Sign up free for the video, slides & prompts

The lesson below is open to all. Enter your email once to unlock every video, slide deck, prompt and code example on this device.

Checking…

MLOps: Shipping ML Models · Lesson 4 of 14 · 2 min read · 5 min video

Versioning data and models

Track which data and code produced which model, with DVC and a model registry.

📄 Download slides (PDF)· free sign-up

Git tracks your code. But a model is made from code + data + settings, and if the data changes silently, you can't explain or rebuild a model. Versioning all three is what makes ML reproducible.

Why data can't go in Git

Datasets are big and change often, and Git slows to a crawl with large files. Instead, tools such as DVC (Data Version Control) store the data in cloud storage and keep a small pointer file in Git.

🔒 Code example: sign up free (above) to unlock it.

Check out any old commit, run dvc pull, and you get exactly the data that commit used.

A model registry

A model registry is a catalogue of trained models. For each version it stores:

  • The model file itself
  • Which code commit, data version and parameters made it
  • Its evaluation metrics
  • Its stage: staging, production or archived

MLflow, Weights & Biases and the cloud ML platforms all include one. Deployments then pull "the production model" from the registry, instead of a file someone emailed.

The lineage question

For any model in production, you should be able to answer:

  1. Which data was it trained on?
  2. Which code and settings?
  3. How did it score, and on which test set?
  4. Who approved it, and when?

That's called lineage. It's essential for debugging, and for audits in finance and healthcare.

Tip: Never overwrite a dataset in place. Save a new version, so old models can always be explained.

In one line

Version data with a tool like DVC, register every model with its code, data, settings and metrics, so any model can be explained and rebuilt.

Saved on this device. Sign in to keep progress everywhere.

Share with a friend