Giter Site home page Giter Site logo

rajanksin / awsome-distributed-training Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/awsome-distributed-training

0.0 0.0 0.0 94.39 MB

License: MIT No Attribution

Shell 24.39% Python 60.84% Makefile 0.81% HCL 2.33% Dockerfile 11.62%

awsome-distributed-training's Introduction

ML Training Reference Architectures & Tests

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.ami_and_containers/          # Scripts to create AMIs and container images
|-- 3.test_cases/                  # Reference test cases and/or benchmark scripts
|-- 4.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.

1. 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
5.sagemaker-hyperpod Compute SageMaker HyperPod template for distributed training

More will come, feel free to add new ones (EKS, Ray?). You will also find documentation for EFA and the recommended environment variables.

2. Custom Amazon Machine Images

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.

3. Test cases: support matrix

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 Kubernetes AWS Batch
1.megatron-lm
2.nemo-launcher
3.MPT
4.DDP
5.param-benchmark
6.stable-diffusion
7.tensorflow-distributed
8.neuronx-nemo-megatron
10.FSDP

4. Validation scripts

Utilities scripts and micro-benchmarks examples are set under 4.validation_scripts/.

5. CI

Integration tests are written in pytest. Just run:

pytest .

Alternatively you can run tests with out capturing stdout and keeping all docker images an other artifacts.

pytest -s --keep-artifacts=t

6. Contributors

Thanks to all the contributors for building, reviewing and testing.

Contributors

awsome-distributed-training's People

Contributors

perifaws avatar keitaw avatar awsankur avatar sean-smith avatar iankouls-aws avatar verdimrc avatar johnbensnyder avatar mhuguesaws avatar dependabot[bot] avatar guilhermemaiaribeiro avatar jianyinglangaws avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.