AI Cloud Architect

Configure and verify a distributed training cluster with AWS Deep Learning Containers on Amazon EKS

AWSHow-to by Meryem Ozcelik, Felipe Lopez, Jinyan Li, Pratik Yeole and G BuasaiAWS Artificial Intelligence Blog

Misconfiguration issues in distributed training with Amazon EKS can be prevented following a systematic approach to launch required components and verify their proper configuration. This post walks through the steps to set up and verify an EKS cluster for training large models using DLCs.

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

AI: Summary

What it is

Step-by-step guide to build a PyTorch DLC-based training image, launch an EKS cluster with p4d GPU nodes and EFA, install GPU, EFA, etcd and Kubeflow plugins, and run health checks plus a small Llama 2 7B fine-tuning job.

Who it is for

Platform engineers setting up EKS GPU clusters for distributed PyTorch training on p4d instances who need a validation checklist before large runs.

Key points

  • Example uses two p4d.24xlarge nodes from a capacity reservation, with EFA enabled and RAID0 local storage.
  • Health checks cover nvidia-smi, NCCL all-reduce tests, and EFA resource counts (P4d: 4, P5: 32).
  • The Llama 2 7B test job requires a Hugging Face token with access to the gated model.
  • Remember to delete the cluster after use to avoid cost.

Timeline

Posts about AWS Deep Learning Containers, oldest first.

  1. This postConfigure and verify a distributed training cluster with AWS Deep Learning Containers on Amazon EKS
  2. How-toReducing container cold start times using SOCI index on DLAMI and DLC · AWS · How-to
  3. Read nextScaling MoE reinforcement learning on Amazon EKS with EFA and DeepEP with 40% more throughput · AWS · How-to
  4. How-toRun multi-node inference workloads using Ray LLM Deep Learning Containers · AWS · How-to

Go deeper