Automating Model Lifecycle with Amazon SageMaker

Automating Model Lifecycle with Amazon SageMaker
Automating Model Lifecycle with Amazon SageMaker

CLOUD LABS



Automating Model Lifecycle with Amazon SageMaker

In this Cloud Lab, you’ll gain insights into automating the ML model lifecycle with Amazon SageMaker. You’ll learn about deploying CI/CD pipelines, setting up environments, and real-time inference using Lambda.

9 Tasks

advanced

2hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Hands-on experience with SageMaker Studio and SageMaker domains
Develop an understanding of MLOps in AWS environment using SageMaker Projects
Hands-on experience automating machine learning tasks using SageMaker Pipelines
An understanding of how to deploy an endpoint for real-time inference using API Gateway

Technologies
SageMaker
CodeBuild logoCodeBuild
CodePipeline
Cloud Lab Overview

Generative AI workflows typically involve provisioning compute, storage, and networking resources to train or fine-tune models and then deploying them for inference. Terraform enables us to define these resources as code, allowing for automated and consistent infrastructure management across various environments.

In this Cloud Lab, you’ll learn how to deploy the complete CI/CD pipeline for training a machine learning model using Amazon SageMaker. You’ll start by setting up an S3 bucket to store the training dataset and model artifacts. Next, you’ll set up a SageMaker environment to use SageMaker Studio and create a SageMaker Project. Moving on, you’ll modify the SageMaker Project according to the use case and deploy the SageMaker endpoint. Finally, you’ll create a Lambda function to test the SageMaker endpoint for real-time inference.

By the end of this Cloud Lab, you will have a firm grasp of the concept of MLOps environment in SageMaker. Also, you’ll be able to create an end-to-end pipeline for your machine learning projects using SageMaker. The architecture diagram below shows the provisioned infrastructure:

Implementing a machine learning pipeline using Amazon SageMaker
Implementing a machine learning pipeline using Amazon SageMaker

Cloud Lab Tasks
1.Introduction
Getting Started
2.Setting Up SageMaker MLOps Environment
Create a Code Connection
Create SageMaker Domain and User Profile
Build the SageMaker Project
Modify the SageMaker Project
Approve SageMaker Endpoint Deployment
3.Test the SageMaker Endpoint
Create a Lambda Function
4.Conclusion
Clean up
Wrap up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

Hear what others have to say
Join 1.4 million developers working at companies like