﻿# MLflow model aliases: resolve a moving name before comparing inference runs

Use MLflow aliases for operational selection while recording the resolved model version and artifact identity for reproducible inference comparisons.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-mlflow-alias-resolved-inference-version/
Language: en

## Understand what the alias names

The [MLflow Model Registry](https://mlflow.org/docs/latest/ml/model-registry) separates a registered model from its versions and aliases. An alias such as `champion` is a mutable reference to a selected version. That makes it useful for operational selection, but an experiment labeled only with the alias can become ambiguous after reassignment. The label remains familiar while the artifact behind it changes.

## Resolve the selection at load time

Record the registered model name, alias, resolved version and artifact location when preparing an inference worker. Also retain the environment and loader configuration needed by that model flavor. These are different identities: resolving the registry entry identifies the selected version, while loading it establishes which artifact the worker attempted to materialize. A registry lookup by itself does not prove that a serving process finished initialization successfully.

## Separate reassignment from worker replacement

The [registry workflow examples](https://www.mlflow.org/docs/latest/ml/model-registry/workflow) demonstrate reassigning an alias. Do not infer that this operation automatically replaces models already held in process memory. Treat registry selection, deployment rollout and readiness as distinct steps in the serving design. During a rollout, report results by the resolved model version rather than assuming all workers addressed through the same application endpoint have already converged.

## Keep comparison records stable

Suppose a quality comparison begins before promotion and finishes after an alias moves. A later lookup of the alias cannot reconstruct every earlier worker's state. Capture its resolution with the run record at the time of execution. The [REST API](https://mlflow.org/docs/latest/api_reference/rest-api.html) provides registry inspection operations, but historical reproducibility still depends on the information the application actually retained. Include preprocessing and postprocessing artifacts when they influence the prediction being compared.

## Use aliases for intent and versions for evidence

An operational alias expresses which version the operator currently intends to select. A reproducible result needs the concrete selection, execution environment and observed serving state. Test promotion and rollback with an isolated worker before relying on a fleet-wide procedure. This extends the distinction between [tokenizer release artifacts](/journal/tokenizer-artifact-release-manifest/) and [service readiness](/journal/guide-ks-deployment-progress-deadline/): a convenient registry name cannot substitute for either a complete artifact set or successful deployment evidence.
