Bitzu

Machine Learning Associate ยท MLflow tracking and the model registry

Aliases and tags on registered models

Promoting a challenger to champion with set_registered_model_alias instead of legacy stages, loading models by alias, and setting or removing model and model-version tags.

Key points

  • Alias: a mutable named pointer to one model version.
  • Promote by moving it: client.set_registered_model_alias(name, "Champion", 2).
  • Consumers load models:/<name>@Champion and get the new version without code changes.
  • Stages: not supported in Unity Catalog.
  • Tags: key-value labels; set_registered_model_tag / delete_registered_model_tag (model), set_model_version_tag / delete_model_version_tag (version).

Source: https://docs.databricks.com/aws/en/machine-learning/manage-model-lifecycle/

Practice questions

Single choice

Which MlflowClient method assigns an alias to a model version?

  1. set_model_version_tag
  2. set_registered_model_alias
  3. transition_model_version_stage
  4. register_model
Show answer

Answer: B. set_registered_model_alias

set_registered_model_alias is the method for that. The tag methods set labels, and transition_model_version_stage belongs to the legacy stages.

Select all that apply

Which of these are true about aliases in Unity Catalog?

  1. An alias can be reassigned to a different version
  2. A model is loaded by alias with models:/name@alias
  3. One alias can point to several versions at once
  4. An alias can be removed with delete_registered_model_alias
  5. Aliases automatically move versions into Production stage
Show answer

Answer: A. An alias can be reassigned to a different version, B. A model is loaded by alias with models:/name@alias, D. An alias can be removed with delete_registered_model_alias

An alias points to one version at a time and can be reassigned or deleted; loading uses the @ syntax. Stage transitions are not an alias feature.

True or false

Model version tags and aliases are the same thing, because both attach a label to a version.

Show answer

Answer: False

False. A tag is a key-value annotation and can repeat across versions. An alias is a unique named pointer used to resolve a model URI.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Machine Learning Associate topics in this module