Introduction to Model Deployment and Inference
Choosing inference options and deployment targets, multi-model and multi-container hosting, and deploying models programmatically with the SageMaker Python SDK, Boto3 and the AWS CLI.
- 4 lessons
- Module quiz
A trained model creates value only when applications can send it data and receive predictions. Deployment choices decide how fast those predictions arrive, how large the requests can be, how the system copes with changing traffic and how much it costs when idle.
SageMaker AI offers four inference options. Real-time inference serves low-latency requests from persistent endpoints. Serverless inference scales with traffic and costs nothing when idle, but has no GPUs. Asynchronous inference queues large or slow requests and can scale to zero. Batch transform scores whole datasets without an endpoint. Models can also run on Amazon EKS, Amazon ECS, AWS Lambda or Amazon EC2 when a team needs a different platform.
What the exam expects
Questions test choosing the inference option from payload size, processing time and traffic pattern, using the limits of each option, and remembering that Lambda, Fargate and serverless inference cannot use GPUs. Multi-model and multi-container endpoints, which reduce cost when many models are hosted, also appear.
How this module is organised
Choosing a SageMaker AI Inference Option compares the four options. Choosing Compute Environments for Model Hosting compares SageMaker AI with the other platforms. Sharing Endpoints with Multi-Model, Multi-Container and Inference Components explains shared hosting, and Deploying and Invoking Models Programmatically explains the model, endpoint configuration and endpoint resources and how they are created in code.
- Choosing a SageMaker AI Inference Option Lesson 1
- Choosing Compute Environments for Model Hosting Lesson 2
- Sharing Endpoints with Multi-Model, Multi-Container and Inference Components Lesson 3
- Deploying and Invoking Models Programmatically Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 4 questions