haopeng-nlp/submission

1

stars

21

commits

Python

primary language

Jun 28, 2023

updated

README

Submission Example Repo for Efficiency Pentathlon

Introduction

This is our example repository for submission guidelines to the efficiency benchmark. We focus on WMT for Seq2Seq MT efficiency evaluation.

  • WMT: We provide an interface for wmt14-en-de (English to German), wmt14-de-en (German to English), wmt16-en-ro (English to Romanian) and wmt16-ro-en (Romanian to English) tasks.

We plan to add more tasks soon!

Repository

submission
├── Dockerfile                      # Spec for Docker runtime (do not modify)
├── README.md                       # Instructions
├── auto.py                         # Template for Seq2Seq Model submissions
├── entrypoint.py                   # Driver class for usage (see submission format below)
├── mbart.py                        # MBART model family example (for WMT tasks)
├── opus.py                         # OPUS model family example (for WMT tasks)
├── requirements.txt                # Requirements for runtime. You might need to change this

Submission instructions

To install the benchmark code see https://github.com/allenai/efficiency-pentathlon.

To run the mBART WMT14-en-de example locally

https://github.com/haopeng-nlp/submission.git
cd submission

# In the same (new) environment as above. These will be *your* requirements to run.
pip install -r requirements.txt 
TASK=wmt14-en-de
SCENARIO=single_stream
MODEL="facebook/mbart-large-50-many-to-many-mmt"

# Everything after -- is your command with specific instructions for the Python script
efficiency-pentathlon run --task $TASK  --max_batch_size 50 --scenario $SCENARIO \
    -- python entrypoint.py --model $MODEL --$TASK

To submit to the benchmark server

Example: Submitting an mBART model:

TASK=wmt14-en-de
MODEL="facebook/mbart-large-50-many-to-many-mmt"

# Everything after -- is your command with specific instructions for the Python script
efficiency-pentathlon submit --task $TASK  --max_batch_size 50 \
    -- python entrypoint.py --model $MODEL --$TASK

Contributors

tomsherborne

21 commits

haopeng-nlp/submission

1

stars

21

commits

Python

primary language

Jun 28, 2023

updated

README

Submission Example Repo for Efficiency Pentathlon

Introduction

This is our example repository for submission guidelines to the efficiency benchmark. We focus on WMT for Seq2Seq MT efficiency evaluation.

  • WMT: We provide an interface for wmt14-en-de (English to German), wmt14-de-en (German to English), wmt16-en-ro (English to Romanian) and wmt16-ro-en (Romanian to English) tasks.

We plan to add more tasks soon!

Repository

submission
├── Dockerfile                      # Spec for Docker runtime (do not modify)
├── README.md                       # Instructions
├── auto.py                         # Template for Seq2Seq Model submissions
├── entrypoint.py                   # Driver class for usage (see submission format below)
├── mbart.py                        # MBART model family example (for WMT tasks)
├── opus.py                         # OPUS model family example (for WMT tasks)
├── requirements.txt                # Requirements for runtime. You might need to change this

Submission instructions

To install the benchmark code see https://github.com/allenai/efficiency-pentathlon.

To run the mBART WMT14-en-de example locally

https://github.com/haopeng-nlp/submission.git
cd submission

# In the same (new) environment as above. These will be *your* requirements to run.
pip install -r requirements.txt 
TASK=wmt14-en-de
SCENARIO=single_stream
MODEL="facebook/mbart-large-50-many-to-many-mmt"

# Everything after -- is your command with specific instructions for the Python script
efficiency-pentathlon run --task $TASK  --max_batch_size 50 --scenario $SCENARIO \
    -- python entrypoint.py --model $MODEL --$TASK

To submit to the benchmark server

Example: Submitting an mBART model:

TASK=wmt14-en-de
MODEL="facebook/mbart-large-50-many-to-many-mmt"

# Everything after -- is your command with specific instructions for the Python script
efficiency-pentathlon submit --task $TASK  --max_batch_size 50 \
    -- python entrypoint.py --model $MODEL --$TASK

Contributors

tomsherborne

21 commits

Languages

Python

95.0%

Dockerfile

5.0%