If a model is developed and trained using a mainstream AI engine, import the model to ModelArts and use the model to create an AI application. In this way, the AI applications can be centrally managed on ModelArts.
Parameter |
Description |
---|---|
Name |
Name of the AI application. The value can contain 1 to 64 visible characters. Only letters, digits, hyphens (-), and underscores (_) are allowed. |
Version |
Version of the AI application. The default value is 0.0.1 for the first import. NOTE:
After an AI application is created, you can create new versions using different meta models for optimization. |
Description |
Brief description of the AI application. |
To import a meta model from OBS, edit the inference code and configuration file by following model package specifications and place the inference code and configuration file in the model folder storing the meta model. If the selected directory does not comply with the model package specifications, the AI application cannot be created.
Parameter |
Description |
---|---|
Meta Model |
OBS path for storing the meta model. The OBS path cannot contain spaces. Otherwise, the creation of the AI application will fail. |
AI Engine |
AI engine, which is automatically set according to the model storage path you select, used by the meta model. If the AI Engine is Custom, configure the following parameters:
|
Runtime Dependency |
Dependencies that the selected model has on the environment. |
AI Application Description |
AI application descriptions to help other developers better understand and use your application. Click Add AI Application Description and enter the document name and URL. You can add up to three descriptions. |
Configuration File |
The system associates the configuration file stored in OBS by default. After enabling this function, you can review and edit the model configuration file. NOTE:
This function is to be discontinued. After that, you can modify the model configuration by setting AI Engine, Runtime Dependency, and API Configuration. |
Deployment Type |
Choose the service types for application deployment. The service types you select will be the only options available for deployment. For instance, selecting Real-Time Services means the AI application can only be deployed as real-time services. |
API Configuration |
You can enable it to edit RESTful APIs to define the AI application input and output formats. The API configuration must comply with ModelArts specifications. For details, see apis parameters in Specifications for Editing a Model Configuration File. Code Example of apis Parameters shows an example. |
In the AI application list, you can view the created AI application and its version. When the status changes to Normal, the AI application is created. On this page, you can perform such operations as creating versions, publishing AI applications, and deploying services.
Deploying an AI Application as a Service: In the AI application list, click the down arrow on the left of an AI application name to check all versions of the AI application. Locate the row that contains the target version, click Deploy in the Operation column, and select a deployment type from the drop-down list. The AI application can be deployed as a deployment type selected during AI application creation.