n creating or updating models with the Python SDK:from zenml.models import Model

from zenml.client import Client

# Create or register a new model with tags

Client().create_model(

name="iris_logistic_regression",

tags=["classification", "iris-dataset"],

# Create or register a new model version also with tags

Client().create_model_version(

model_name_or_id="iris_logistic_regression",

name="2",

tags=["version-1", "experiment-42"],

To add tags to existing models and their versions using the ZenML CLI, you can use the following commands:

# Tag an existing model

zenml model update iris_logistic_regression --tag "classification"

# Tag a specific model version

zenml model version update iris_logistic_regression 2 --tag "experiment3"

PreviousDelete an artifact

NextGet arbitrary artifacts in a step

Last updated 12 days ago