ML Experiment Tracking: From Logged Runs to Gated Promotion

ML experiment tracking records code, data, config, environment and metrics per run, then feeds a gated model registry so CV models are promoted on…

ML Experiment Tracking: From Logged Runs to Gated Promotion
Written by TechnoLynx Published on 11 Jul 2026

ML experiment tracking means recording every training run as one linked record: the code commit, the data snapshot, the full configuration including seeds, an environment fingerprint, the metrics over time and the output model with its own hash. A tracker such as MLflow Tracking logs that record to a central store, where runs can be compared and retrieved later. The tracker does not decide what ships. That job belongs to a model registry, which holds only the candidates that passed a quality gate, and the CI/CD pipeline should deploy nothing the registry has not approved. Tracking every run and gating promotion on recorded evidence is what makes fine-tuning and release auditable. Which vendor you pick matters much less than whether the gate is actually enforced.

For a team that has just got its first component working (the ground covered in our guide to the fundamentals of computer vision), tracking is the habit that stops each later run from becoming a notebook nobody can reproduce.

How Does ML Experiment Tracking Work in Practice?

In practice, a few calls in the training entry point send parameters, metrics and files to a store every time the script runs, so the capture happens whether or not anyone remembers to write it down.

MLflow Tracking is built around runs. A run is one execution of some code, such as a single python train.py, and it records metadata (metrics, parameters, start and end times) plus artifacts such as model weights and images. An experiment groups the runs and models for one task, so you can compare and filter runs by parameter settings and input data. Underneath are two stores. The backend store keeps run metadata such as the run ID, timestamps, parameters and metrics, and the artifact store holds the large files: model weights, images and data files. By default MLflow writes both to a local mlruns directory. That is fine for one person, but once a team needs shared results a tracking server becomes essential, and it also provides access control. Clients connect to the server through the MLFLOW_TRACKING_URI environment variable or mlflow.set_tracking_uri().

A spreadsheet of accuracy numbers stops being enough the moment a second person trains in parallel. What breaks first is the link between a number and the file that produced it: two people save best.pt from different branches, the spreadsheet row says 0.91, and nobody can tell which checkpoint, commit or data split that row refers to. The MLflow paper makes the same point: results depend on dozens of configurable parameters, from input data to hyperparameters and preprocessing code, and tracking which of them went into each model is hard whether you work alone or in a team. MLflow’s own registry guidance lists spreadsheet-based tracking among the most common failures.

How Do You Keep Track of ML Experiments, and What Should Be Logged per Training Run Beyond the Final Metric?

Log all four inputs that determine a run (code, data, configuration and environment) together with its outputs. A reproducible run needs all four inputs pinned. The checklist below lists the minimum, and every row should be captured automatically on every run rather than typed in.

Item What to record Why it matters
Code Commit hash, plus a flag or diff for uncommitted changes The commit pins the model definition, preprocessing, training loop and evaluation
Data Snapshot reference and a content digest for train, validation and test sets MLflow’s Dataset object stores a name, an automatically computed digest and a source for lineage
Configuration Every hyperparameter, split logic, random seeds and thresholds Configuration is one of the four inputs a reproducible run depends on
Environment Interpreter, library and driver versions, hardware type, container image digest An environment fingerprint such as an image digest is part of the minimum per-run record
Metrics Values per step or epoch, not only the final score Metrics over time are part of the minimum per-run record
Output model The weights file with its own hash The minimum per-run record includes the output artefact with its own hash
Evaluation evidence Evaluation dataset ID, test run ID and raw scores These artefacts must be attached before a promotion request is submitted

Logging seeds is necessary, but it does not make reruns identical. Fixed seeds make the pseudo-random sequence deterministic, yet CUDA adds its own variation through non-deterministic operation implementations, floating-point precision differences and parallel execution order, any of which can change between runs or hardware setups. A 2024 arXiv study of CUDA-induced randomness in computer vision measured differences of up to 4.77% in performance scores from that source alone. Deterministic implementations and serial execution can guarantee identical results, but only for a given setup. For most teams the realistic target is statistical reproducibility: a rerun lands within an agreed tolerance.

How Do Code Commits, Data Snapshots and Model Artifacts Get Linked so a Run Can Be Rebuilt?

