Example Workflows - Sagemaker Model Implementations

This article describes how ModelOp Center’s MLC’s can be used to orchestrate and automate the Sagemaker Model Implementation.

Table of Contents

Overview

The ModelOp Life Cycle Manager (MLC Manager) orchestrates and automates the the various steps involved in conducting Model Completeness validation, Model Risk evaluation and Governance processes.

Pre-Requisites

The following are the prerequisites for leveraging this Sagemaker Model Implementation MLC:

  • The Jira project must be configured with Done and Rejected statuses in the workflow

  • Attachments must be enabled for the Jira project

  • Standard Risk Tests model must be present with a valid snapshot

  • Business model must be deployed in production

  • Business model must have appropriate assets with the BASELINE_DATA and COMPARATOR_DATA asset roles

  • The Sagemaker model should already have existing "Endpoint Configuration" that will be used in the Snapshot for deployment

Process Overview

The process is triggered for the Sagemaker Business model implementation. The Sagemaker Model Implementations MLC runs Standard Risk Tests on the snapshot and generates test results. These results are used to generate a model review document for validation by a model reviewer. When the document review is approved the MLC updates the snapshot is Marked as Deployed in Production.

 

 

  1. Scheduler - the process is triggered by Use Case Registeration MLC based on ModelType “SAGEMAKER”.

  2. Model PIA Approval - the process creates PIA Approval Request Jira ticket and continues when the ticket is moved to Done status.

  3. Create Model Snapshot - A snapshot of the business model is created

  4. Run Standard Risk Tests - the process validates if the model assets with the BASELINE_DATA and COMPARATOR_DATA assets roles in preparation to run Standard Risk Tests on the model. If the assets are present in the model the MLC runs the Standard Risk Tests and creates a notification if any of the monitors in Standard Risk Tests fail to run. If the test job fails, a Jira ticket is created with the failed job error message. A test can be re-run if the Jira ticket is moved to Done.

  5. Approval Based on Test Results - A Jira ticket is created with document generated from the model test results for validation. If ticket is moved to Done the flow continues and adds the generated document to the model snapshot.

  6. Production Approval - Jira ticket is created for production deployment approval.

  7. Marked as Deployed- If ticket is moved to Done the snapshot will Mark as Deployed in Production

  8. Error handling -

    1. An error is logged if the flow is unable to get the business model

    2. An error notification is created for the following:
      i. Standard Risk Test snapshot is not found.
      ii. the first Jira ticket with document has been moved to Rejected.
      iii. any other exception occurs in the flow.

Next Article: >