Info alert:Important Notice
Please note that more information about the previous v2 releases can be found here. You can use "Find a release" search bar to search for a particular release.
Overview of model registries
- Overview of model registries
- Configuring the model registry component
- Managing model registries
- Working with model registries
- Working with model registries
- Registering a model
- Registering a model version
- Viewing registered models
- Viewing registered model versions
- Editing model metadata in a model registry
- Editing model version metadata in a model registry
- Deploying a model version from a model registry
- Archiving a model
- Archiving a model version
- Restoring a model
- Restoring a model version
- Working with model registries
Overview of model registries
A model registry is an important component in the lifecycle of an artificial intelligence/machine learning (AI/ML) model, and a vital part of any machine learning operations (MLOps) platform or ML workflow. A model registry acts as a central repository, holding metadata related to machine learning models from inception to deployment. This metadata ranges from high-level information like the deployment environment and project origins, to intricate details like training hyperparameters, performance metrics, and deployment events. A model registry acts as a bridge between model experimentation and serving, offering a secure, collaborative metadata store interface for stakeholders of the ML lifecycle.
Model registries provide a structured and organized way to store, share, version, deploy, and track models.
Configuring the model registry component
Configuring the model registry component
To configure the model registry feature for your data scientists to use in Open Data Hub, you must install the following Operators in OpenShift, and then enable the modelregistry
component in Open Data Hub.
-
Red Hat Authorino Operator (Technical Preview)
-
Red Hat OpenShift Serverless Operator
-
Red Hat OpenShift Service Mesh Operator
-
Open Data Hub Operator version 2
Important
|
You must install the required Operators in the listed order. You should install the Open Data Hub Operator only after the other listed Operators are installed and in a running state. For more information about installing Operators in OpenShift, see Adding Operators to a cluster. For information about installing the Open Data Hub Operator, see Installing Open Data Hub Operator version 2. |
After you install the Operators, you can use the following steps to enable the modelregistry
component.
-
You have cluster administrator privileges for your OpenShift Container Platform cluster.
-
You have access to the data science cluster.
-
You have installed Open Data Hub.
-
You have installed the Red Hat Authorino, Red Hat OpenShift Serverless, Red Hat OpenShift Service Mesh, and Open Data Hub Operators.
-
You have sufficient resources. For more information about the minimum resources required to use Open Data Hub, see Installing the Open Data Hub Operator version 2.
-
In the OpenShift Container Platform console, click Operators → Installed Operators.
-
Search for the Open Data Hub Operator, and then click the Operator name to open the Operator details page.
-
Click the Data Science Cluster tab.
-
Click the default instance name (for example, default-dsc) to open the instance details page.
-
Click the YAML tab to show the instance specifications.
-
Find the
spec.components
section, and then add or update it to include the followingmodelregistry
component entry, with themanagementState
field set toManaged
, and theregistriesNamespace
field set toodh-model-registries
:modelregistry: managementState: Managed registriesNamespace: odh-model-registries
-
Click Save.
-
Confirm that the model registry namespace was created successfully:
-
In the OpenShift console, click Home → Projects.
-
Confirm that the
odh-model-registries
namespace appears in the Projects drop-down list.
-
-
Check the status of the model-registry-operator-controller-manager pod:
-
In the OpenShift Container Platform console, from the Project list, select opendatahub.
-
Click Workloads → Deployments.
-
Search for the model-registry-operator-controller-manager deployment.
-
Check the status:
-
Click the deployment name to open the deployment details page.
-
Click the Pods tab.
-
View the pod status.
When the status of the model-registry-operator-controller-manager-<pod-id> pod is Running, the pod is ready to use.
-
-
Managing model registries
Creating a model registry
You can create a model registry to store, share, version, deploy, and track your models.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the administrator group (for example,
odh-admins
). If you are not using specialized groups, you are part of the OpenShift Container Platform administrator group. -
A cluster administrator has configured and enabled the model registry component in your Open Data Hub deployment. For more information on configuring the model registry component, see Configuring the model registry component.
-
The model registry component is enabled for your Open Data Hub deployment.
-
You have access to an external MySQL database which uses at least MySQL version 5.x. However, Red Hat recommends that you use MySQL version 8.x.
-
From the Open Data Hub dashboard, click Settings → Model registry settings.
-
Click Create model registry.
The Create model registry page opens.
-
In the Name field, enter a name for the model registry.
-
Optional: In the Resource Name field, enter a specific resource name for the model registry. By default, the resource name will match the name of the model registry.
ImportantResource names are what your resources are labeled as in OpenShift. Your resource name must consist of lowercase alphanumeric characters or -, and must start and end with an alphanumeric character. Resource names are not editable after creation.
-
Optional: In the Description field, enter a description for the model registry.
-
In the Connect to external MySQL database section, enter the information for the external database where your model data is stored.
-
In the Host field, enter the database’s host name.
-
If the database is running in running in the
odh-model-registries
namespace, enter only the hostname for the database. -
If the database is running in a different namespace from
odh-model-registries
, enter the database hostname details in<host name>.<namespace>.svc.cluster.local
format.
-
-
In the Port field, enter the port number for the database.
-
In the Username field, enter the default user name that is connected to the database.
-
In the Password field, enter the password for the default user account.
-
In the Database field, enter the database name.
-
-
Click Create.
Note
|
To find the resource name or type of a model registry, click the help icon beside the registry name. Resource names and types are used to find your resources in OpenShift. |
-
The new model registry appears on the Model Registry Settings page.
-
You can view the database configuration for the model registry by clicking the action menu (⋮) beside it, and then clicking View database configuration.
-
You can register a model with the model registry from the Model Registry tab. For more information about working with model registries, see Working with model registries.
Managing model registry permissions
You can manage access to a model registry for individual users and user groups in your organization, and for service accounts in a project.
Open Data Hub creates the <model-registry-name>-users
group automatically for use with model registries. You can add users to this group in OpenShift, or ask the cluster admin to do so.
-
You have logged in to Open Data Hub.
-
You have Open Data Hub administrator privileges.
-
An available model registry exists in your deployment.
-
The users and groups that you want to provide access to already exist in OpenShift Container Platform. For more information, see Managing users and groups.
-
From the Open Data Hub dashboard, click Settings → Model registry settings.
-
Click Manage permissions beside the model registry that you want to manage access for.
The permissions page for the model registry opens.
-
Provide one or more OpenShift groups with access to the project.
-
On the Users tab, in the Groups section, click Add group.
-
From the Select a group drop-down list, select a group.
NoteTo enable access for all cluster users, add
system:authenticated
to the group list. -
To confirm your entry, click Confirm ().
-
Optional: To add an additional group, click Add group and repeat the process.
-
-
Provide one or more users with access to the model registry.
-
On the Users tab, in the Users section, click Add user.
-
In the Type username field, enter the username of the user to whom you want to provide access.
-
To confirm your entry, click Confirm ().
-
Optional: To add an additional user, click Add user and repeat the process.
-
-
Provide all service accounts in a project with access to the model registry.
-
On the Projects tab, in the Projects section, click Add project.
-
In the Select or enter a project field, select or enter the name of the project to which you want to provide access.
-
To confirm your entry, click Confirm ().
-
Optional: To add an additional project, click Add project and repeat the process.
-
-
Users, groups, and accounts that were granted access to a model registry can register, view, edit, version, deploy, delete, archive, and restore models in that registry.
-
The Users and Groups sections on the Permissions tab show the respective users and groups that you granted access to the model registry.
-
The Projects sections on the Projects tab show the projects that you granted access to the model registry.
Deleting a model registry
You can delete model registries that you no longer require.
Important
|
When you delete a model registry, databases connected to the model registry will not be removed. To remove any remaining databases, contact your cluster administrator. |
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the administrator group (for example,
odh-admins
). If you are not using specialized groups, you are part of the OpenShift Container Platform administrator group. -
An available model registry exists in your deployment.
-
From the Open Data Hub dashboard, click Settings → Model registry settings.
-
Click the action menu (⋮) beside the model registry that you want to delete.
-
Click Delete model registry.
-
In the Delete model registry? dialog that appears, enter the name of the model registry in the text field to confirm that you intend to delete it.
-
Click Delete model registry.
-
The model registry no longer appears on the Model Registry Settings page.
Working with model registries
Working with model registries
Registering a model
As a data scientist, you can register a model from the Open Data Hub dashboard.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
You have access to an available model registry in your deployment.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that you want to register a model in.
-
Click Register model.
The Register model page opens.
-
In the Model details section, configure details to apply to all versions of the model:
-
In the Model name field, enter a name for the model.
-
Optional: In the Model description field, enter a description for the model.
-
-
In the Version details section, enter details to apply to the first version of the model:
-
In the Version name field, enter a name for the model version.
-
Optional: In the Version description field, enter a description for the first version of the model.
-
In the Source model format field, enter the name of the model format, for example,
onnx
. -
In the Source model format version field, enter the version of the model format.
-
-
In the Model location section, specify the location of the model by providing either object storage details, or a URI.
-
To provide object storage details, ensure that the Object storage radio button is selected.
-
To autofill the details of an existing data connection:
-
Click Autofill from data connection.
-
In the Autofill from data connection dialog that opens, from the Project drop-down list, select the data science project that contains the data connection.
-
From the Data connection name drop-down list, select the data connection that you want to use.
This list contains only object storage types which contain a bucket.
-
Click Autofill.
-
-
Alternatively, manually fill out your object storage details:
-
In the Endpoint field, enter the endpoint of your S3-compatible object storage bucket.
-
In the Bucket field, enter the name of your S3-compatible object storage bucket.
-
In the Region field, enter the region of your S3-compatible object storage account.
-
In the Path field, enter a path to a model or folder. This path cannot point to a root folder.
-
-
-
To provide a URI, ensure that the URI radio button is selected.
-
In the URI field, enter the URI for the model.
ImportantDeployment of models that are registered by using a URI is not currently supported for this feature.
-
-
-
Click Register model.
-
The new model appears on the Model Registry page.
Registering a model version
You can register a model version.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
You have access to an available model registry in your deployment.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that you want to register a model in.
-
In the Model name column, click the name of the model that you want to register a new version of.
The details page for the model opens.
-
Click Register new version.
-
In the Version details section, enter details to apply to the first version of the model:
-
In the Version name field, enter a name for the model version.
-
Optional: In the Version description field, enter a description for the first version of the model.
-
In the Source model format field, enter the name of the model format, for example,
onnx
. -
In the Source model format version field, enter the version of the model format.
-
-
In the Model location section, specify the location of the model by providing either object storage details, or a URI.
-
To provide object storage details, ensure that the Object storage radio button is selected.
-
To autofill the details of an existing data connection:
-
Click Autofill from data connection.
-
In the Autofill from data connection dialog that opens, from the Project drop-down list, select the data science project that contains the data connection.
-
From the Data connection name drop-down list, select the data connection that you want to use.
This list contains only object storage types which contain a bucket.
-
Click Autofill.
-
-
Alternatively, manually fill out your object storage details:
-
In the Endpoint field, enter the endpoint of your S3-compatible object storage bucket.
-
In the Bucket field, enter the name of your S3-compatible object storage bucket.
-
In the Region field, enter the region of your S3-compatible object storage account.
-
In the Path field, enter a path to a model or folder. This path cannot point to a root folder.
-
-
-
To provide a URI, ensure that the URI radio button is selected.
-
In the URI field, enter the URI for the model.
ImportantDeployment of models that are registered by using a URI is not currently supported for this feature.
-
-
-
Click Register new version.
-
The new model version appears on the details page for the model.
Viewing registered models
You can view the details of models registered in Open Data Hub, such as registered versions, deployments, and metadata associated with the model.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least 1 registered model.
-
You have access to the model registry that contains the model that you want to view.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that contains the model that you want to view.
-
The Model Registry page provides a high-level view of registered models, including the model name, labels, last modified timestamp, and owner of each model.
-
Use the search bar to find a model in the list. You can search with a keyword by default, or click the search bar drop-down menu and select Owner to search by model owner.
-
Click the name of a model to view more details.
The details page for the model opens.
-
On the Versions tab, you can view registered versions of the model.
-
On the Details tab, you can view the description, labels, custom properties, model ID, owner, and last modification and creation timestamps for the model.
-
-
You can view information about the selected model on the details page for the model.
Viewing registered model versions
You can view the details of model versions that are registered in Open Data Hub, such as the version metadata and deployment information.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least 1 registered model.
-
You have access to the model registry that contains the model version that you want to view.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that contains the model version that you want to view.
-
Click the name of a model to view its versions.
The details page for the model opens.
-
On the Versions tab, you can view registered versions of the model.
-
Click the name of a version to view more details.
The details page for the version opens.
-
On the Details tab, you can view the description, labels, custom properties, version ID, author, and last modification and registration timestamps for the model. You can also view the source model format and location information for the model.
-
On the Deployments tab, you can view deployments initiated from the model registry for this version.
-
Click the name of a deployment to open its metrics page.
For information about model metrics on the single-model serving platform, see Serving large models: Monitoring model performance. For information about model metrics on the multi-model serving platform, see Serving small and medium sized models: Monitoring model performance.
-
-
You can view the details of registered model versions on the Model Registry page.
Editing model metadata in a model registry
You can edit the metadata of models registered in Open Data Hub, such as the models’s description, labels, and custom properties.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least 1 registered model.
-
You have access to the model registry that contains the model that you want to edit.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that contains the model that you want to edit.
-
The Model Registry page provides a high-level view of registered models, including the model name, labels, last modified timestamp, and owner of each model.
-
Click the name of a model to view more details.
The details page for the model opens.
-
On the Details tab, you can edit metadata for the model.
-
In the Description section, click Edit to edit the description of the model.
-
In the Labels section, click Edit to edit the labels of the model.
-
In the Properties section, click Add property to add a new property to the model.
-
To edit an existing property, click the action menu (⋮) beside the property, and then click Edit.
-
To delete a property, click the action menu (⋮) beside the property, and then click Delete.
-
-
-
You can view the updated metadata on the details page for the model.
Editing model version metadata in a model registry
You can edit the metadata of model versions that are registered in Open Data Hub, such as the version’s description, labels, and custom properties.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least 1 registered model.
-
You have access to the model registry that contains the model version that you want to edit.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that contains the model version that you want to edit.
-
Click the name of a model to view more details.
The details page for the model opens.
-
Click the name of a version to view more details.
The details page for the version opens.
-
On the Details tab, you can edit the version metadata.
-
In the Description section, click Edit to edit the description of the version.
-
In the Labels section, click Edit to edit the labels of the version.
-
In the Properties section, click Add property to add a new property to the version.
-
To edit an existing property, click the action menu (⋮) beside the property, and then click Edit.
-
To delete a property, click the action menu (⋮) beside the property, and then click Delete.
-
-
-
You can view the updated metadata on the details page for the model version.
Deploying a model version from a model registry
You can deploy a version of a registered model directly from a model registry.
-
An available model registry exists in your deployment, and contains at least 1 registered model.
-
To deploy a model version by using the single-model serving platform, you have fulfilled the prerequisites described in Deploying a model on the single-model serving platform.
-
To deploy a model version by using the multi-model serving platform, you have fulfilled the prerequisites described in Deploying a model by using the multi-model serving platform.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry from which you want to deploy a model version.
-
In the Model name column, click the name of the model that contains the version that you want to deploy.
The details page for the model version opens.
-
Click the action menu (⋮) beside the model version that you want to deploy.
-
Click Deploy.
-
In the Deploy model dialog, configure properties for deploying the model.
-
From the Project drop-down list, select a target project.
-
Click Deploy.
-
-
Configure the following properties for deploying your model:
-
From the Project drop-down list, select a project in which to deploy your model.
-
Optional: In the Model deployment name field, enter a name for the model deployment.
Each deployment is named in the following format by default:
<model name> <model version name> <deployment creation timestamp>
This will be the name of the inference service that is created when the model is deployed.
-
-
Configure the remaining properties for deploying your model, as described in Deploying a model by using the multi-model serving platform or Deploying a model by using the single-model serving platform.
-
Click Deploy.
-
-
The model version appears on the Deployments tab for the model version.
Archiving a model
You can archive a model that you no longer require. The model and all of its versions will be archived and unavailable for use unless it is restored.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least 1 registered model.
-
You have access to the model registry that contains the model that you want to archive.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that you want to archive a model in.
-
Click the action menu (⋮) beside the model that you want to archive.
-
Click Archive model.
-
In the Archive model? dialog that appears, enter the name of the model in the text field to confirm that you intend to archive it.
-
Click Archive.
-
The model no longer appears on the Model Registry page.
-
The model now appears on the archived models page for the model registry.
Archiving a model version
You can archive a model version that you no longer require. The model version will be archived and unavailable for use unless it is restored.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least 1 registered model.
-
You have access to the model registry that contains the model version that you want to archive.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that you want to archive a model in.
-
In the Model name column, click the name of the model that contains the version that you want to archive.
The details page for the model version opens.
-
Click the action menu (⋮) beside the version that you want to archive.
-
Click Archive model version.
-
In the Archive version? dialog that appears, enter the name of the model version in the text field to confirm that you intend to archive it.
-
Click Archive.
-
The model version no longer appears on the details page for the model.
-
The model version now appears on the archived versions page for the model.
Restoring a model
You can restore an archived model. The model and all of its versions will be restored and returned to the registered models list.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least one archived model.
-
You have access to the model registry that contains the model that you want to restore.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry dropdown menu, select the model registry that you want to restore a model in.
-
Click the action menu (⋮) beside the Register model drop-down menu, and then click View archived models.
The archived models page for the model registry opens.
-
Click the action menu (⋮) beside the model that you want to restore.
-
Click Restore model.
-
In the Restore model? dialog that appears, click Restore.
-
The model appears on the Model Registry page.
-
The model no longer appears on the archived models page for the model registry.
Restoring a model version
You can restore an archived model version. The model version will be restored and returned to the versions list for the model.
-
You have logged in to Open Data Hub.
-
If you are using Open Data Hub groups, you are part of the user group or admin group (for example,
odh-users
orodh-admins
) in OpenShift. -
An available model registry exists in your deployment, and contains at least one archived model version.
-
You have access to the model registry that contains the model version that you want to restore.
-
From the Open Data Hub dashboard, click Model Registry.
-
From the Model registry drop-down menu, select the model registry that you want to restore a model in.
-
In the Model name column, click the name of the model that contains the version that you want to restore.
The details page for the model version opens.
-
Click the action menu (⋮) beside the Register new version drop-down menu, and then click View archived versions.
The archived versions page for the model opens.
-
Click the action menu (⋮) beside the version that you want to restore.
-
Click Restore version.
-
In the Restore version? dialog that appears, click Restore.
The details page for the version opens.
-
The model version appears on the details page for the model.
-
The model no longer appears on the archived versions page for the model.