AI Cloud Architect

Scaling MoE reinforcement learning on Amazon EKS with EFA and DeepEP with 40% more throughput

AWSHow-to by Ashvin Nihalani, Alexander Zhipa, James Park and Vijay RajakumarAWS Artificial Intelligence Blog

Learn how to scale Mixture-of-Experts (MoE) reinforcement learning on Amazon EKS using Elastic Fabric Adapter (EFA) and DeepEP. This post presents an architecture that combines Amazon EKS, EFA, and Amazon S3 and increased aggregate reinforcement learning rollout throughput by 40% for large-scale RLHF and GRPO training.

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

AI: Summary

What it is

A reference architecture on Amazon EKS and EFA runs MoE reinforcement learning with DeepEP over EFA, which AWS says raised aggregate rollout throughput by 40% in one test.

Who it is for

Teams running large MoE RLHF or GRPO post-training on EKS that need to plan node groups, EFA networking and rollout capacity.

Key points

  • Test used 48 P5en instances (16 training, 32 inference) with a super-sparse MoE model; the 40% result is AWS's internal measurement.
  • Rollout workers can run on Spot Instances while policy-training nodes stay on on-demand capacity.
  • Prerequisites include EKS 1.31 or later, EFA installer 1.49, DeepEP 2.0.0 and NCCL 2.31.2.

The same at other vendors

Timeline

Posts about Amazon EKS, oldest first.

  1. New featureSplit Cost Allocation Data for Amazon EKS supports NVIDIA & AMD GPU, Trainium, and Inferentia-powered EC2 instances · AWS · Announcement
  2. Read firstConfigure and verify a distributed training cluster with AWS Deep Learning Containers on Amazon EKS · AWS · How-to
  3. New featureAnnouncing Kubernetes Dynamic Resource Allocation for Elastic Fabric Adapter · AWS · Announcement
  4. Customer storyHow ALS GeoAnalytics LITHOLENS ™ revolutionizes core logging through machine learning with Amazon EKS · AWS · Customer story
  5. New featureAmazon EKS now supports EFA and placement groups on Amazon EKS Auto Mode and Karpenter · AWS · Announcement
  6. This postScaling MoE reinforcement learning on Amazon EKS with EFA and DeepEP with 40% more throughput

Go deeper