Organize data with tags
Use tags to organize tags in ZenML.
Organizing and categorizing your machine learning artifacts and models can streamline your workflow and enhance discoverability. ZenML enables the use of tags as a flexible tool to classify and filter your ML assets. In this guide, we'll demonstrate how to assign tags to both artifacts and models within the ZenML ecosystem.
Assigning tags to artifacts
If you want to tag the artifact versions of a step or pipeline that is executed repeatedly, you can use the tags
property of ArtifactConfig
to assign an arbitrary number of tags to the created artifacts:
This will assign tags sklearn
and pre-training
to all artifacts created by this step, which can later be used to filter and organize these artifacts.
Note that ZenML Pro users can tag artifacts directly in the cloud dashboard.
Assigning tags to models
Just like artifacts, you can also tag your models to organize them semantically. Here's how to use tags with models in the ZenML Python SDK and CLI (or in the ZenML Pro Dashboard directly).
When creating a model using the Model
object, you can specify tags as key-value pairs that will be attached to the model upon creation:
You can also assign tags when creating or updating models with the Python SDK:
To add tags to existing models and their versions using the ZenML CLI, you can use the following commands:
Last updated