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 can I view the storage space taken by a registered model using MLFlow?

fa
New Contributor III

The information viewed about the registered models on the Models tab is very minimal. Just showing the tags we pass in and version information. How can I get more details about the model such as the size on disk?

2 REPLIES 2

Wunlung
Contributor

The registered model actually links with a source run in the mlflow experiment and get those information from that experiment.

A. Using the UI.

  1. Select the model under Registered Models
  2. Select the version which you want to get more detail
  3. Click the link Near the Source Run and redirect you to the experiment page
  4. You will get all the artifacts including model object(size, path, ...), input_example.json, yaml, requirement.txt, ...

B. Use the MLFlowClient

from pprint import pprint
 
client = MlflowClient()
for rm in client.search_registered_models():
    pprint(dict(rm), indent=4)

You will get the source path and can list those objects.

Octavian1
Contributor

Hi,

I have used the MLFlow client, but I am not sure where to find the size of the model image.
The response to 

client.search_registered_models()

 I am getting is the following:


<RegisteredModel: aliases={}, creation_timestamp=17061..., description='', last_updated_timestamp=17061..., latest_versions=None, name='<catalog>.<db>.<model>', tags={}>
{ 'aliases': {},
'creation_timestamp': 17078...,
'description': '',
'last_updated_timestamp': 17078...,
'latest_versions': None,
'name': '<catalog>.<db>.<model>',
'tags': {}}

If going to the catalog UI view, where the model and its versions details are given, there is no such information.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group