Skip to content

chuanli11/benchmark_openseq2seq

 
 

Repository files navigation

Benchmark OpenNMT

This repo contains scripts to benchmark the training speed of OpenSeq2Seq on different machines.

To run the benchmark, use this command

./batch_benchmark.sh <model_type> <min_num_gpu> <max_num_gpu> <batch_size_per_gpu>
cat summary-<model_type>.md

The script will spin multiple runs with number of gpus increased from min_num_gpu to max_num_gpu. Results will be saved as summary-<model_type>.md file.

  • model_type: Check folder example_configs/text2text/en-de. For example, use en-de-nmt-small-fp32 and en-de-nmt-small-fp16 to train a small nmt with single or mixed precision.
  • min_num_gpu: default to 1.
  • max_num_gpu: default to 8.
  • batch_size_per_gpu: default to 128

About

Toolkit for efficient experimentation with various sequence-to-sequence models

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.9%
  • C++ 3.9%
  • Shell 1.8%
  • Perl 1.5%
  • Jupyter Notebook 0.5%
  • Dockerfile 0.2%
  • Makefile 0.2%