-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcifar_exec_GD.sh
More file actions
600 lines (417 loc) · 18.5 KB
/
cifar_exec_GD.sh
File metadata and controls
600 lines (417 loc) · 18.5 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
## NeurIPS prep
# Ablation studies (GM vs EP) - CIFAR-10, ResNet-20, sparsity=0.5%
conf_end=".yml"
log_end="_log"
## EP
conf_file="configs/ablation_ep_gm_resnet20_059/ep"
log_root="resnet20_059_ep"
subfolder_root="resnet20_059_ep"
## Global EP
#conf_file="configs/ablation_ep_gm_resnet20_059/ks_global_ep"
#log_root="resnet20_059_global_ep"
#subfolder_root="resnet20_059_global_ep"
## Global EP iter
# conf_file="configs/ablation_ep_gm_resnet20_059/ks_global_ep_iter"
# log_root="resnet20_059_global_ep_iter"
# subfolder_root="resnet20_059_global_ep_iter"
## Global EP iter with regularization
# conf_file="configs/ablation_ep_gm_resnet20_059/ks_global_ep_iter_with_reg"
# log_root="resnet20_059_global_ep_iter_with_reg"
# subfolder_root="resnet20_059_global_ep_iter_with_reg"
## GM
# conf_file="configs/ablation_ep_gm_resnet20_059/gm"
# log_root="resnet20_059_gm"
# subfolder_root="resnet20_059_gm"
for trial in 1
do
python main.py \
--gpu 0 \
--config "$conf_file$conf_end" \
--trial-num $trial \
--use-full-data \
--subfolder "$subfolder_root$trial" > "$log_root$trial$log_end" 2>&1 &
# python main.py \
# --config "$conf_file" \
# --trial-num $trial \
# --invert-sanity-check \
# --use-full-data \
# --skip-sanity-checks \
# --subfolder "invert_$subfolder_root$trial" > "invert_$log_root$trial$log_end" 2>&1 &
done
# CIFAR-100, ResNet-32
:<<BLOCK
# Using validation to figure out hyperparams
# NOTE: make sure to delete/comment subfolder from the config file or else it may not work
#conf_file="configs/training/resnet32/cifar100_resnet32_training"
#conf_file="configs/sr/resnet32/cifar100_resnet32_sr"
conf_file="configs/hypercube/resnet32/double/sparsity_0_5"
#conf_file="configs/ep/resnet32/cifar100_sparsity_0_5"
conf_end=".yml"
log_root="resnet32_cifar100_ep_0_5_"
log_end="_log"
subfolder_root="resnet32_cifar100_ep_0_5_"
for trial in 1
do
python main.py \
--gpu 1 \
--config "$conf_file$conf_end" \
--subfolder "$subfolder_root$trial" > "$log_root$trial$log_end" 2>&1 &
#python main.py \
#--config "$conf_file$conf_end" \
#--trial-num $trial \
#--invert-sanity-check \
#--skip-sanity-checks \
#--subfolder "invert_$subfolder_root$trial" > "invert_$log_root$trial$log_end" 2>&1 &
# --smart_ratio 0.995 \
done
#BLOCK
#conf_file="configs/sr/resnet32/cifar100_resnet32_sr_debug"
:<<BLOCK
conf_file="configs/imp/resnet32_cifar100"
conf_end=".yml"
log_root="resnet32_cifar100_imp_extended_"
log_end="_log"
subfolder_root="resnet32_cifar100_imp_extended_"
for trial in 1
do
python imp_main.py \
--gpu 1 \
--imp-rounds 30 \
--config "$conf_file$conf_end" \
--subfolder "$subfolder_root$trial" > "$log_root$trial$log_end" 2>&1 &
done
# --imp-no-rewind \
BLOCK
# REBUTTAL
# NOTE: make sure to delete/comment subfolder from the config file or else it may not work
:<<BLOCK
conf_file="configs/param_tuning/vgg_1_4/conf"
conf_end=".yml"
log_root="vgg_1_4_val"
log_end="_log"
subfolder_root="vgg_1_4_val"
gpu=1
for trial in 1 6
do
python main.py \
--config "$conf_file$trial$conf_end" \
--trial-num $trial \
--gpu $gpu \
--subfolder "$subfolder_root$trial" > "$log_root$trial$log_end" 2>&1 #&
done
BLOCK
# Final run on full data
# # NOTE: make sure to delete/comment subfolder from the config file or else it may not work
# conf_file="configs/param_tuning/resnet20_059_KS/conf4"
# conf_end=".yml"
# log_root="resnet20_059_"
# log_end="_log"
# subfolder_root="resnet20_059_"
# for trial in 1 2 3
# do
# python main.py \
# --config "$conf_file$conf_end" \
# --trial-num $trial \
# --use-full-data \
# --subfolder "$subfolder_root$trial" > "$log_root$trial$log_end" 2>&1 &
# python main.py \
# --config "$conf_file" \
# --trial-num $trial \
# --invert-sanity-check \
# --use-full-data \
# --skip-sanity-checks \
# --subfolder "invert_$subfolder_root$trial" > "invert_$log_root$trial$log_end" 2>&1 &
# done
:<<BLOCK
# Using validation to figure out hyperparams
# NOTE: make sure to delete/comment subfolder from the config file or else it may not work
conf_file="configs/conf"
conf_end=".yml"
log_root="resnet20_059_val_debug"
log_end="_log"
subfolder_root="resnet20_059_val_debug_"
for trial in 4 5 6
do
python main.py \
--config "$conf_file$trial$conf_end" \
--subfolder "$subfolder_root$trial" > "$log_root$trial$log_end" 2>&1 &
#python main.py \
#--config "$conf_file" \
#--trial-num $trial \
#--invert-sanity-check \
#--subfolder "invert_$subfolder_root$trial" > "invert_$log_root$trial$log_end" 2>&1 &
done
BLOCK
# # Final run on full data
# # NOTE: make sure to delete/comment subfolder from the config file or else it may not work
# conf_file="configs/param_tuning/resnet20_059_KS/conf4"
# conf_end=".yml"
# log_root="resnet20_059_"
# log_end="_log"
# subfolder_root="resnet20_059_"
# for trial in 1 2 3
# do
# python main.py \
# --config "$conf_file$conf_end" \
# --trial-num $trial \
# --use-full-data \
# --subfolder "$subfolder_root$trial" > "$log_root$trial$log_end" 2>&1 &
# python main.py \
# --config "$conf_file" \
# --trial-num $trial \
# --invert-sanity-check \
# --use-full-data \
# --skip-sanity-checks \
# --subfolder "invert_$subfolder_root$trial" > "invert_$log_root$trial$log_end" 2>&1 &
# done
# VGG16, 0.5%, bf_ft_acc vs af_ft_acc
:<<BLOCK
config_file="configs/hypercube/vgg16/vgg.yml"
subfolder_root="vgg_bf_af_relation_"
con="_"
log_end="_log"
sp_list=(0.5) #(0.5 1.4)
lr_list=(0.01 0.001 0.0001 0.00001)
#t_list=(100) # 5 20 50 100
for sp in ${sp_list[@]}
do
for lr in ${lr_list[@]}
do
python main.py \
--config "$config_file" --subfolder "$subfolder_root$sp$con$lr" \
--target-sparsity "$sp" --lr "$lr" > "$subfolder_root$sp$con$lr$log_end" 2>&1 &
done
done
BLOCK
:<<BLOCK
# VGG16, bias=True, Affine-BN
config_file="configs/hypercube/vgg16/vgg_bias_affine.yml"
subfolder_root="vgg_bias_affine_True_hc_sparsity_"
log_end="_log"
sp_list=(50 5 2.5 1.4)
for sp in ${sp_list[@]}
do
python main.py \
--config "$config_file" --subfolder "$subfolder_root$sp" \
--target-sparsity "$sp" #> "$subfloder_root$sp$log_end" 2>&1 &
done
BLOCK
######################################################
########## ResNet-18 #############################
######################################################
# weight training
:<<BLOCK
conf_file="configs/training/resnet18/cifar10_resnet18_training.yml"
subfolder_root="resnet18_cifar10_wt_"
log_end="_log"
python main.py \
--config "$conf_file" \
--subfolder "$subfolder_root" #> "$subfolder_root$log_end" 2>&1 &
BLOCK
# Renda
:<<BLOCK
conf_file="configs/imp/resnet18_cifar.yml"
subfolder_root="resnet18_cifar10_renda_updated"
log_end="_log"
gpu=0
python imp_main.py \
--config "$conf_file" \
--imp-rounds 30 \
--imp-no-rewind \
--gpu $gpu \
--subfolder "$subfolder_root" > "$subfolder_root$log_end" 2>&1 &
BLOCK
# EP
:<<BLOCK
conf_file="configs/ep/resnet18/resnet18_sc_ep.yml"
subfolder_root="resnet18_cifar10_ep_"
log_end="_log"
for pr in 0.05 0.02 0.005
do
python main.py \
--config "$conf_file" \
--prune-rate "$pr" \
--subfolder "$subfolder_root$pr" > "$subfolder_root$pr$log_end" 2>&1 &
done
BLOCK
# smart ratio
:<<BLOCK
conf_file="configs/sr/resnet18/cifar10_resnet18_sr.yml"
subfolder_root="resnet18_cifar10_sr_"
log_end="_log"
for sr in 0.95 0.98 0.995
do
python main.py \
--config "$conf_file" \
--smart_ratio "$sr" \
--subfolder "$subfolder_root$sr" > "$subfolder_root$sr$log_end" 2>&1 &
done
BLOCK
# Gem-Miner (hypercube)
:<<BLOCK
# 5% sparsity
#conf_file="configs/hypercube/resnet18/cifar10/sparsity_5_85lam6.yml"
#subfolder_root="resnet18_cifar10_hc_sparsity_5_real_"
#conf_file="configs/hypercube/resnet18/cifar10/sparsity_5_85lam6_iter_20.yml"
#subfolder_root="resnet18_cifar10_hc_sparsity_5_iter_20"
#conf_file="configs/hypercube/resnet18/cifar10/sparsity_5_85lam6_iter_20_multistep_0_1.yml"
#subfolder_root="resnet18_cifar10_hc_sparsity_5_iter_20_multistep_0_1"
#conf_file="configs/hypercube/resnet18/cifar10/sparsity_5_85lam6_iter_20_cosine_0_1.yml"
#subfolder_root="resnet18_cifar10_hc_sparsity_5_iter_20_cosine_0_1"
conf_file="configs/hypercube/resnet18/cifar10/sparsity_5_85lam6_iter_20_adam.yml"
subfolder_root="resnet18_cifar10_hc_sparsity_5_iter_20_adam"
# Running trials in parallel
:<<BLOCK
conf_file="configs/ablation_hc/resnet20_1_4_normal.yml"
log_root="hc_resnet20_1_4_"
log_end="_log"
subfolder_root="hc_resnet20_1_4_results_"
for trial in 2
do
python main.py \
--config "$conf_file" --subfolder "$subfolder_root$trial" \
--trial-num "$trial" > "$log_root$trial$log_end" 2>&1 #&
# python main.py \
# --config "$conf_file" --subfolder "invert_$subfolder_root$trial" \
# --trial-num "$trial" --invert-sanity-check --skip-sanity-checks > "invert_$log_root$trial$log_end" 2>&1 &
done
BLOCK
:<<BLOCK
conf_file="configs/ablation_hc/resnet20_1_4_unflag_False.yml"
log_root="hc_resnet20_1_4_unflag_False_"
log_end="_log"
subfolder_root="hc_resnet20_1_4_unflag_False_results_"
for trial in 1 2
do
python main.py \
--config "$conf_file" --subfolder "$subfolder_root$trial" \
--trial-num "$trial" > "$log_root$trial$log_end" 2>&1 #&
done
BLOCK
### MobileNetV2
#####python main.py --config configs/training/mobilenetV2/cifar10_mobileV2_training.yml #> mobilenet_cifar10_wt
#python main.py --config configs/training/mobilenetV2/cifar10_mobileV2_training_check.yml #> mobilenet_cifar10_wt_check
:<<BLOCK
#python main.py --config configs/ep/mobilenetV2/cifar10_mobileV2_ep_sparsity_50.yml > log_mobilev2_EP_sparsity_50 2>&1
#python main.py --config configs/ep/mobilenetV2/cifar10_mobileV2_ep_sparsity_5.yml > log_mobilev2_EP_sparsity_5 2>&1
#python main.py --config configs/ep/mobilenetV2/cifar10_mobileV2_ep_sparsity_20.yml > log_mobilev2_EP_sparsity_20 2>&1
#python main.py --config configs/ep/mobilenetV2/cifar10_mobileV2_ep_sparsity_1_7.yml > log_mobilev2_EP_sparsity_1_7 2>&1
BLOCK
:<<BLOCK
python main.py --config configs/hypercube/mobilenetV2/sparsity_50.yml > log_mobilev2_HC_sparsity_50 2>&1
python main.py --config configs/hypercube/mobilenetV2/sparsity_5.yml > log_mobilev2_HC_sparsity_5 2>&1
python main.py --config configs/hypercube/mobilenetV2/sparsity_20.yml > log_mobilev2_HC_sparsity_20 2>&1
BLOCK
#python main.py --config configs/hypercube/mobilenetV2/sparsity_5_7lam6.yml > log_mobilev2_HC_sparsity_5_7lam6 2>&1
#python main.py --config configs/hypercube/mobilenetV2/sparsity_1_4.yml > log_mobilev2_HC_sparsity_1_4 2>&1
#python main.py --config configs/hypercube/mobilenetV2/sparsity_20_3lam6.yml > log_mobilev2_HC_sparsity_20_3lam6 2>&1
#python main.py --config configs/hypercube/mobilenetV2/sparsity_20_1lam6.yml > log_mobilev2_HC_sparsity_20_1lam6 2>&1
#python main.py --config configs/hypercube/mobilenetV2/sparsity_20_3lam6.yml > log_mobilev2_HC_sparsity_20_3lam6 2>&1
#### ResNet-18
#python main.py --config configs/hypercube/resnet18/resnet18_sc_hypercube_reg.yml # 93.17% at 150 epoch
#python main.py --config configs/hypercube/resnet18/resnet18_sc_hypercube_iter_reg.yml
#python main.py --config configs/hypercube/resnet18/resnet18_sc_hypercube_iter_reg_v2.yml
#python main.py --config configs/hypercube/resnet18/resnet18_sc_hypercube_noreg.yml
#python main.py --config configs/ep/resnet18/resnet18_sc_ep.yml
#python main.py --config configs/hypercube/resnet18/resnet18_sc_hypercube_iter_reg_evaluate.yml
### ResNet-32
#python main.py --config configs/training/resnet32/cifar10_resnet32_training.yml
### ResNet-20
#python main.py --config configs/ep/resnet20/resnet20_sc_ep.yml
#TODO: add global_ep yml here
#python main.py --config configs/ep/resnet20/resnet20_global_ep_iter.yml #> cifar_log 2>&1
#python main.py --config configs/ep/resnet20/resnet20_global_ep_iter_adam.yml #> cifar_log 2>&1
# Smart Ratio
#python main.py --config configs/sr/resnet20/resnet20_sr.yml # ResNet-20
#python main.py --config configs/sr/resnet32/resnet32_sr.yml # ResNet-32
#python main.py --config configs/training/resnet20/cifar10_resnet20_training.yml
#python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_3_72_t1.yml #> log_hc_sparsity_3_72_t1 2>&1
# check mixed precision
#python main.py --config configs/hypercube/resnet20/mixed_precision/resnet20_sparsity_3_72_t1_with_MP.yml #> log_hc_sparsity_3_72_t1 2>&1
# old pruning schedule
:<<BLOCK
python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_sparsity_1_8_t1.yml > log_hc_old_prune_schedule_sparsity_1_8_t1 2>&1
python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_sparsity_0_15_t1.yml > log_hc_old_prune_schedule_sparsity_0_15_t1 2>&1
python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_sparsity_0_15_t2.yml > log_hc_old_prune_schedule_sparsity_0_15_t2 2>&1
python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_sparsity_0_15_t3.yml > log_hc_old_prune_schedule_sparsity_0_15_t3 2>&1
python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_sparsity_0_15_t4.yml > log_hc_old_prune_schedule_sparsity_0_15_t4 2>&1
python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_sparsity_0_15_t5.yml > log_hc_old_prune_schedule_sparsity_0_15_t5 2>&1
BLOCK
#python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_target_sparsity_0_15_t1.yml > log_hc_old_prune_schedule_target_sparsity_0_15_t1 2>&1
#python main.py --config configs/hypercube/resnet20/old_prune_schedule/resnet20_target_sparsity_0_15_t1.yml > log_hc_old_prune_schedule_target_sparsity_0_15_t1_real 2>&1
# HC for multiple trials
#:<<BLOCK
#python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_3_72_t2.yml > log_hc_sparsity_3_72_t2 2>&1
#python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_3_72_t3.yml > log_hc_sparsity_3_72_t3 2>&1
#python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_3_72_t4.yml > log_hc_sparsity_3_72_t4 2>&1
#python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_3_72_t5.yml > log_hc_sparsity_3_72_t5 2>&1
#BLOCK
:<<BLOCK
python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_0_59_t1.yml > log_hc_sparsity_0_59_t1 2>&1
python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_0_59_t2.yml > log_hc_sparsity_0_59_t2 2>&1
python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_0_59_t3.yml > log_hc_sparsity_0_59_t3 2>&1
python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_0_59_t4.yml > log_hc_sparsity_0_59_t4 2>&1
python main.py --config configs/hypercube/resnet20/error_bar/resnet20_sparsity_0_59_t5.yml > log_hc_sparsity_0_59_t5 2>&1
BLOCK
# EP
#python main.py --config configs/ep/resnet20/resnet20_sc_ep_sparsity_50.yml #> log_EP_sparsity_50 2>&1
#python main.py --config configs/ep/resnet20/resnet20_sc_ep_sparsity_13_34.yml > log_EP_sparsity_13_34 2>&1
#python main.py --config configs/ep/resnet20/resnet20_sc_ep_sparsity_3_72.yml > log_EP_sparsity_3_72 2>&1
#python main.py --config configs/ep/resnet20/resnet20_sc_ep_sparsity_1_44.yml > log_EP_sparsity_1_44 2>&1
#python main.py --config configs/ep/resnet20/resnet20_sc_ep_sparsity_0_59.yml > log_EP_sparsity_0_59 2>&1
#python main.py --config configs/ep/resnet20/resnet20_sc_ep_sparsity_0_15.yml > log_EP_sparsity_0_15 2>&1
#python main.py --config configs/ep/resnet20/resnet20_sc_global_ep.yml
## HC for denser models
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_5.yml > log_target_sparsity_5_lam_5e-6 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_20.yml > log_target_sparsity_20_lam_1e-6 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_50.yml > log_target_sparsity_50_lam_0 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_5.yml > log_target_sparsity_5_lam_3e-5 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_20.yml > log_target_sparsity_20_lam_1e-5 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_5_without_unflag.yml > log_target_sparsity_5_without_unflag_lam_3e-5 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_20_without_unflag.yml > log_target_sparsity_20_without_unflag_lam_1e-5 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_target_sparsity_50_without_unflag.yml > log_target_sparsity_50_without_flag_lam_0 2>&1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_0_5_MAML_1.yml --run_idx 1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_0_5_MAML_1e-2.yml --run_idx 1
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_0_5_MAML_1e-4.yml --run_idx 2
#python main.py --config configs/hypercube/resnet20/resnet20_quantized_iter_hc_0_5_MAML_0.yml --run_idx 3
#python main.py --config config10.yml --run_idx 10 #> log_config$r 2>&1
:<<BLOCK
run_list=(3 4)
for r in ${run_list[@]}
do
python main.py --config config$r.yml --run_idx $r #> log_config$r 2>&1
done
BLOCK
#python main.py --config config1.yml --run_idx 1
#python main.py --config config2.yml --run_idx 2
#python main.py --config config3.yml --run_idx 3
#python main.py --config config4.yml --run_idx 4
#python main.py --config config5.yml --run_idx 5
#python main.py --config config6.yml --run_idx 6
#python main.py --config config7.yml --run_idx 7
#python main.py --config config8.yml --run_idx 8
#python main.py --config config9.yml --run_idx 9
#python main.py --config config10.yml --run_idx 10
#python main.py --config config11.yml --run_idx 11
#python main.py --config config12.yml --run_idx 12
#python main.py --config config13.yml --run_idx 13
:<<BLOCK
run_list=(2 3)
for r in ${run_list[@]}
do
python main.py --config config$r.yml --run_idx $r #> log_config$r 2>&1
done
BLOCK
# To run: nohup bash cifar_exec_GD.sh &
# To view log: tail -f log_config_i
'''
##### WRONG ablation
# EP + iterative sparsity control (ep_decay)
conf_file="configs/ablation_ep_gm_resnet20_059/ep_decay"
log_root="resnet20_059_ep_decay"
subfolder_root="resnet20_059_ep_decay"
# EP + iterative sparsity control + global sparsity constraint (global_ep_decay)
# conf_file="configs/ablation_ep_gm_resnet20_059/global_ep_decay"
# log_root="resnet20_059_global_ep_decay"
# subfolder_root="resnet20_059_global_ep_decay"
'''