Giter Site home page Giter Site logo

trellixvulnteam / chimera_nuvw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shigangli/chimera

0.0 0.0 0.0 740 KB

Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelines.

License: GNU General Public License v3.0

Shell 0.99% C++ 0.09% Python 98.71% Cuda 0.22%

chimera_nuvw's Introduction

Chimera: efficiently training large-scale neural networks with bidirectional pipelines

Chimera is novel pipeline parallelism approach, which is proposed for efficiently training large-scale neural network models (e.g., BERT, GPT-2/3) on parallel machines (e.g., GPU clusters). The key idea of Chimera is to reduce the number of bubbles in the pipeline, without introducing staleness in the training process. Our implementation (SC'21) was based on PyTorch and adapted from the PipeDream. We use GLOO as the distributed backend.

A new (concise and also fully-fledged) verion of Chimera will be added in the Chimera-BERT branch.

Directory Structure

chimera/chimera_bert Bert in Chimera.

chimera/chimera_gpt2 GPT-2 in Chimera.

chimera/chimera_pipes Chimera generalized to more than two pipelines.

chimera/performance_model Performance modelling for communications.

Run the Experiments

To install the required Python modules:

conda create --name py37 python=3.7

source activate py37

pip install -r requirements.txt

We run experiments on GPU clusters with SLURM job scheduler. For example, one can submit a job to the job queue by

cd ./job_scripts

sbatch daint_bert48_32nodes_chimera_4w8d.sh

Publication

Chimera is pulished in SC'21, Best Paper Finalist. See the paper and the video talk for more details. To cite our work:

@inproceedings{li143,
  author = {Li, Shigang and Hoefler, Torsten},
  title = {Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelines},
  year = {2021},
  isbn = {9781450384421},
  publisher = {Association for Computing Machinery},
  address = {New York, NY, USA},
  url = {https://doi.org/10.1145/3458817.3476145},
  doi = {10.1145/3458817.3476145},
  booktitle = {Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis},
  articleno = {27},
  numpages = {14},
  location = {St. Louis, Missouri},
  series = {SC '21}
}

License

See LICENSE.

chimera_nuvw's People

Contributors

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