Skill 2.2.3
Develop optimized FM deployment approaches to balance performance and resource requirements for GenAI workloads (for example, by selecting appropriate models, by using smaller pre-trained models for specific tasks, by using API-based model cascading to perform routine queries)
Key Concepts
Many tasks, such as classification, extraction, routing and short summaries, are handled well by small models that are faster and cheaper per token. A smaller pre-trained model, possibly fine-tuned or distilled from a larger one, can replace a large general model for a narrow task.
Model cascading sends each request to a small model first and escalates to a larger model only when the small model's confidence is low, a validation check fails or the request is classified as complex. Implemented behind one API, it keeps routine queries cheap while preserving quality for hard ones. Amazon Bedrock Intelligent Prompt Routing provides a managed form of this within a model family.