This repository contains reference architectures and test cases for distributed model training with AWS ParallelCluster, AWS Batch, and Amazon EKS. The test cases cover different types and sizes of models as well as different frameworks and parallel optimizations (Pytorch DDP/FSDP, MegatronLM, NemoMegatron...).
The major components of this directory are:
reference-architectures/
|-- 1.architectures # CloudFormation templates for reference arch
|-- 2.amazon_machine_images/ # Scripts to create AMIs
|-- 3.test_cases/ # Reference test cases and/or benchmark scripts
|-- 3.validation_scripts/ # Tools to measure performance or troubleshoot
`-- ...
NOTE: the architectures are designed to work with the S3 bucket and VPC created using reference templates 1.architectures/0.s3/
and 1.architectures/1.vpc_network/
. You're strongly recommended to deploy these two templates before deploying any of the reference architectures.
Architectures are located in 1.architectures
and consists of utilities and service related architectures
Name | Category | Usage |
---|---|---|
0.s3 |
Storage | Create an S3 bucket |
1.vpc_network |
Network | Create a VPC with subnets required resources |
2.aws-parallelcluster |
Compute | Cluster templates for GPU & custom silicon training |
3.aws-batch |
Compute | AWS Batch template for distributed training |
4.amazon-eks |
Compute | Manifest files to train with Amazon EKS |
More will come, feel free to add new ones (EKS, Ray?)
Custom machine images can be built using Packer for AWS ParallelCluster, Amazon EKS and plain EC2. These images are based are on Ansible roles and playbooks.
All test cases are under 3.test_cases/
. You can go in each test case directory to learn how to run it.
Test cases | Slurm | EKS | AWS Batch |
---|---|---|---|
1.megatron-lm |
✅ | ❓ | ❓ |
2.nemo-launcher |
✅ | ❌ | ❌ |
3.MPT |
✅ | ❓ | ❓ |
4.DDP |
✅ | ❓ | ❓ |
5.param-benchmark |
✅ | ❓ | ❓ |
Utilities scripts and micro-benchmarks examples are set under 4.validation_scripts/
.
Thanks to all the contributors for building, reviewing and testing.
- Pierre-Yves Aquilanti - pierreya@
- Verdi March - marcverd@
- Uros Lipovsek - lipovsek@
- Keita Watanabe - mlkeita@
- Ankur Srivastava - awsankur@
- Alex Iankoulski - iankouls@
- Tom McDonald - tjm@
- Sean Smith - seaam@
- Jianying Lang - langjian@
- Maxime Hugues - maxhaws@