Accelerate large-scale AI training with Amazon SageMaker HyperPod training operator
AWS•How-to••by Arun Kumar Lokanatha, Anirudh Viswanathan and Haard Mehta•AWS Artificial Intelligence Blog
In this post, we demonstrate how to deploy and manage machine learning training workloads using the Amazon SageMaker HyperPod training operator, which enhances training resilience for Kubernetes workloads through pinpoint recovery and customizable monitoring capabilities. The Amazon SageMaker HyperPod training operator helps accelerate generative AI model development by efficiently managing distributed training across large GPU clusters, offering benefits like centralized training process…
The HyperPod training operator, an EKS add-on, restarts only failed training processes and monitors training logs for hangs, cutting recovery from tens of minutes to seconds (AWS claim).
Who it is for
Teams training large models on SageMaker HyperPod EKS clusters that want faster recovery from GPU failures and hang detection.
Key points
Requires an EKS cluster version 1.28 or later, cert-manager add-on, and the EKS Pod Identity Agent add-on.
Hang detection is configured through log regex patterns and timeouts in the job YAML.
Walkthrough trains Llama 3.1 8B with FSDP on a p5.48xlarge-based setup, using the allenai/c4 dataset streamed from Hugging Face.
AI:Both target fast recovery from failed accelerators during large training runs; AWS uses a managed EKS operator, Google uses MaxText with Pathways on GKE.
AI:SageMaker AI adds an agent-guided serverless model customization workflow (preview), elastic training and checkpointless recovery on HyperPod, and serverless MLflow.
AI:SageMaker AI now has an inference router that sends model requests across registered endpoints in several Regions and accounts, preferring the local Region and failing over when it cannot serve reliably.
AI:SageMaker AI's inference router sends each model request to the healthiest SageMaker endpoint across Regions and accounts, so a saturated local endpoint can fail over without changing app code.