Coder Social home page Coder Social logo

vdutts7 / dnn-distributed Goto Github PK

View Code? Open in Web Editor NEW
48.0 2.0 12.0 14 KB

Distributed training of DNNs • C++/MPI Proxies (GPT-2, GPT-3, CosmoFlow, DLRM)

C++ 100.00%
distributed-deep-learning dnn message-passing-interface model-parallelism deep-neural-networks mpi

dnn-distributed's Introduction

logo

Distributed DNNs (Deep Neural Networks)

C++/MPI proxies to perform distributed training of DNNs

Github


Table of Contents

    📝 About
    💻 How to build
    🔧 Tools used
    👤 Contact

📝About

C++/MPI proxies to perform distributed training of DNNs (deep neural networks):

  • GPT-2
  • GPT-3
  • CosmoFlow
  • DLRM

These proxies cover:

  • Data parallelism: same NN replicated across multiple processors, but each copy processes a different subset of the data
  • Operator parallelism: splitting different operations (i.e. layers) of a NN across multiple processors
  • Pipeline parallelism: different stages of a NN are processed on different processors, in a pipelined fashion
  • Hybrid parallelism: combines two or more of the above types of parallelism i.e. different parts of the NN are processed in parallel across different processors AND data is also split across processors

Benchmarking GPU interconnect performance • NCCL/MPI

  • MPI for distributed training: managing communication between nodes in a distributed system, enabling efficient data parallelism and model parallelism strategies
  • NCCL for optimized GPU communication: common communication operations such as all-reduce performed on NVIDIA GPUs

Scaling techniques for model parallelism

  • Essential for large model training i.e. ones that don't even fit into the memory of a single GPU
  • The GPT-3 example shows a hybrid approach to model and data parallelism. Scaling out training of extremely large models (GPT-3 has over >150 billion paramaters) across multiple GPUs and nodes

Optimizing CNNs

  • The CosmoFlow example illustrates distributed training of a CNN, leveraging GPU acceleration for performance gains.

💻 How to build

Compile via:

mpicxx communications/gpt-2.cpp -o gpt-2

Then run:

mpirun -n 32 ./gpt-2

Set the total num of Transformer layers AND total num of pipeline stages:

mpirun -n 32 ./gpt-2 64 8

🔧Tools Used

C++ MPI NCCL pyTorch

👤Contact

Email Twitter

dnn-distributed's People

Contributors

vdutts7 avatar

Stargazers

 avatar  avatar Maria avatar samuel maines avatar Jimmy avatar jamie avatar Fillip avatar Giyatri avatar Jacob avatar Fiddy avatar JJ avatar Deus avatar Repu avatar Will avatar Zolty avatar Harrison Gates avatar Maximus Joyt avatar Mahee avatar Halocod avatar Miyoko avatar Laca Zot avatar Ryan Donaher avatar Auri Kugo avatar Woffl Stompf avatar  avatar Zeb XT avatar Gyes avatar ZQ avatar Diheohob avatar Skars Ladh avatar Kate M avatar Myka avatar Sosharty avatar Skiffy avatar Guhroat avatar Jimmi Jonga avatar Mikel Gorbo avatar Cropdusto avatar Waffle Stomper avatar phil a. mignon avatar slimy sal avatar Benjamin Dover avatar  avatar  avatar dadoink avatar JG avatar  avatar Jack G avatar

Watchers

 avatar  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.