export CUDA_VISIBLE_DEVICES="$1"

model="$2"

# order 2

# ["compwebq", "spider", "mtop", "grailqa"]

bash scripts/continual/sft/train.sh ${model} compwebq 1 "skr_2"
bash scripts/continual/sft/test.sh ${model} compwebq 1 1 "skr_2"
bash scripts/continual/sft/test.sh ${model} spider 1 2 "skr_2"

bash scripts/continual/sft/train.sh ${model} spider 2 "skr_2"
bash scripts/continual/sft/test.sh ${model} compwebq 2 1 "skr_2"
bash scripts/continual/sft/test.sh ${model} spider 2 2 "skr_2"
bash scripts/continual/sft/test.sh ${model} mtop 2 3 "skr_2"

bash scripts/continual/sft/train.sh ${model} mtop 3 "skr_2"
bash scripts/continual/sft/test.sh ${model} compwebq 3 1 "skr_2"
bash scripts/continual/sft/test.sh ${model} spider 3 2 "skr_2"
bash scripts/continual/sft/test.sh ${model} mtop 3 3 "skr_2"
bash scripts/continual/sft/test.sh ${model} grailqa 3 4 "skr_2"

bash scripts/continual/sft/train.sh ${model} grailqa 4 "skr_2"
bash scripts/continual/sft/test.sh ${model} compwebq 4 1 "skr_2"
bash scripts/continual/sft/test.sh ${model} spider 4 2 "skr_2"
bash scripts/continual/sft/test.sh ${model} mtop 4 3 "skr_2"
bash scripts/continual/sft/test.sh ${model} grailqa 4 4 "skr_2"

