AI Cloud Architect

Fault tolerant distributed training on Amazon EKS using NVRx

AWSHow-to by Aravind Neelakantan and Shreya GuptaAWS Artificial Intelligence Blog

Integrate NVIDIA Resiliency Extension (NVRx) into PyTorch FSDP training on Amazon EKS to overlap checkpoint I/O with training and recover from GPU faults in seconds. This post covers async checkpointing, in-process restart, and ft_launcher in-job restart, with H100 benchmarks at 2 to 8 nodes showing 99%+ training efficiency and second-scale recovery.

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

AI: Summary

What it is

NVRx adds async checkpointing and two restart layers to PyTorch FSDP training on EKS, so checkpoint I/O overlaps training and GPU faults recover in seconds.

Who it is for

ML platform engineers running multi-node H100 PyTorch FSDP training on EKS who lose GPU hours to checkpoint blocking or faults.

Key points

  • AWS reports 99%+ training efficiency with async checkpointing at 2 to 8 nodes, versus 57-61% for synchronous saves.
  • In-process restart recovers in about 10 seconds with no container restarts (AWS benchmark, 2 nodes); ft_launcher takes about 17 seconds per fault.
  • Benchmarks used p5.48xlarge H100 nodes, LLaMA-3.1-8B, and NVRx 0.4.1; the post advises v0.6.0 for current deployments.

The same at other vendors