The link is a set of identifiers, such as hashes and source pointers, stored on the run record. For data, the practical pattern is to keep immutable snapshots in object storage and commit only lightweight pointers and hashes to Git, so a code commit resolves to the exact dataset version it used. DVC works this way: when a pipeline runs, its dvc.lock file records the stages that ran and a hash of each stage’s output. Within MLflow, mlflow.data logs a dataset’s digest and its source (an S3 path, a Delta table version, a URL) to the run. On the model side, each registered MLflow model version links back to the run or logged model that produced it, which is how you trace the data and parameters a model was trained with.

How Does Experiment Tracking Connect Code Versions, Data Snapshots and Model Artifacts so a Result Can Be Reconstructed Later?

Tools differ in how much of this they capture automatically. ClearML records the Git commit hash and any uncommitted code changes on every run. MLflow makes reproducibility possible but does not enforce it: code snapshots, environment capture and data versioning depend on team discipline and on tools such as Git and Docker. Whatever the tool, a bare weights file is close to useless months later unless the preprocessing, input schema and config travel with it.

What Is the Minimal Tracking Setup a Beginner CV Team Needs to Ship a Component?

The minimum is a shared tracking server, automatic capture in the one script everyone trains with, and a registry the deploy step reads from. Everything else can wait. The highest-leverage first move is to capture the code commit, config and environment fingerprint on every run automatically and store metrics centrally. For a small team with modest experiment volume, self-hosted MLflow on a single VM with Postgres and object storage is a sound cost-to-capability choice. The database is not optional if you want the registry, because MLflow’s Model Registry requires a database-backed store. MLflow’s components are deliberately decoupled, so a team can adopt Tracking first and add the Registry when it is ready.

A workable order is:

  1. Stand up the tracking server with a Postgres backend store and an object-store artifact root, and set MLFLOW_TRACKING_URI on every training machine.
  2. Wrap the shared training entry point so commit, config, data digest and environment are logged on every run.
  3. Register the first candidate model and point serving at a named alias instead of a file path.
  4. Add a CI check so that no deployment originates outside the registry.

What Does Minimal Tracking Look Like Inside an Existing Python Training Script?

It is a set of calls added at the training entry point you already have. Nothing inside the loop has to be rewritten. mlflow.autolog() logs metrics, parameters and models for supported frameworks without explicit log statements. That covers library-chosen metrics, hyperparameters including defaults, the model signature, artifacts such as checkpoints, and the training dataset where applicable. If no run is active, autolog creates one itself. The explicit calls below add the rest of the minimum record:

import hashlib, os, subprocess
import mlflow, pandas as pd, torch

mlflow.set_tracking_uri(os.environ["MLFLOW_TRACKING_URI"])
mlflow.set_experiment("defect-detector")

def sha256(path):
    h = hashlib.sha256()
    with open(path, "rb") as f:
        for chunk in iter(lambda: f.read(1 << 20), b""):
            h.update(chunk)
    return h.hexdigest()

commit = subprocess.check_output(["git", "rev-parse", "HEAD"], text=True).strip()
dirty = bool(subprocess.check_output(["git", "status", "--porcelain"], text=True).strip())

mlflow.autolog()  # framework-supported params, metrics, checkpoints

with mlflow.start_run():
    mlflow.set_tags({"git_commit": commit, "git_dirty": str(dirty),
                     "image_digest": os.environ.get("IMAGE_DIGEST", "unset"),
                     "torch": torch.__version__, "cuda": str(torch.version.cuda)})
    mlflow.log_params(config)                      # the dict your script already builds
    manifest = pd.read_csv("data/train_manifest.csv")
    mlflow.log_input(mlflow.data.from_pandas(manifest, source="s3://datasets/train_manifest.csv"),
                     context="training")
    model = train(config)                          # existing loop; add mlflow.log_metric(..., step=epoch)
    torch.save(model.state_dict(), "model.pt")
    mlflow.set_tag("weights_sha256", sha256("model.pt"))
    mlflow.log_artifact("model.pt")

A W&B experiment takes four steps: initialise a run, capture a hyperparameter dictionary in its config, log metrics inside the loop, and save outputs such as weights as artifacts. DVC versions each experiment without cluttering the repository with per-run directories or branches, and DVCLive logs metrics, parameters and plots automatically. Aim’s remote server needs almost no SDK change beyond replacing the local repository path with the server URL. Models trained before any tracking existed can still be registered: MLflow documents registering models saved outside MLflow, such as pickled files on disk.

How Does Disciplined Tracking Shorten the Path from First Experiment to First-Shippable Model?

