How Amazon Search increased ML training twofold using AWS Batch for Amazon SageMaker Training jobs
AWS•How-to••by Mona Mona, Bruno Pistone, James Park and Mayank Jha•AWS Artificial Intelligence Blog
In this post, we show you how Amazon Search optimized GPU instance utilization by leveraging AWS Batch for SageMaker Training jobs. This managed solution enabled us to orchestrate machine learning (ML) training workloads on GPU-accelerated instance families like P5, P4, and others. We will also provide a step-by-step walkthrough of the use case implementation.
Amazon Search says AWS Batch fair-share scheduling for SageMaker Training jobs raised its peak GPU instance utilization from 40% to over 80%, with a walkthrough of the setup.
Who it is for
Teams running many concurrent SageMaker training jobs on GPU instances that need priority queues and fair sharing of reserved capacity.
Key points
Service environments set fixed GPU capacity limits per instance family; Share Identifiers allocate fractions of that capacity to workloads.
Fair-share queues let idle capacity be borrowed and preempt overused identifiers under contention.
Sample code uses the ModelTrainer class and creates a FIFO CPU queue and a fair-share GPU queue.
AI:SageMaker AI training session APIs let you write your own LLM training loop in Python while the service runs the GPUs, using sample, forward_backward and optim_step calls on a live session.
AI:Anyscale's managed Ray service can run on Amazon EC2 through EC2, EKS or SageMaker HyperPod, mapping each AI pipeline stage to different instance types with the same code.
AI:A CDK-based, event-driven pipeline that starts multi-turn RL training for Amazon Nova when a dataset lands in S3, with GRPO updates on HyperPod and a Fargate reward environment.