Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor change to deploy.py.tmpl to fix the duplicated alias assigned to the created model in UC #160

Closed
wants to merge 1 commit into from

Conversation

yinxi-db
Copy link
Contributor

@yinxi-db yinxi-db commented Jun 6, 2024

change all alias to lower case, mlflow UC model registry does not different upper/lower case in alias. The original code leads to model in UC have both alias "champion" and "challenger"
image

change all alias to lower case, mlflow UC model registry does not different upper/lower case in alias. The original code leads to model in UC have both alias "champion" and "challenger"
@arpitjasa-db
Copy link
Collaborator

@yinxi-db bit confused, if aliases are case-insensitive, wouldn't this change be a no-op? Have we confirmed this works?

@yinxi-db
Copy link
Contributor Author

yinxi-db commented Jun 6, 2024

@yinxi-db bit confused, if aliases are case-insensitive, wouldn't this change be a no-op? Have we confirmed this works?

yes, see the registered model here. Without the change, it will create a version with 2 alias as shown in the screenshot earlier and with the update, version 3 has the alias champion since it passed validation

@@ -41,20 +41,20 @@ def deploy(model_uri, env):
_, model_name, version = model_uri.split("/")
client = MlflowClient(registry_uri="databricks-uc")
mv = client.get_model_version(model_name, version)
target_alias = "Champion"
target_alias = "champion"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change the other places in the Stack as well where use Champion or Challenger like the batch inference and model validation notebooks?

@arpitjasa-db
Copy link
Collaborator

This was done as part of #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants