Model version approval status and events

Updated at: 2024-02-05 11:15

You can change the approval status of model versions to trigger model-related events. You can use this feature to automatically update Elastic Algorithm Service (EAS) models, send messages to DingTalk groups through chatbots, or call the specified HTTP or HTTPS service when changes happen to the model version status.

Prerequisites

Permissions on EventBridge are granted to Platform for AI (PAI) in the workspace. For more information, see Create a notification rule.

Configure event rules for model management

  • Start configuration

    For more information, see Create a notification rule. Select Model Management for Event Source.

  • Supported Models

    • Specified models

    • Models that you created

    • All models in the current workspace

  • Supported events

    The following events can be automatically triggered when the approval status of the model version changes.

    • DingTalk messages: You can specify a DingTalk chatbot to send real-time notifications about specific status changes.

    • HTTP/HTTPS events: You can configure the service to automatically call the specified HTTP or HTTPS services when the model version approval status changes. Note that the specified interface needs to be parsed based on the specification template.

    • EAS service update: You can specify a running EAS service and configure automatic update for it when the model version approval status changes. The status of the model version needs to be set to Approved.

Approval status of model version

A model version can be in one of the following states:

  • Pending When a version is created, the model version is in the Pending state by default. You can manually deploy the version for later use.

  • Approved

  • Rejected

The model version may have the following changes:

Note

If a model version is set to Approved or Rejected, the status cannot be changed.

  • From Pending to Approved

    If the version status of a model that has a notification rule configured changes from Pending to Approved, an event is automatically triggered.

  • From Pending to Rejected

    If the version status of a model that has a notification rule configured changes from Pending to Rejected, an event is automatically triggered.

Set the approval status of a model version

  • Set the approval status when you register a new model or add a model version. For more information, see Register and manage models.

    You can set Version Approval Status to Pending or Approved. image

  • Set the approval status of registered model versions. image

    Feedback