The Model Management page allows you to register a trained model as a new one or update its version. This helps you centrally manage models in PAI. This topic explains how to register and manage models.
Prerequisites
You must have a trained model uploaded to OSS. You can train and export a model by using Designer or DSW, and then upload the model to OSS as described in Upload files.
Prepare your account
-
An Alibaba Cloud account can perform all operations without requiring additional authorization.
-
A RAM user must be added as a member of the workspace with the appropriate role to obtain the required permissions. For more information about the permissions of each role, see Appendix: Roles and permissions.
Register a model
Use the Model Management page to register a new model or update the version of an existing one. Follow these steps:
-
Go to the Model Management page.
-
Log on to the PAI console.
-
In the left-side navigation pane, click Workspaces. On the Workspaces page, click the name of the workspace that you want to manage.
-
In the left-side navigation pane, choose .
-
-
On the Models page, click Register Model.
-
In the Register Model panel, configure the parameters as prompted and click OK.
Two registration methods are available:
-
Create Model: Register a trained model as a new model.
-
Create Version: Create a new version for a registered model.
The following table describes the key parameters.
Parameter
Description
Model Name
Required only when you select Create Model.
Select Model
Required only when you select Create Version.
Select an existing registered model.
Version Number
The version of the registered model. This parameter is editable only when you select Create Version.
Model Address
Configure the model location in one of the following ways:
-
Enter the OSS path of the model file.
-
Click the
icon to select the OSS path of the model file.In the Select OSS folder or file dialog box, you can select an existing model file or upload a local one:
-
(Optional) To upload the model file to a new folder, click Create Directory to create a folder in the current OSS bucket. Double-click the folder to open it.
-
Click Upload File.
-
Click Browse Local Files or Drag and Drop File to Upload, then follow the prompts to upload the local model file.
-
Model Service Deployment
Two configuration methods are supported:
-
Automatic Configurations: After you configure Model Format, the system automatically generates the deployment configuration.
-
Custom Configuration: You can enter the deployment configuration directly in the text box. For details, see Deployment configuration and one-click deployment.
Advanced Configurations
Select Advanced Configurations to configure the following parameters:
-
Version Approval Status
You can set one of the following two approval statuses:
-
Pending (default)
-
Approved
-
-
Model Metrics: Configure model metrics for side-by-side comparison across model versions. For details, see Model metrics.
-
Manage models
On the Models page, you can view all models that you are authorized to access and perform operations such as viewing details and deleting models. You can click Register Model to add a model. The page provides a Tags drop-down list and a search box to filter models by criteria such as source. The model list includes columns for Model Name, Creator, Last Updated, Latest Version, Source, Visibility, and Tags. In the Actions column, you can View, Delete, or Deploy to EAS.
-
Click View to go to the model's OSS storage path and view its details, or click Delete to remove obsolete models.
-
You can assign tags to a model to make it easier to find through filtering and searching.
-
Click the settings icon in the upper-right corner to customize the displayed model information.
-
Hover over a model name to view the model ID. This ID is used when you manage models using OpenAPI.