This file describes the steps for (1) downloading dataset, (2) processing dataset, (3) training, and (4) evaluation.
Download the pre-processed dataset by clicking this link.
To train a model with a single node comprising of 8 V100 GPUs (each with 32 GB memory), you can use the following command:
python nmt_wmt16_en2ro.py --d-m 384
where --d-m
is the model dimension. In our experiments, we have only tested d-m={128, 256, 384, 640}
To evaluate a model, you can use the following command:
python generate.py data-bin/wmt16_en_ro/ --path <results_dir>/checkpoint_best.pt --beam 5 --remove-bpe --batch-size 128 --quiet
Here are the results that we obtain.
Model dimension (d_m) | Parameters | BLEU | Training Logs |
---|---|---|---|
128 | 6.97 M | 32.0 | Link |
256 | 12.67 M | 33.8 | Link |
384 | 22.12 M | 34.3 | Link |