cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to choose legacy MLflow to upgrade Unity Catalog models

Yuki
Contributor

Hi there,

I'm trying to upgrade MLflow models to Unity Catalog from legacy Models.

I'm referencing this document. https://docs.databricks.com/aws/en/machine-learning/manage-model-lifecycle/upgrade-models

But I'm facing the error when I run `workspace_client.search_model_versions(filter_string=f"name='{model_name}'", page_token=None)` of function: `_upgrade_registered_model`.

The error message is following,
INVALID_PARAMETER_VALUE: Bad model name: please specify all three levels of the model in the form `catalog_name.schema_name.model_name`

I'm using Runtime 13.0 or above and having permissions to UC.

This message seems that the `workspace_client = MlflowClient()` is connected UC MLflow formats.
How should I access legacy Models?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

Yuki
Contributor

I'm sorry, I figured it out myself.

I have to write like this, workspace_client = MlflowClient(registry_uri="databricks")

as the document: https://docs.databricks.com/gcp/en/machine-learning/manage-model-lifecycle/workspace-model-registry

View solution in original post

1 REPLY 1

Yuki
Contributor

I'm sorry, I figured it out myself.

I have to write like this, workspace_client = MlflowClient(registry_uri="databricks")

as the document: https://docs.databricks.com/gcp/en/machine-learning/manage-model-lifecycle/workspace-model-registry

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now