Deploy a ModelVersion

A ModelVersion only proves its value once it predicts on the images your cameras send every day. Deploying it creates a Deployment: the Picsellia object that follows the ModelVersion in production, whether Picsellia serves it or you serve it on your own infrastructure. From the Deployment, you can:

  • monitor the behavior of the ModelVersion with performance metrics;
  • browse the images it predicted on and the Prediction it made;
  • review those Prediction and set up a pipeline to retrain the ModelVersion on them.

This page assumes that your Private Model Registry holds at least one ModelVersion, either exported from an Experiment or created manually.

1. Open the Deploy modal

Open the ModelVersion in your Private Model Registry and click on the Deploy button at the top right of its overview.

Deploy button on a ModelVersion

The Deploy the model version ? modal asks you to choose the Deployment type, meaning the infrastructure that runs the ModelVersion and makes its predictions: the one provided by Picsellia, or your own.

Deployment modal

Once a type is selected, the modal asks for two more settings:

  • Threshold: only the Shape predicted with a Confidence score above this value are kept, which filters out the noise. A good practice is to start with a low value to see how the ModelVersion behaves, then to raise it later from the Settings of the Deployment. No Threshold is asked for a ModelVersion whose Detection Type is Classification.
  • Datalake: the Datalake in which the predicted images are stored, and therefore browsable. Every image displayed in a Deployment is physically stored through the Storage Connector of a Datalake. The first Datalake of the list is selected by default, so check this choice when your Organization has several.

The modal has no name field: Picsellia gives the Deployment a generated name, such as external-grain, which you can change afterward in the General section of its Settings.

2. Choose where the ModelVersion runs

A. Picsellia Serving

With Picsellia Serving, Picsellia handles the whole deployment workflow: your ModelVersion is deployed on the Picsellia Serving Engine, hosted on AWS Cloud and powered by T4 GPUs. The Deployment is created for you and connected to the Picsellia Serving Engine, so every Prediction of the ModelVersion is logged on it and the metrics of its Dashboard are computed without any work on your side.

Deploy a ModelVersion on Picsellia Serving

Set the Threshold and the Datalake, then click on Deploy. A message confirms that the Deployment is launched, and the Dashboard of the new Deployment opens. Inferences are then run as detailed in Inferences.

🚧

The Picsellia Serving Engine consumes MPU. Making Prediction uses GPUs, which is contractually tracked and billed through MPU. Make sure your Organization still has MPU available before deploying on the Picsellia Serving Engine. You can follow your consumption in the Plans and usage dashboard, as detailed in Track your usage.

The Picsellia Serving Engine serves any ModelVersion exported from a Picsellia Experiment whose Base architecture comes from the Public Model Registry. A ModelVersion you created manually may not be servable as is: contact the Picsellia team before deploying it on the Picsellia Serving Engine.

B. Monitoring Only

With Monitoring Only, you serve the ModelVersion on your own infrastructure and use the Deployment to monitor it:

  1. Download the Model files from the overview of the ModelVersion, as detailed in Files, and deploy them on your infrastructure.
  2. Click on Deploy, select Monitoring Only, set the Threshold and the Datalake, then click on Deploy to create the Deployment.
  3. Connect your infrastructure to the Deployment: after each Prediction of the ModelVersion, send the image and the Prediction to the Deployment with the Picsellia Python SDK. The procedure is detailed in Monitoring an external model.

Deploy a ModelVersion in Monitoring only mode

Once connected, the Deployment displays your Prediction, computes the performance metrics, and lets you review them, exactly as with the Picsellia Serving Engine. Serving on your own infrastructure consumes no MPU.

3. What's next

Whatever the type you chose, your ModelVersion is deployed and its Deployment is listed in the Deployments page of your Organization. The Deployments pages detail what you can do with it.


Did this page help you?