Model Catalog¶
Registering Models and Editing Metadata¶
Notes:
This feature requires PostgreSQL to be installed.
This demo expects that there is no existing model with the same
URI
or the same combination ofModel Name
andVersion
. The model catalog enforces uniqueness on these fields. Requests that result in a conflict will be rejected.
Register New Model¶
From the Deployments Overview page, select
Model Catalog
at the top of the page.Click
Register A New Model
to open the registration modal.Enter the following parameters:
Model Name:
cifar10
URI:
gs://seldon-models/tfserving/cifar10/resnet32
Artifact Type:
Tensorflow
Version:
v1.0
Task Type:
classification
Append tags and metric parameters with the following values. To add more parameters, use the
+
button. To delete a parameter, use thex
button:
Tags:
key:
author
, value:Seldon
,key:
training_set
, value:Resnet32
,
Metrics:
key:
p1
, value:0.8
,key:
p2
: value:0.6
Click
Register Model
Edit Model Metadata¶
From The Model Catalog¶
Save metadata from the model catalog
From the Deployments Overview page, select
Model Catalog
at the top of the page.Select a model. For the purposes of this demonstration, the model registered in the Register New Model step will be used.
On the side drawer that opens, click
EDIT METADATA
.Add a new tag with the following values:
key:
stage
, value:production
Click
SAVE METADATA
at the top right hand side of the side drawer to save your edit.
From A Deployment’s Dashboard¶
Note: Please follow the instructions on creating an Outlier Detector.
From the Deployments Overview page, select the deployment to append metadata on the running model. For the purposes of this demonstration, the deployment created from the Outlier Detector example will be used.
From your selected deployment’s dashboard, click the model being used to open a drawer on the right.
Click
EDIT METADATA
.Under the Tags section, press the
+
button to add a new tag.For the new tag, enter the following parameters:
key:
stage
, value:production
Click
SAVE METADATA
on the top right of the side drawer.
Deploying Models From The Model Catalog¶
Note: This demonstration requires the cifar10 model to have been registered already.
From the overview page, navigate to the model catalog using the header tabs.
Select the more icon for the model named
cifar10
.In the dropdown menu that appears, select Deploy.
In the wizard which appears, name the deployment
cifar10
, and set the protocol toTensorflow
. Choose your deployment type. Clicknext
when done.On the Default Predictor Parameters screen, the model URI should automatically be appended. For Triton models, the model name will also be appended automatically. Click next to continue.
Skip the remaining steps and click
Launch
.
Select Deployments
header tab to verify that your model has been deployed.