QuestionQ123

VerifiedAdvanced MLflow Usage

A machine learning engineer needs to move the model version model_version for the MLflow Model Registry model model from the Staging stage to the Production stage by using MLflow Client client. At the same time, they want to archive any model versions that are already in the Production stage.

Which of the following code blocks can they use to complete this task?

Explanation

MlflowClient.transition_model_version_stage(name, version, stage, archive_existing_versions=True) is the documented way to promote a model version to a new stage such as Production while automatically archiving any model versions already occupying that stage, in a single atomic call; other candidate snippets either use an invalid method name (transition_model_stage) or perform the archiving and promotion as two separate, incorrectly ordered calls that do not target the existing Production version.

Community Discussion

No comments yet. Be the first to start the discussion!