Urgent.News

What's breaking now, across thousands of outlets.

AI

Distributed training with Ray Train DLCs and EFA on EKS

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.

The article discusses how the Ray Train Docker Container (DLC) streamlines distributed PyTorch training on a Kubernetes cluster.

Traditionally, scaling out PyTorch training requires building a container with matching CUDA and PyTorch versions, NCCL library, EFA userspace libraries, AWS OFI NCCL plugin, and compatible Ray version. This is a complex task that doesn't relate to the model being trained. AWS simplifies this by providing the Ray Train DLC, which is a pre-built container with Ray's training libraries and the required dependencies.

The DLC image contains the distributed runtime with the Ray dashboard, job server, and the necessary training libraries. When the Ray Train DLC is used, it replaces the need to build and maintain the container. The container handles the networking, CUDA, NCCL, and other dependencies automatically.

KubeRay, an open-source Kubernetes operator, simplifies the deployment of Ray clusters on Kubernetes. It creates the head and worker pods, starts Ray in the appropriate role for each, and manages the failure of pods. The Ray head coordinates the global control store, while the Ray worker nodes supply the GPUs and run the training processes.

The sample provided in the article demonstrates fine-tuning Qwen2.5-1.5B with PyTorch's Fully Sharded Data Parallel (FSDP) across eight NVIDIA L4 GPUs on two g6.12xlarge instances. The entire solution is contained within a single RayCluster manifest and environment variables file, with no need to build images. The Ray Train DLC allows training to run as a single cluster, leveraging the EFA stack for inter-node communication.

Written by urgent.news from AWS Machine Learning's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at aws.amazon.com →

More in AI

More from Wednesday 28 October →