export CUDA_VISIBLE_DEVICES="$1"
model="$2"

# order 2

# ["compwebq", "winogrande", "spider", "arce", "mtop", "piqa", "grailqa", "boolq"]

bash scripts/continual/prefix/train.sh "${model}" compwebq 1 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 1 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 1 2 "mix_2"

bash scripts/continual/prefix/train.sh "${model}" winogrande 2 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 2 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 2 2 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" spider 2 3 "mix_2"

bash scripts/continual/prefix/train.sh "${model}" spider 3 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 3 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 3 2 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" spider 3 3 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" arce 3 4 "mix_2"

bash scripts/continual/prefix/train.sh "${model}" arce 4 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 4 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 4 2 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" spider 4 3 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" arce 4 4 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" mtop 4 5 "mix_2"

bash scripts/continual/prefix/train.sh "${model}" mtop 5 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 5 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 5 2 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" spider 5 3 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" arce 5 4 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" mtop 5 5 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" piqa 5 6 "mix_2"

bash scripts/continual/prefix/train.sh "${model}" piqa 6 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 6 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 6 2 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" spider 6 3 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" arce 6 4 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" mtop 6 5 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" piqa 6 6 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" grailqa 6 7 "mix_2"

bash scripts/continual/prefix/train.sh "${model}" grailqa 7 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 7 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 7 2 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" spider 7 3 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" arce 7 4 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" mtop 7 5 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" piqa 7 6 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" grailqa 7 7 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" boolq 7 8 "mix_2"

bash scripts/continual/prefix/train.sh "${model}" boolq 8 "mix_2"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" compwebq 8 1 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" winogrande 8 2 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" spider 8 3 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" arce 8 4 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" mtop 8 5 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" piqa 8 6 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" grailqa 8 7 "mix_2"
bash scripts/continual/prefix/test.sh "${model}" boolq 8 8 "mix_2"

