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>@Championand 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
Which MlflowClient method assigns an alias to a model version?
- set_model_version_tag
- set_registered_model_alias
- transition_model_version_stage
- 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.
Which of these are true about aliases in Unity Catalog?
- An alias can be reassigned to a different version
- A model is loaded by alias with models:/name@alias
- One alias can point to several versions at once
- An alias can be removed with delete_registered_model_alias
- 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.
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.
