Skip to content

Rivendile/examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BytePS Examples

This repo contains several examples to run BytePS, including popular CV/NLP models implemented in TensorFlow/PyTorch/MXNet. You can use them to reproduce the end-to-end evaluation results in the OSDI'20 paper of BytePS.

Usage

You should install BytePS before anything else.

A run.sh is provided for each example to demonstrate the basic usage. It does not set up the necessary enviroment variables needed by BytePS. Therefore, before you run these examples, we recommend you read this tutorial for detailed guidelines on launching BytePS. Usually it will be easier to get started on the simple example in that tutorial, and then try more complicated examples in this repo.

Read the best-practice doc for improving the training performance after you have launched BytePS successfully.

We also provide options to switch to Horovod for performance comparison. To do so, you should change bpslaunch to MPI-based command (see Horovod tutorial), and then change the value of related environment variable (usually DISTRIBUTED_FRAMEWORK) or python trailing argument as noted in each run.sh.

Acknowledgement

Some of our examples rely on public repos, including:

We use most of their code while slightly modify the communication part in order to use BytePS.

About

BytePS examples (Vision, NLP, GAN, etc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.0%
  • Jupyter Notebook 5.8%
  • Shell 1.3%
  • Groovy 0.4%
  • C++ 0.2%
  • Makefile 0.1%
  • Other 0.2%