Deploying a Model Version¶
After the model version is staged, it can be deployed to the corresponding container to run.
You can deploy the first version of the model online by following these steps:
In the model list, click a model name to open the Model Version Management page.
Under the Deployment Instance tab, click New Instance.
Select to deploy the model version to the current hosting environment or deploy the model version to an Edge node.
Deploying Model Versions to Current Environment¶
By following these steps, you can deploy the model version to the current hosting environment for users to access, test and monitor in the form of predictive services.
Select the Cloud Deployment type and complete the following configuration:
Instance name: enter the deployment instance name
Deployment Target: select the created resource pool
Tag: enter the deployment instance tags
Description: enter the description of the deployment instance
Click Confirm to complete the deployment instance creation. The newly created deployment instance will be displayed in the Deployment Instance list.
Click the deployment instance name to enter the model deployment page. The model deployment page is mainly composed of editing canvas, deployment configuration bar, and deployment log bar. The cards in the editing canvas can represent models, model versions and traffic routers. After clicking to select a card, the corresponding configuration items will be displayed in the deployment configuration column. After clicking to select a model version card, the deployment log of the model version will be displayed in the deployment log column.
In the editing canvas, click Upgrade to New Version, select the model version that has been staged in the pop-up window, and click OK.
The added model version will be displayed as a Version card in the editing canvas. Select the Version card, and then configure the resources for running the model version in the Deployment Configuration window on the right side:
Object Resources: displays the container resources for deploying the model version
In the Resource Request section, enter the CPU and memory required to run the model version
In the Resource Limit section, enter the upper limit of CPU and memory for running the model version
If you need to automatically scale up or down the resources required to run the model service based on the busy rate indicator of the model service, you can turn on Enable Auto Scale and complete the following configuration:
In the Pod Replicas section, enter the minimum and maximum values of Pod replicas
In the Scaling Metrics section, select the trigger indicator (CPU or memory) that initiates the elastic scaling
In the Target Average Utilization input box, enter the target average utilization
Click the Deploy button in the upper right corner of the page, and the system will deploy the model version according to the set resource configuration. Unfold the deployment log to view the progress of the model version deployment.
After the model version is successfully deployed, select the Predictor card in the editing canvas bar on the left side of the model deployment page, and you can view the calling method and calling address of the model service under the Service Calling tab on the right side.
In the Timeout input box, set the
timeout
limit for accessing the model service API. The minimum time can be set to 1000ms, and the maximum time can be set to 60000ms.Under the Online Test tab, select the Service Calling Test type, and enter the test parameters in the Input box, and then click Test to test and verify the model service.
Under the Online Test tag, select the Feedback Test type, and enter the test parameters in the Input input box, and then click Test to test and verify the model feedback.
Return to the Model Version Management page, and you can check that the status of the model version has changed to
Production
under the Version Management tab.
Deploying Model Versions to Edge Node¶
Note
As the current IaaS does not support Edge deployment, the Edge node deployment is not supported currently for the model version deployment.