MarkusSagen/Transformers-LM-Benchmark

Benchmark training and inference time for Transformer models on Huggingface

1

stars

6

commits

Python

primary language

Jul 29, 2021

updated

benchmark
benchmark-framework
bert-model
huggingface
transformers

README

#+title:     Benchmarking Transformers
#+author:    Markus Sagen
#+email:     Markus.Sagen@Peltarion.com

#+date:    July 19, 2021
#+startup: inlineimages nofold

* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]]

* Description
# A summary of what this module does.

+ If possible, include a brief list of feature highlights here
+ Like code completion, syntax checking or available snippets
+ Include links to packages & external things where possible


* Prerequisites
Install with
#+begin_src fish
poetry install
# or
pip install -
#+end_src

* Features
# An in-depth list of features, how to use them, and their dependencies.
Run experiment tracking on inference time, training time and training GPU size. A machine with large GPU is needed to run the experiments.
Investigates the relation between models, model size, sequence length, and batch size for Encoder type language models.

Run the results:
#+begin_src fish
python run_menchmarks.py
#+end_src

* Configuration
# How to configure this module, including common problems and how to address them.

* Troubleshooting
# Common issues and their solution, or places to look for help.
Decoder type models and some text to text models are know to not work in the existing testing framework.
Tested models that have not worked:

- T5
- mT5
- Funnel Transformers
- Reformer
- conv Bert

Feel free to send a PR or report issues to improve the results and extend the number of results.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

MarkusSagen

6 commits

MarkusSagen/Transformers-LM-Benchmark

Benchmark training and inference time for Transformer models on Huggingface

1

stars

6

commits

Python

primary language

Jul 29, 2021

updated

benchmark
benchmark-framework
bert-model
huggingface
transformers

README

#+title:     Benchmarking Transformers
#+author:    Markus Sagen
#+email:     Markus.Sagen@Peltarion.com

#+date:    July 19, 2021
#+startup: inlineimages nofold

* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]]

* Description
# A summary of what this module does.

+ If possible, include a brief list of feature highlights here
+ Like code completion, syntax checking or available snippets
+ Include links to packages & external things where possible


* Prerequisites
Install with
#+begin_src fish
poetry install
# or
pip install -
#+end_src

* Features
# An in-depth list of features, how to use them, and their dependencies.
Run experiment tracking on inference time, training time and training GPU size. A machine with large GPU is needed to run the experiments.
Investigates the relation between models, model size, sequence length, and batch size for Encoder type language models.

Run the results:
#+begin_src fish
python run_menchmarks.py
#+end_src

* Configuration
# How to configure this module, including common problems and how to address them.

* Troubleshooting
# Common issues and their solution, or places to look for help.
Decoder type models and some text to text models are know to not work in the existing testing framework.
Tested models that have not worked:

- T5
- mT5
- Funnel Transformers
- Reformer
- conv Bert

Feel free to send a PR or report issues to improve the results and extend the number of results.

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

Contributors

MarkusSagen

6 commits

Languages

Python

100.0%