AI Cloud Architect

Distributed training with Ray Train DLCs and EFA on EKS

AWSHow-to by Sunita Koppar, Kevin Wang and Sukhmeet SinghAWS Artificial Intelligence Blog

The Ray Train Deep Learning Container ships the full CUDA-through-EFA stack, so you build no image. This post walks through a reproducible sample that fine-tunes Qwen2.5-1.5B with PyTorch FSDP across eight GPUs on two EFA-enabled g6.12xlarge instances on Amazon EKS, using the container exactly as published.

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

AI: Summary

What it is

The Ray Train DLC bundles the CUDA, NCCL, EFA and Ray stack, so a multi-node FSDP fine-tune of Qwen2.5-1.5B on EKS runs with no custom image build.

Who it is for

Teams running multi-node PyTorch training on EKS with GPU instances that want to skip building and aligning their own container image.

Key points

  • Sample uses eight NVIDIA L4 GPUs on two g6.12xlarge instances with EFA enabled.
  • Image tag train-ml-cuda-v1.1 is pinned in the sample; vX.Y tags receive security rebuilds.
  • Post says EFA path doubled throughput over TCP on the same code; this is the author's measured claim.
  • Requires about 96 G-family On-Demand vCPUs and costs about $9.50 per hour while running, per the post.

The same at other vendors

Same approach

GoogleHow-to

Run Ray on TPU, Part 2: Ray AI libraries

AI:Both show running Ray Train distributed fine-tuning on a managed Kubernetes accelerator setup, one on GPUs with EFA and one on Google TPU slices.