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:

  1. In the model list, click a model name to open the Model Version Management page.

  2. Under the Deployment Instance tab, click New Instance.

  3. Select to deploy the model version to the current hosting environment or deploy the model version to an Edge node.

    ../_images/publish_version_type.png

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.

  1. 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
    ../_images/publish_version_basics.png
  2. Click Confirm to complete the deployment instance creation. The newly created deployment instance will be displayed in the Deployment Instance list.

    ../_images/deployment_instance_list.png
  3. 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.

    ../_images/publish_version.png
  4. 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.

    ../_images/adding_publish_version.png
  5. 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
    ../_images/publish_version_config.png
  6. 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
    ../_images/publish_version_config_1.png
  7. 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.

    ../_images/publish_version_log.png
  8. 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.

  9. 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.

    ../_images/published_model_service.png
  10. 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.

    ../_images/publish_version_testing.png
  11. 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.

    ../_images/publish_version_testing_1.png
  12. 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.

    ../_images/version_production.png

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.