Skill 4.2.1

Select inference instance families to optimize performance and cost

Key Concepts

ml.c (compute optimised) and ml.m (general purpose) suit classic ML and small models; ml.r suits memory-heavy models; ml.g5 and ml.g6 GPUs suit deep learning and small or medium LLMs; ml.p4d and ml.p5 suit the largest models.

AWS Inferentia2 (ml.inf2) gives low cost per inference for supported models compiled with the Neuron SDK, and Graviton instances lower cost for CPU inference. SageMaker Inference Recommender load-tests instance types to find the best price-performance.