AI Cloud Architect

How Amazon Search increased ML training twofold using AWS Batch for Amazon SageMaker Training jobs

AWSHow-to by Mona Mona, Bruno Pistone, James Park and Mayank JhaAWS 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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

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.

Timeline

  1. This postHow Amazon Search increased ML training twofold using AWS Batch for Amazon SageMaker Training jobs
  2. What it explainsAWS Batch now supports quota management and preemption for SageMaker Training jobs · AWS · Announcement

Go deeper