-
Notifications
You must be signed in to change notification settings - Fork 1
/
imagenet100-convmixer180_16.sh
63 lines (51 loc) · 2.28 KB
/
imagenet100-convmixer180_16.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
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
#source /scratch-ssd/wlin/mambaforge/etc/profile.d/conda.sh
conda activate pytorch-new
batch_size="128"
update_freq=25 #only for KFAC and Our method (local)
run_id=000
damping=0.005 #only for KFAC and Our method (local)
data_name="imagenet100"
model_name="convmixer_180_16"
#the "faster" option is only for our method
lr=0.004
opt_name="local"
weight_decay=0.01
python main.py --dataset $data_name --optimizer $opt_name --network $model_name \
--batch_size $batch_size --epoch 120 --milestone 40,80 --learning_rate $lr \
--weight_decay $weight_decay --damping $damping \
--TCov $update_freq --TInv $update_freq --faster 1 --run_id $run_id
lr=0.0004
opt_name="kfac"
weight_decay=0.01
python main.py --dataset $data_name --optimizer $opt_name --network $model_name \
--batch_size $batch_size --epoch 120 --milestone 40,80 --learning_rate $lr \
--weight_decay $weight_decay --damping $damping \
--TCov $update_freq --TInv $update_freq --faster 1 --run_id $run_id
lr=0.0006
opt_name="adamw"
weight_decay=0.01
python main.py --dataset $data_name --optimizer $opt_name --network $model_name \
--batch_size $batch_size --epoch 120 --milestone 40,80 --learning_rate $lr \
--weight_decay $weight_decay --damping $damping \
--TCov $update_freq --TInv $update_freq --faster 1 --run_id $run_id
lr=0.001
opt_name="lion"
weight_decay=0.1
python main.py --dataset $data_name --optimizer $opt_name --network $model_name \
--batch_size $batch_size --epoch 120 --milestone 40,80 --learning_rate $lr \
--weight_decay $weight_decay --damping $damping \
--TCov $update_freq --TInv $update_freq --faster 1 --run_id $run_id
lr=0.02
opt_name="sgd"
weight_decay=0.001
python main.py --dataset $data_name --optimizer $opt_name --network $model_name \
--batch_size $batch_size --epoch 120 --milestone 40,80 --learning_rate $lr \
--weight_decay $weight_decay --damping $damping \
--TCov $update_freq --TInv $update_freq --faster 1 --run_id $run_id
lr=0.0004
opt_name="adam"
weight_decay=0.001
python main.py --dataset $data_name --optimizer $opt_name --network $model_name \
--batch_size $batch_size --epoch 120 --milestone 40,80 --learning_rate $lr \
--weight_decay $weight_decay --damping $damping \
--TCov $update_freq --TInv $update_freq --faster 1 --run_id $run_id