-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextract_explanations.sh
30 lines (23 loc) · 1 KB
/
extract_explanations.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
#!/bin/bash
#SBATCH -p veu # Partition to submit to
#SBATCH --mem=20G # Max CPU Memory
#SBATCH --job-name=ioi_sva
#SBATCH --gres=gpu:1
#SBATCH --output=/home/usuaris/veu/javier.ferrando/logs_jupyter/%j.out
set -ex
export LC_ALL=en_US.UTF-8
export PATH=~/anaconda3/bin:$PATH
export PYTHONUNBUFFERED=TRUE
source activate alti
declare -a blimp1=("anaphor_gender_agreement" "anaphor_number_agreement" "animate_subject_passive")
declare -a blimp2=("determiner_noun_agreement_1" "determiner_noun_agreement_irregular_1" "determiner_noun_agreement_with_adjective_1" "determiner_noun_agreement_with_adj_irregular_1" "npi_present_1" "distractor_agreement_relational_noun")
declare -a ioi_sva=("ioi" "sva_1" "sva_2" "sva_3" "sva_4")
for sub_dataset in "${ioi_sva[@]}"
do
for method in grad erasure
do
python extract_explanations.py --name_path gpt2 \
--dataset $sub_dataset \
--explanation_type $method
done
done