-
Notifications
You must be signed in to change notification settings - Fork 4
/
run_qg_tqa.sh
31 lines (30 loc) · 964 Bytes
/
run_qg_tqa.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
TASK_NAME='qg_tqa'
MODEL_NAME='mrm8488/t5-base-finetuned-question-generation-ap'
EX_TIME=$(date +"%Y-%h-%d-(%H:%M)")
echo "=============RUN EXP=============!"
echo 'train->squad -*- eval->openqg'
echo $TASK_NAME
echo $EX_TIME
echo "=============RUN EXP=============!"
python3 pretrain_qg.py \
--task $TASK_NAME \
--model_name_or_path $MODEL_NAME \
--logging_dir "runs/${TASK_NAME}_mrm8488_${EX_TIME}/logs" \
--output_dir "runs/${TASK_NAME}_mrm8488_${EX_TIME}" \
--train_file_path "raw_data/mTQA_train_valid.json" \
--valid_file_path "raw_data/mTQA_test.json" \
--per_device_train_batch_size 8 \
--per_device_eval_batch_size 8 \
--gradient_accumulation_steps 4 \
--learning_rate 6.25e-5 \
--num_train_epochs 10 \
--seed 42 \
--do_train \
--do_eval \
--do_predict \
--logging_steps 10 \
--evaluation_strategy "epoch" \
--save_strategy "epoch" \
--overwrite_output_dir \
--predict_with_generate \
--is_debug_mode -1 || exit