Deep Learning & MLOps · Module 06
MLOps Principles
What it takes for a model run to be reproducible: the reproducibility contract, the run manifest, dataset lineage against versioning, and sealed versions.
Học xong bạn làm được
- State the reproducibility contract a model run must satisfy
- Describe the structure of a run manifest and why each field exists
- Explain dataset lineage as distinct from dataset versioning
- Explain why a promoted model version is sealed, and what that means operationally
Bài học
- The reproducibility contract
This is the one lesson of the track kept at full depth - the reasoning behind the tools. A model result is reproducible if the same code, data, hyperparameters and environment give the same metric. Each of the four can silently change - a preprocessing fix, a re-pulled table, a half-remembered learning rate, a library bump - unless experiment tracking records all four in a run manifest.
- The run manifest
A run manifest is the record of one training run - everything needed to answer "what exactly produced this number?" without asking anyone to remember. At minimum it holds run_id, artifact_uri, parameters, metrics, tags and source. It is a structure, not logging calls sprinkled in; if any field is missing the run is not fully reproducible. MLflow implements it, but the structure matters with any tool.
- Dataset lineage vs. dataset versioning
Data and model version independently on two axes, and a run is a point on both at once. Comparing runs that share one axis isolates the other; losing track of which axis moved is the most common way to draw the wrong conclusion. Dataset versioning (data engineering) makes a dataset an immutable, shareable artifact; dataset lineage (MLOps) records which version a run used. You can have perfect versioning and no lineage.
- Backend integration and sealed versions
When a model registry sits behind an application backend, artifact_uri is the single source of truth for the binary; the application database stores only the link (run_id, artifact_uri), never the blob. A model version promoted to production is sealed - immutable - and any change creates a new version, a deliberate policy for auditability and rollback. The module closes with terms to explore and review questions.