Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Instance Types for Built-in Algorithms

Focus mode
Instance Types for Built-in Algorithms - Amazon SageMaker AI

For training and hosting Amazon SageMaker AI algorithms, we recommend using the following Amazon EC2 instance types:

  • ml.m5.xlarge, ml.m5.4xlarge, and ml.m5.12xlarge

  • ml.c5.xlarge, ml.c5.2xlarge, and ml.c5.8xlarge

  • ml.p3.xlarge, ml.p3.8xlarge, and ml.p3.16xlarge

Most Amazon SageMaker AI algorithms have been engineered to take advantage of GPU computing for training. For most algorithm training, we support P2, P3, G4dn, and G5 GPU instances. Despite higher per-instance costs, GPUs train more quickly, making them more cost effective. Exceptions are noted in this guide.

The size and type of data can have a great effect on which hardware configuration is most effective. When the same model is trained on a recurring basis, initial testing across a spectrum of instance types can discover configurations that are more cost-effective in the long run. Additionally, algorithms that train most efficiently on GPUs might not require GPUs for efficient inference. Experiment to determine the most cost effectiveness solution. To get an automatic instance recommendation or conduct custom load tests, use Amazon SageMaker Inference Recommender.

For more information on SageMaker AI hardware specifications, see Amazon SageMaker AI ML Instance Types.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.