-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patharray_final.sbatch
More file actions
88 lines (76 loc) · 3.82 KB
/
array_final.sbatch
File metadata and controls
88 lines (76 loc) · 3.82 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
#SBATCH -c 20 # Number of cores
#SBATCH -t 8000 # Runtime in D-HH:MM, minimum of 10 minutes
#SBATCH --mem=40g # Memory pool for all cores '(see also --mem-per-cpu)
#SBATCH --gres=gpu:QUADRORTX6000:1
#SBATCH --array=0-6
#SBATCH -o slurm_logs/score_models_%A_%a.out # File to which STDOUT will be written, %j inserts jobid
#SBATCH -e slurm_logs/score_models_%A_%a.err # File to which STDERR will be written, %j inserts jobid
### for multiple GPUS #SBATCH --array=0-2
export HOME='/om2/user/dapello/'
module load openmind/anaconda/3-4.0.0
source activate braintree-0.2
cd /om2/user/dapello/Code/proj_braintree/braintree-0.2/braintree
nvidia-smi
seed=5
date=220505
arch=cornet_s
loss=logCKA
labels=0
# Imagenet (control)
if [ $SLURM_ARRAY_TASK_ID == 0 ];
then
mix=1
sp=${date}-final-labels_${labels}-mix_${mix}
python main.py -v --seed $seed --neural_loss $loss --arch $arch --epochs 1200 --save_path $sp -nd sachimajajhongpublic -s All -n All \
-BS dicarlo.Rajalingham2018-i2n dicarlo.Kar2022human-i2n dicarlo.Kar2018-i2n dicarlo.Rajalingham2018subset-i2n -aei \
--loss_weights 1 1 ${labels} -mix_rate $mix -causal 1 --val_every 30
fi
if [ $SLURM_ARRAY_TASK_ID == 1 ];
then
mix=0.5
sp=${date}-final-labels_${labels}-mix_${mix}
python main.py -v --seed $seed --neural_loss $loss --arch $arch --epochs 1200 --save_path $sp -nd sachimajajhongpublic -s All -n All \
-BS dicarlo.Rajalingham2018-i2n dicarlo.Kar2022human-i2n dicarlo.Kar2018-i2n dicarlo.Rajalingham2018subset-i2n -aei \
--loss_weights 1 1 ${labels} -mix_rate $mix -causal 1 --val_every 30
fi
if [ $SLURM_ARRAY_TASK_ID == 2 ];
then
mix=0.25
sp=${date}-final-labels_${labels}-mix_${mix}
python main.py -v --seed $seed --neural_loss $loss --arch $arch --epochs 1200 --save_path $sp -nd sachimajajhongpublic -s All -n All \
-BS dicarlo.Rajalingham2018-i2n dicarlo.Kar2022human-i2n dicarlo.Kar2018-i2n dicarlo.Rajalingham2018subset-i2n -aei \
--loss_weights 1 1 ${labels} -mix_rate $mix -causal 1 --val_every 30
fi
if [ $SLURM_ARRAY_TASK_ID == 3 ];
then
mix=0.125
sp=${date}-final-labels_${labels}-mix_${mix}
python main.py -v --seed $seed --neural_loss $loss --arch $arch --epochs 1200 --save_path $sp -nd sachimajajhongpublic -s All -n All \
-BS dicarlo.Rajalingham2018-i2n dicarlo.Kar2022human-i2n dicarlo.Kar2018-i2n dicarlo.Rajalingham2018subset-i2n -aei \
--loss_weights 1 1 ${labels} -mix_rate $mix -causal 1 --val_every 30
fi
if [ $SLURM_ARRAY_TASK_ID == 4 ];
then
mix=0.0625
sp=${date}-final-labels_${labels}-mix_${mix}
python main.py -v --seed $seed --neural_loss $loss --arch $arch --epochs 1200 --save_path $sp -nd sachimajajhongpublic -s All -n All \
-BS dicarlo.Rajalingham2018-i2n dicarlo.Kar2022human-i2n dicarlo.Kar2018-i2n dicarlo.Rajalingham2018subset-i2n -aei \
--loss_weights 1 1 ${labels} -mix_rate $mix -causal 1 --val_every 30
fi
if [ $SLURM_ARRAY_TASK_ID == 5 ];
then
mix=0.03125
sp=${date}-final-labels_${labels}-mix_${mix}
python main.py -v --seed $seed --neural_loss $loss --arch $arch --epochs 1200 --save_path $sp -nd sachimajajhongpublic -s All -n All \
-BS dicarlo.Rajalingham2018-i2n dicarlo.Kar2022human-i2n dicarlo.Kar2018-i2n dicarlo.Rajalingham2018subset-i2n -aei \
--loss_weights 1 1 ${labels} -mix_rate $mix -causal 1 --val_every 30
fi
if [ $SLURM_ARRAY_TASK_ID == 6 ];
then
mix=0
sp=${date}-final-labels_${labels}-mix_${mix}
python main.py -v --seed $seed --neural_loss $loss --arch $arch --epochs 1200 --save_path $sp -nd sachimajajhongpublic -s All -n All \
-BS dicarlo.Rajalingham2018-i2n dicarlo.Kar2022human-i2n dicarlo.Kar2018-i2n dicarlo.Rajalingham2018subset-i2n -aei \
--loss_weights 1 1 ${labels} -mix_rate $mix -causal 1 --val_every 30
fi