Introduction to Foundation Model Deployment Strategies
Choosing between Amazon Bedrock inference options and self-hosting on SageMaker AI, handling the memory, GPU and loading challenges of large language models, and right-sizing models for each task.
- 4 lessons
- Module quiz
The same model can be served in several ways, and the choice affects cost, latency, capacity and control. On Amazon Bedrock, on-demand inference charges per token and suits variable traffic; batch inference processes large offline jobs at about half the price; and Provisioned Throughput reserves capacity, billed hourly, for steady high volume and some custom models. Bedrock can also serve imported open-weight models and models from Bedrock Marketplace.
When Bedrock does not offer a model or the control a team needs, the model is self-hosted on Amazon SageMaker AI. Self-hosting large language models brings challenges that managed inference hides: a model's weights need about 2 bytes of GPU memory per parameter at 16-bit precision, so large models may not fit on one GPU, and efficient serving needs specialised engines.
What the exam expects
Questions usually turn on matching the serving option to the traffic pattern, for example Provisioned Throughput for steady high utilisation and on-demand for spiky traffic, or on solving a self-hosting problem, such as a model too large for one GPU, which tensor parallelism or quantisation addresses. Right-sizing, using the smallest model that meets the quality bar, often reduces cost more than any serving choice.
How this module is organised
Choosing Amazon Bedrock Inference Options compares the ways of running models on Bedrock. Hosting Large Language Models on SageMaker AI explains JumpStart, large model inference containers and endpoint options. Sizing GPUs and Loading Large Models Efficiently explains how large models are fitted onto GPUs and loaded quickly, and Right-Sizing Models for the Task explains how smaller, task-specific and distilled models reduce cost.
- Choosing Amazon Bedrock Inference Options Lesson 1
- Hosting Large Language Models on SageMaker AI Lesson 2
- Sizing GPUs and Loading Large Models Efficiently Lesson 3
- Right-Sizing Models for the Task Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 3 questions