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

# order 3

# ["mtop", "piqa", "grailqa", "boolq", "compwebq", "winograndespider", "arce"]

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

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

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

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

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

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

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

