Final project in VietAI-NLP02 course
- Create a new
conda
environment - For
Pytorch
, please refer to PyTorch official tutorial to find a suitable cuda version - Run
pip install -r requirements.txt
- Open the
experiment.ipynb
notebook and run the training/evaluating cell with pre-defined parameters
data_processor.py
: contain the code to preprocess data and load it into transformers datasetinference.py
: contain code to run inferencemetrics.py
: contain code to computesacrebleu
models.py
: contain code to createmodel
andtokenizer
train.py
: contain code to traintrainers.py
: contain code to create Trainer