View and Manage Model Group and Model Version Tags
Model Registry helps you view and manage tags related to your model groups. You can use tags to categorize model groups by purpose, owner, environment, or other criteria. The following instructions show you how to view, add, delete, and edit your tags in the Amazon SageMaker Studio console.
Note
Model packages in the SageMaker Model Registry do not support tags—these are
versioned model packages. Instead, you can add key value pairs using
CustomerMetadataProperties
. Model package groups in the model
registry support tagging.
View and manage model group tags
- Studio
-
To view a model group tag, complete the following steps:
-
Open the SageMaker Studio console by following the instructions in Launch Amazon SageMaker Studio.
-
In the left navigation pane, choose Models to display a list of your model groups.
-
Choose the Registered models tab, if not selected already.
-
Immediately below the Registered models tab label, choose Model Groups, if not selected already.
-
From the Model Groups list, select the name of the Model Group you want to view.
-
In the model group page, choose the Tags tab. View the tags associated with your model group.
To add a model group tag, complete the following steps:
-
Open the SageMaker Studio console by following the instructions in Launch Amazon SageMaker Studio.
-
In the left navigation pane, choose Models to display a list of your model groups.
-
Choose the Registered models tab, if not selected already.
-
Immediately below the Registered models tab label, choose Model Groups, if not selected already.
-
From the Model Groups list, select the name of the Model Group you want to edit.
-
In the model group page, choose the Tags tab.
-
Choose Add/Edit tags.
-
Above + Add new tag, enter your new key in the blank Key field.
-
(Optional) Enter your new value in the blank Value field.
-
Choose Confirm changes.
-
Confirm your new tag appears in the Tags section of the Information page.
To delete a model group tag, complete the following steps:
-
Open the SageMaker Studio console by following the instructions in Launch Amazon SageMaker Studio.
-
In the left navigation pane, choose Models to display a list of your model groups.
-
Choose the Registered models tab, if not selected already.
-
Immediately below the Registered models tab label, choose Model Groups, if not selected already.
-
From the Model Groups list, select the name of the Model Group you want to edit.
-
In the model group page, choose the Tags tab.
-
Choose Add/Edit tags.
-
Choose the Trash icon next to the key-value pair you want to remove.
-
Choose Confirm changes.
To edit a model group tag, complete the following steps:
-
Open the SageMaker Studio console by following the instructions in Launch Amazon SageMaker Studio.
-
In the left navigation pane, choose Models to display a list of your model groups.
-
Choose the Registered models tab, if not selected already.
-
Immediately below the Registered models tab label, choose Model Groups, if not selected already.
-
From the Model Groups list, select the name of the Model Group you want to edit.
-
In the model group page, choose the Tags tab.
-
Choose Add/Edit tags.
-
Enter a new value in the Value field of the key-pair you want to edit.
-
Choose Confirm changes.
-
- Studio Classic
-
To view a model group tag, complete the following steps:
-
Sign in to Amazon SageMaker Studio Classic. For more information, see Launch Amazon SageMaker Studio Classic.
-
In the left navigation pane, choose the Home icon ( ).
-
Choose Models, and then Model registry.
-
From the Model Groups list, select the name of the Model Group you want to edit.
-
Choose Information.
-
View your tags in the Tags section of the Information page.
To add a model group tag, complete the following steps:
-
Sign in to Amazon SageMaker Studio Classic. For more information, see Amazon SageMaker AI domain overview.
-
In the left navigation pane, choose the Home icon ( ).
-
Choose Models, and then Model registry.
-
From the Model Groups list, select the name of the Model Group you want to edit.
-
Choose Information.
-
If you don't have any tags, choose Add tags.
-
If you have pre-existing tags, choose Manage tags in the Tags section. A list of the model group's tags appears as key-value pairs.
-
Above Add new tag, enter your new key in the blank Key field.
-
(Optional) Enter your new value in the blank Value field.
-
Choose Confirm changes.
-
Confirm your new tag appears in the Tags section of the Information page.
To delete a model group tag, complete the following steps:
-
Sign in to Amazon SageMaker Studio Classic. For more information, see Amazon SageMaker AI domain overview.
-
In the left navigation pane, choose the Home icon ( ).
-
Choose Models, and then Model registry.
-
From the Model Groups list, select the name of the Model Group you want to edit.
-
Choose Information.
-
In the Tags section, choose Manage tags. A list of the model group's tags appears as key-value pairs.
-
Choose the Trash icon to the right of the tag you want to remove.
-
Choose Confirm changes.
-
Confirm your removed tag does not appear in the Tags section of the Information page.
To edit a model group tag, complete the following steps:
-
Sign in to Amazon SageMaker Studio Classic. For more information, see Amazon SageMaker AI domain overview.
-
In the left navigation pane, choose the Home icon ( ).
-
Choose Models, and then Model registry.
-
From the Model Groups list, select the name of the Model Group you want to edit.
-
Choose Information.
-
In the Tags section, choose Manage tags. A list of the model group's tags appears as key-value pairs.
-
Edit any key or value.
-
Choose Confirm changes.
-
Confirm your tag contains your edits in the Tags section of the Information page.
To assign or tag model groups to a project, complete the following steps:
-
Get tags with key
sagemaker:project-name
andsagemaker:project-id
for the SageMaker AI project using the ListTags API. -
To apply the tags to your model package group, choose one of the following methods:
-
If you create a new model package group and want to add tags, pass your tags from Step 1 to the CreateModelPackageGroup API.
-
If you want to add tags to an existing model package group, use the AddTags APIs.
-
If you create your model package group through Pipelines, use the
pipeline.create()
orpipeline.upsert()
methods, or pass your tags to the RegisterModel step.
-
-