This is PyTorch implementation of Attention is All You Need (NeurIPS 2017).
- torch==1.7.1
- transformers=4.5.1
All dependencies are written in requirements.txt, and you can also access through Dockerfile.
Note: In this implementation, [CLS]
and [SEP]
tokens mean <s>
and </s>
respectively.
sh run.sh
python src/translate.py --source "TEXT_TO_SEARCH" --ckpt-path "CHECKPOINT_TO_LOAD"