Use this template to automate the entire model lifecycle that includes both model building and deployment workflows. Ideally suited for continuous integration and continuous deployment (CI/CD) of ML models. Process data, extract features, train and test models, and register them in the model registry. The template provisions an AWS CodeCommit repository for checking in and managing code versions. Kick off the model deployment workflow by approving the model registered in the model registry for deployment either manually or automatically. You can customize the seed code and the configuration files to suit your requirements. AWS CodePipeline is used to orchestrate the model deployment. Model building pipeline: SageMaker Pipelines Code repository: AWS CodeCommit Orchestration: AWS CodePipeline
This project is derived from the built-in Build, Train, and Deploy Project but uses serverless inference endpoints.
Part 1: Create initial Service Catalog Product
-
To create the Service Catalog product for this project, download the
create-serverless-inf-product.yaml
and upload it into your CloudFormation console: https://console.aws.amazon.com/cloudformation/home?#/stacks/create/template -
Update the Parameters section:
-
Supply a unique name for the stack
-
Enter your Service Catalog portfolio id, which can be found in the Outputs tab of your deployed portfolio stack or in the Service Catalog portfolio list: https://console.aws.amazon.com/servicecatalog/home?#/portfolios
-
Update the Product Information. The product name and description are visible inside of SageMaker Studio. Other fields are visible to users that consume this directly through Service Catalog.
-
Support information is not available inside of SageMaker Studio, but is available in the Service Catalog Dashboard.
-
Updating the source code repository information is only necessary if you forked this repo and modified it.
-
-
Choose Next, Next again, check the box acknowledging that the template will create IAM resources, and then choose Create Stack.
-
Your template should now be visible inside of SageMaker Studio.
Part 2: Deploy the Project inside of SageMaker Studio
-
Open SageMaker Studio and sign in to your user profile.
-
Choose the SageMaker components and registries icon on the left, and choose the Create project button.
-
The default view displays SageMaker templates. Switch to the Organization templates tab to see custom project templates.
-
The template you created will be displayed in the template list. (If you do not see it yet, make sure the correct execution role is added to the product and the sagemaker:studio-visibility tag with a value of true is added to the Service Catalog product).
-
Choose the template and click Select the correct project template.
-
Fill out the required fields for this project.
-
Name: A unique name for the project deployment.
-
Description: Project description for this deployment.
-
-
Choose Create Project.
-
After a few minutes, your example project should be deployed and ready to use.