- pip install torch
- pip install transformers
- pip install nltk
- pip install psutil
The data used for this project is located in the folder 'data'.
We fine-tune the model on 3*1080Ti GPUs.
Please run the following scripts:
bash java_script.sh [gpu-id] [model-name]
After the training process, several best checkpoints are stored in a folder named after your model name, for example, ./output/[model-name]/checkpoint-best-bleu/pytorch_model.bin. You can run the following scripts to get the results on test set:
bash java_script_test.sh [gpu-id] [model-name]
Java pre-trained models (20 epochs) are available here.