Tracking shortens the path because every run stays queryable, so questions like “what changed between the run that worked and the one that regressed?” take seconds instead of archaeology. The comparison view across runs is also where teams catch a metric that improves on paper while a latency or fairness constraint quietly gets worse. For a newcomer to CV, the bigger gain is that experiments compound. Each run adds to a searchable history the next decision can draw on, instead of disappearing with the notebook kernel. That matters most in the iterative middle of the computer vision workflow, where many runs are made and only a few ever ship.

Which Experiment Tracking Tool Fits Which Team Size and Hosting Model?

Pick the tool by hosting model and by what your team needs to see during training. Its feature list matters less, because no tool yet provides reproducibility out of the box.

Tool Hosting Fits Watch for
MLflow Apache 2.0, free to self-host on Postgres or SQLite with S3, GCS, Azure Blob or local artifacts; managed options on Databricks or AWS Teams wanting open source, self-hosting and a built-in registry Reproducibility depends on discipline and external tooling
Weights & Biases Managed Forge cloud, dedicated cloud, or self-managed W&B Server Deep learning and vision teams who need live loss curves, logged media and Sweeps Techplained’s 2026 comparison, citing CoreWeave’s Forge pricing page checked on 25 October 2026, lists a free tier of up to 5 seats and 5 GB per month, and Pro from $60 per month for up to 10 seats at companies under 50 employees
DVC Command-line tool on top of Git, no server or daemon Teams needing data and pipeline versioning, often paired with MLflow No GUI; lacks execution monitoring and error recovery
Aim Self-hosted remote tracking server over HTTP and WebSocket, default port 53800 Multi-host training that collects tracked data in one place  
ClearML Apache 2.0 platform combining tracking, pipelines, dataset versioning, deployment and orchestration CV teams wanting rich media logging and remote execution without assembling infrastructure Leaving it later means migrating lifecycle metadata and its embedded integration points

On hosting, self-hosting removes licence spend but not cost: a self-managed W&B Server leaves provisioning, maintenance and upgrades entirely to you, and self-hosted MLflow carries infrastructure and maintenance costs.

For diffusion and LoRA fine-tunes, we would require LoRA rank, learning rate, base checkpoint, dataset version and metrics as queryable parameters or tags on every run, whichever tool you pick. TechnoLynx can define that tag schema against your actual fine-tune workflow, wire MLflow into existing notebooks through logging wrappers without a rewrite, and check that a sample of runs is queryable and reproducible.

Using W&B for experiment visualisation and MLflow as the self-hosted artifact store and model registry is a hybrid pattern ClusterBid describes for cost control, with training scripts logging to both systems and a sync job archiving W&B runs into MLflow. If a single promotion registry is the hard requirement and the live dashboards are not, consolidating on self-hosted MLflow removes that sync job and its upkeep.

How Does Experiment Tracking Feed a Model Registry and a CI/CD Pipeline for Models?

The tracker records every run. A promotion step registers the best candidate in the registry, and from then on the registry drives deployment, monitoring and incident response. MLflow’s registry guidance draws the boundary clearly: a registry stores the trained artefact, its version history, build metadata and the approval records that authorise production use, a narrower role than an experiment tracker and a broader one than a plain artifact store. Google Cloud’s MLOps architecture describes the automated version: a pipeline triggered on a schedule or by an event pushes its trained model to the registry, and an offline validation step compares the new model with the current production model before promotion.

In MLflow, registering a model under an existing name creates a new version rather than replacing the old one. MLflow’s fixed stages (None, Staging, Production, Archived) are deprecated. Model version tags and aliases replace them, and separate registered models with access controls express the environments. In production code, a URI such as models:/regression_model/Production becomes models:/prod.ml_team.regression_model@champion. Tags carry status, for example validation_status set to pending during testing and passed once smoke and performance tests clear.

Registry webhooks let CI pick up registry events. MLflow sends HTTP POST requests when a model version is created or its tags and aliases change, but webhooks work only on the SQL backend and in open-source MLflow, and managed services may not support them. W&B Automations can call a webhook when an alias such as production is added, which lets a deployment or test pipeline start from the registry event. This wiring is the core of the MLOps engineering side of a CV project, where training code stops being a notebook and becomes a pipeline. For when a tracked candidate counts as ready to release, see the release-readiness view of experiment tracking.

None of this blocks anything on its own. A registry that records approvals after the fact gives you an audit trail but does not prevent an unauthorised promotion.

