# Distributed training with Ray Train DLCs and EFA on EKS

DevFeed: [Distributed training with Ray Train DLCs and EFA on EKS](<https://devfeed.tech/articles/distributed-training-with-ray-train-dlcs-and-efa-on-eks-105549.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/machine-learning/distributed-training-with-ray-train-dlcs-and-efa-on-eks/>)

Author: Sunita Koppar

Published: 2026-10-28T18:19:54Z

Content type: tutorial

Language: en

Sources: [Artificial Intelligence](<https://devfeed.tech/sources/artificial-intelligence.md>)

Topics: [distributed-training](<https://devfeed.tech/topics/distributed-training.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-eks](<https://devfeed.tech/tags/amazon-eks.md>), [amazon-elastic-kubernetes-service](<https://devfeed.tech/tags/amazon-elastic-kubernetes-service.md>), [build](<https://devfeed.tech/tags/build.md>), [container](<https://devfeed.tech/tags/container.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [deep](<https://devfeed.tech/tags/deep.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-training](<https://devfeed.tech/tags/distributed-training.md>), [efa](<https://devfeed.tech/tags/efa.md>), [eks](<https://devfeed.tech/tags/eks.md>), [expert-400](<https://devfeed.tech/tags/expert-400.md>), [fine](<https://devfeed.tech/tags/fine.md>), [gpus](<https://devfeed.tech/tags/gpus.md>), [image](<https://devfeed.tech/tags/image.md>), [learning](<https://devfeed.tech/tags/learning.md>), [post](<https://devfeed.tech/tags/post.md>), [ray](<https://devfeed.tech/tags/ray.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [train](<https://devfeed.tech/tags/train.md>), [training](<https://devfeed.tech/tags/training.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

The Ray Train Deep Learning Container (DLC) bundles a tested CUDA, PyTorch, NCCL, EFA and Ray stack for distributed training on EKS, avoiding a custom image build. The sample uses KubeRay and one unchanged image for the head and workers, then trains Qwen2.5-1.5B with FSDP across eight L4 GPUs on two g6.12xlarge instances. Kubernetes configuration supplies the hardware, EFA device request and networking variables; Ray Train starts one process per GPU and forms the PyTorch process group. The article also describes capacity checks and deployment scripts, prerequisites including 96 G-family vCPUs, and an estimated cost of about $9.50 per hour while the instances are running. The sample uses random token batches to verify cross-node FSDP and EFA operation; real data loading and checkpointing are left as adaptation steps. The text reports doubled throughput over TCP but gives no measurement details.

## Source excerpt

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.