Home icon

Distributed training with Ray Train DLCs and EFA on EKS

Machine Learning Blog



This article demonstrates distributed PyTorch training with Ray Train Deep Learning Containers (DLC) and Elastic Fabric Adapter (EFA) on Amazon EKS, eliminating the need to build custom container images.

  • Ray Train DLC includes pre-assembled CUDA, PyTorch, NCCL, EFA libraries, and AWS OFI NCCL plugin tested as a single unit
  • KubeRay operator manages Ray head and worker pods from a single RayCluster manifest on EKS
  • Sample fine-tunes Qwen2.5-1.5B using PyTorch FSDP across eight L4 GPUs on two g6.12xlarge instances
  • Configuration via environment variables and manifest templates; no image rebuilds needed per job
  • EFA networking automatically engaged through resource requests and environment variables for high-speed inter-node communication
  • Training code is model-agnostic; Ray Train handles distributed setup and process group formation
  • Scripts automate capacity discovery, cluster deployment, and job submission with idempotent operations

The approach eliminates container image management complexity while enabling reproducible, scalable distributed training on Kubernetes with optimized networking.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Sep 16
2026
Fault tolerant distributed training on Amazon EKS using NVRx
Sep 25
2026
Scaling MoE reinforcement learning on Amazon EKS with EFA and DeepEP with 40% more throughput
Oct 12
2026
Run multi-node inference workloads using Ray LLM Deep Learning Containers
Oct 29
2026
Accelerate agentic AI with NVIDIA Nemotron models on Amazon EKS and SageMaker HyperPod EKS

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.