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

# order 1

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

bash scripts/continual/prefix/train.sh "${model}" grailqa 1 "mix_1"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" grailqa 1 1 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" boolq 1 2 "mix_1"

bash scripts/continual/prefix/train.sh "${model}" boolq 2 "mix_1"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" grailqa 2 1 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" boolq 2 2 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" mtop 2 3 "mix_1"

bash scripts/continual/prefix/train.sh "${model}" mtop 3 "mix_1"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" grailqa 3 1 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" boolq 3 2 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" mtop 3 3 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" piqa 3 4 "mix_1"

bash scripts/continual/prefix/train.sh "${model}" piqa 4 "mix_1"
# Test Held-in Datasets
bash scripts/continual/prefix/test.sh "${model}" grailqa 4 1 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" boolq 4 2 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" mtop 4 3 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" piqa 4 4 "mix_1"
bash scripts/continual/prefix/test.sh "${model}" spider 4 5 "mix_1"

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

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

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

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