Can the Registry Block Promotion Unless a Passing Evaluation Is Linked to That Exact Version?

Yes, as long as the gate sits in the promotion path itself. The registry stores the evaluation evidence, and a CI step or wrapping service checks that evidence before the alias moves.

TechnoLynx builds this gate as part of the Production AI Monitoring Harness. The work starts with an assessment of your existing registry against your immutability and gating requirements, then bundles evaluation results, a weights hash and config into one record and wires the gate into Jenkins or whichever CI you run.

Versioning Evaluation Results with the Weights and Config They Scored

Attach evaluation results with mlflow.log_artifact() before calling the registration API. The artefact is linked to the run and, through the run, to the model version. Because MLflow creates a new ModelVersion for every registration call and never overwrites an existing one, a benchmark score stays tied to the weights that produced it. Every change to code, prompts or hyperparameters should produce a new version, not an in-place overwrite. That guarantee only holds if storage enforces it. An overwritten model file breaks every rollback path, so write-once storage has to be enforced at the infrastructure level and not just by convention.

Recording Which Version Passed Which Backtest Window

Record the backtest window, the evaluation run ID and the outcome as tags on the model version, and make the CI step that assigns the production alias refuse to run unless those tags show a pass. Most registries expose APIs and CLI tools that integrate with Jenkins, GitHub Actions and GitLab CI, typically for automatic registration after training and evaluation before promotion. To keep approval decisions auditable, write each one to an append-only log. Registry audit logs should allow no deletion or modification after creation. Rollback also depends on retention: keep enough history to roll back several versions, not just one.

Making One ML Model Registry Mandatory Across Independent Teams

Making a registry mandatory takes a shared registry, a deploy path that originates only from it, and rollback that re-points the production alias. TechnoLynx can set up that enforcement as part of the Production AI Monitoring Harness, starting from where your teams deploy today.

Choose between managed and self-hosted on licence cost against the capacity to run the service. Self-hosted MLflow suits a small, cost-sensitive team with someone to operate it. A managed W&B deployment is fully hosted by Weights & Biases, including database management. Several teams can share one MLflow server: workspaces group experiments and registered models per team with workspace-level permissions, and they require a SQL database backend.

The rule to enforce is that no deployment originates outside the registry, so every change to a serving environment traces back to a registry state transition. Shadow AI, where a team deploys outside the registry to move faster, is a common failure, and the fix is to gate the deployment infrastructure itself on registry state. A CI gate only holds if no team has an independent deploy path around it, and getting three teams onto one path is an organisational agreement as much as a tooling change.

Rollback becomes an alias change. Reassigning the champion alias to the previous version means the next model load picks it up, with no change to inference code. The rollback must revert the whole bundle, though. Rolling back weights while a new feature pipeline or config stays live is a common cause of failed rollbacks. If the registry is self-hosted, back up its database as well, because MLflow’s Model Registry runs on a database-backed store.

How Does a New Hire Log a First Fine-Tune Run Correctly Without Asking Around?

A new hire logs a first run correctly when the convention is written down once as a template and enforced by a CI check derived from that template, so getting it right does not depend on asking a colleague. TechnoLynx builds the run template and its CI check as part of the Production AI Monitoring Harness.

The template is best delivered as code: a shared entry-point wrapper that already logs commit, config, dataset digest and environment, plus a short page listing the required tags. A pre-commit hook helps but is not the gate, because hooks can be skipped with --no-verify. The dependable control is running the same checks in CI and requiring them to pass before merging. Keep the required fields few. MLflow’s guidance reports that teams launching with 50 or more required fields see engineers route around the registry within weeks, and it recommends starting with a 10-field core. Scope the check to runs headed for registration and leave exploratory runs free, or the gate ends up blocking legitimate experiments.

How Do We Guarantee the Registered Version Is Exactly What the Serving Container Loaded?

Serving has to load the model by an immutable reference, meaning a version ID or content hash resolved at deploy time and recorded, and that reference must be written by an automated pipeline step, not by manual copying. TechnoLynx starts this work by mapping your current experiment-to-registry-to-serving flow and marking each point where identity can be lost (manual copies, rebuilds, re-tagging). TechnoLynx then builds the CI step that registers the model with its lineage and gates promotion on validation.

