Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 641 Bytes

File metadata and controls

37 lines (25 loc) · 641 Bytes

ADL HW2

spec

ref. GitHub - huggingface/transformers/examples

env

conda env create -f ./env/environment.yml

Train stage

multiple_choice

# for both pretrained & from scratch
bash train_mc.sh ./data/context.json ./data/train.json ./data/valid.json

question_answering

# for both pretrained & from scratch
bash train_qa.sh ./data/context.json ./data/train.json ./data/valid.json

Test stage

# download model
bash download.sh

# run swag & qa
bash run.sh ./data/context.json ./data/test.json ./qa_pred.csv