-
Notifications
You must be signed in to change notification settings - Fork 0
/
job_instance_unlearning_zero-shot.sh
35 lines (32 loc) · 1.13 KB
/
job_instance_unlearning_zero-shot.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
31
32
33
34
35
#!/bin/bash
#SBATCH --job-name=vitt_zero_n-imgs
#SBATCH --output=/nas/softechict-nas-2/spoppi/pycharm_projects/inspecting_twin_models/outs/test/vit_tiny_16224/difference_zero_fixed/%a.test
#SBATCH --error=/nas/softechict-nas-2/spoppi/pycharm_projects/inspecting_twin_models/outs/test/vit_tiny_16224/difference_zero_fixed/%a.err
#SBATCH --gpus=1
#SBATCH --partition=prod
#SBATCH --array=0-2
#SBATCH --time=2:00:00
#SBATCH --exclude=huber
lambdas=(0.1 0.3 0.7)
# lambdas=(0.4 0.3 0.5)
bss=256
n_imgs=(128 256 512)
lrs=(0.00005)
model="vit_tiny_16224"
# . /usr/local/anaconda3/etc/profile.d/conda.sh
cd /homes/spoppi/pycharm_projects/acm_2023
source activate prova0
for i in {0..2}
do
for j in {0..2}
do
for k in {0..0}
do
id=$(($i+$j*4+$k*4*1))
if [ "$id" -eq "$SLURM_ARRAY_TASK_ID" ]
then
python -u instance_unlearning.py -u ${lrs[$k]} -n $model -N $model-zero -P acm23-gsearch-unlhyp -0 ${lambdas[$i]} -1 1 -2 0 -L difference_zero_fixed -b $bss -z 1 -T 9999999 -D cifar10 --patience=10 --num-imgs-4-instance-unlearning ${n_imgs[$j]}
fi
done
done
done