The catch is that an MLflow alias is a mutable reference by design. MLflow’s registry checklist describes a promotion sequence that pulls the artefact by the version’s content-addressed hash, builds the serving image and records the image digest in the registry. The tracking server can also validate model version sources against a regular expression and reject registrations from unapproved locations. Version and record every component that changes behaviour (weights, preprocessing assets, serving code, configuration) with the deployment.

For a W&B-to-MLflow handoff, have the CI job that registers the MLflow version write the W&B run ID onto it as a tag, so the trail runs from W&B run to registered version to image digest without anyone copying a file. On the W&B side, its registry links a production model back to its training run, hyperparameters and dataset version. On manual versus automated promotion, our view is that a small team can live with a manual alias change as long as version IDs are logged. Regulated or multi-team settings need CI-driven promotion that writes lineage and checks it, and a small team should move to that as its model count grows. Once running, alert on any mismatch between the registered version and the version actually loaded.

Can MLflow Require a Named Approver and Attached Evidence Before Production?

Not with the registry alone. The pattern MLflow describes stores approval metadata (approver_id, approval_timestamp, justification) as tags on the model version, and a CI/CD gate checks those tags before the production promotion runs. TechnoLynx can build the wrapping approval service that enforces both requirements, and the negative test that proves it rejects an undocumented checkpoint.

Separating approver from submitter is the part that needs custom logic. MLflow’s role-based access control grants permissions per role, and the default workspace user role can create experiments and registered models. Roles grant permissions on resources, not separation of duties, so a wrapping service has to compare approver and submitter before it moves the alias.

A configured gate is not a validated gate. Before relying on it, try to promote a known-bad checkpoint with missing evidence and confirm the gate rejects it. Audit logs answer a different question: who approved what, and when. MLflow’s articles, not its documentation, claim a built-in audit trail for stage transitions, which the documentation now deprecates; treat it as unverified.

What Should the Registry Record so an Auditor Can See Why a Model Was Promoted?

The registry should record who trained the model and when, the data reference, the evaluation results, and the approval process it went through, each linked to the exact version. TechnoLynx can build the evaluation harness that scores each candidate on a versioned scenario set and writes the set ID and scores onto the registry version before release gating. For the full sign-off package an auditor may ask for, see the clinical AI validation pack.

Versioning the Scenario Set, the Scores and the Weights Together

Treat the scenario set as a versioned dataset with its own ID and digest. Raw scores, evaluation dataset ID and test run ID all belong on the registry entry before a promotion request. MLflow’s mlflow.models.evaluate() converts inputs into an EvaluationDataset with its own hashing and metadata tracking. Version the grader as well, because a model-graded metric drifts if its grading model changes. When the scenario set changes, compare scores only within the same set version, and re-score the current champion on the new set so the next decision has a like-for-like baseline.

A Run-Naming Convention Derived from Content, Not Dates

Derive the run identity from content. One published reproducible-pipeline method saves hashes of the data, features and environment files into a model config, then hashes that config and appends the hash to its filename, so any later edit to the config is detectable. A date-based name tells you when a checkpoint was made. A content-derived name tells you what made it, which is the property you need to trace a LoRA checkpoint back to its config, dataset subset and base model. Enforce the convention with the same CI check that validates required tags, so it holds for every teammate and not only for the person who wrote it.

Who Can Help Us Build Tracking and a Gated Registry into Our CV Pipeline?

TechnoLynx designs and builds the tracking and registry layer for CV teams: per-run capture wired into your existing training scripts, the registry tag schema, and a CI gate that refuses promotion without linked evaluation evidence. On building in-house versus bringing in a specialist, the case for outside help grows with the number of teams, deploy paths and audit demands. When choosing a partner, ask how they would prove the gate rejects a bad checkpoint, not only how they would configure it. TechnoLynx runs this work through its Production AI Monitoring Harness and starts with an assessment of your current run-to-serving flow.

We build the engineering evidence trail, not the domain authority that approves it. Managed platforms such as Databricks host MLflow tracking with no setup required.

FAQ

Is MLflow Open Source and Free to Use?

Yes. MLflow is Apache 2.0 licensed and free to self-host, so the only costs are the compute and storage you run it on. Managed MLflow services charge for the compute and storage you consume.

Can I Run MLflow Locally?

Yes. By default MLflow records each run’s metadata and artifacts to a local mlruns directory, with no server, database or external storage needed.

What Is DVC in AI?

DVC (Data Version Control) is a free, open-source version system for data, models and experiments. It uses Git as its underlying version control layer and runs as a command-line tool without a server.