View a markdown version of this page

SageMaker AI Training Jobs - Amazon SageMaker AI

SageMaker AI Training Jobs

Amazon SageMaker AI Training Jobs is a fully managed service that you can use to efficiently train AI/ML models at scale. With SageMaker AI Training Jobs, you can select and manage compute instances for model customization. You have full control over instance type and configuration. Jobs are ephemeral — instances are provisioned for the duration of training and released when complete. For more information about SageMaker AI Training Jobs, see Train a Model with Amazon SageMaker AI.

For a fully managed experience without instance selection, see Serverless model customization.

Overview

Regional availability

SageMaker AI Training Jobs is available in all SageMaker AI regions.

Interfaces

Recipes

Run pre-configured training recipes using SageMaker AI Recipes. Recipes work with both SageMaker AI Training Jobs and HyperPod, automating dataset loading, distributed training, and checkpoint management.

Python SDK V3 (ModelTrainer)

Use the ModelTrainer class from the SageMaker AI Python SDK to submit training jobs programmatically with full control over instance selection and configuration.

from sagemaker.modules.train import ModelTrainer from sagemaker.modules.configs import Compute, InputData trainer = ModelTrainer( training_image="my-training-image", role="arn:aws:iam::123456789012:role/SageMakerRole", compute=Compute(instance_type="ml.p4d.24xlarge", instance_count=2) ) trainer.train(input_data_config=[ InputData(channel_name="training", data_source="s3://my-bucket/train") ])
Studio (legacy models)

For older models, use the model detail card → Train button in Studio. This flow allows instance selection and hyperparameter configuration.

Supported techniques

  • SFT, DPO, RLVR, RLAIF (via Recipes)

  • PPO (Amazon Nova models only)

  • CPT (Continued Pre-Training)

Supported training types

  • LoRA

  • FFT (Full Fine-Tuning)

Getting started

To get started with SageMaker AI Training Jobs using Recipes:

  1. Clone the recipes repository:

    git clone --recursive https://github.com/aws/sagemaker-hyperpod-recipes.git cd sagemaker-hyperpod-recipes pip3 install -r requirements.txt
  2. Choose a recipe from recipes_collection/recipes/fine-tuning/ for your model and technique.

  3. Configure your training data path and hyperparameters in the recipe YAML file.

  4. Launch the training job using the launcher script.

For detailed tutorials, see SageMaker AI HyperPod recipes documentation.