-
Notifications
You must be signed in to change notification settings - Fork 298
/
e_run_models.sh
33 lines (31 loc) · 1.15 KB
/
e_run_models.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
32
33
# Requires variables:
# MODEL_TYPE (e.g. xlm-roberta-large)
# BASE_PATH
#
# Description:
# This runs models for both fine-tuned and retrieval XTREME tasks
# Ideally, this should be run in parallel on a cluster.
for TASK in xnli pawsx udpos panx xquad mlqa tydiqa; do
python jiant/proj/main/runscript.py \
run_with_continue \
--ZZsrc ${BASE_PATH}/models/${MODEL_TYPE}/config.json \
--jiant_task_container_config_path ${BASE_PATH}/runconfigs/${TASK}.json \
--model_load_mode from_transformers \
--learning_rate 1e-5 \
--eval_every_steps 1000 \
--no_improvements_for_n_evals 30 \
--do_save \
--force_overwrite \
--do_train --do_val \
--output_dir ${BASE_PATH}/runs/${TASK}
done
for TASK in bucc2018 tatoeba; do
python jiant/proj/main/runscript.py \
run_with_continue \
--ZZsrc ${BASE_PATH}/models/${MODEL_TYPE}/config.json \
--jiant_task_container_config_path ${BASE_PATH}/runconfigs/${TASK}.json \
--model_load_mode from_transformers \
--force_overwrite \
--do_val \
--output_dir ${BASE_PATH}/runs/${TASK}
done