Introduction to Selecting and Configuring Foundation Models
Assessing FM capabilities and limitations, selecting models with benchmarks and task-specific evaluation, configuring inference parameters and switching models without code changes.
- 4 lessons
- Module quiz
Amazon Bedrock offers dozens of foundation models from Amazon and other providers, in several sizes, and new models appear every few months. Choosing among them is a recurring decision, not a one-time one, and the choice has large effects: two models with similar quality on a task can differ several times over in cost and speed.
Selection proceeds in stages. First, capabilities rule models in or out: a model that cannot read images, lacks tool use or has too small a context window is excluded however good it is otherwise. Then the shortlisted models are compared on the actual task, using the organisation's own evaluation data, because public benchmarks rarely reflect a specific use case. The usual principle is to choose the smallest model that meets the quality bar.
Configuring and changing models
Once a model is chosen, inference parameters such as temperature and maximum tokens are set for each use case. Because the best model will change over time, applications should not hard-code it. The provider-neutral Converse API lets applications switch models by changing only the model ID, and AWS AppConfig can deliver that ID as validated configuration with gradual rollout and automatic rollback.
How this module is organised
Assessing Foundation Model Capabilities and Limitations explains what to check before comparing quality and which limitations the architecture must compensate for. Benchmarking and Selecting Foundation Models explains how to make a defensible selection. Configuring Inference Parameters for Each Use Case explains how sampling and length parameters shape output, and Switching Models Without Code Changes explains how to make the model a configuration choice.
- Assessing Foundation Model Capabilities and Limitations Lesson 1
- Benchmarking and Selecting Foundation Models Lesson 2
- Configuring Inference Parameters for Each Use Case Lesson 3
- Switching Models Without Code Changes Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 3 questions