-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtrain_IN21K.sh
77 lines (68 loc) · 2.03 KB
/
train_IN21K.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/env sh
ADAPTER_CHANNEL=$1
GPUS=${GPUS:-8}
PORT=$((12000 + $RANDOM % 20000))
MASTER_ADDR=${MASTER_ADDR:-127.0.0.1}
DATASET=cifar100_full
CLUSTER=True \
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
python -m torch.distributed.launch \
--master_addr=$MASTER_ADDR \
--nproc_per_node=$GPUS \
--master_port=$PORT \
--use_env \
main_image.py \
--batch_size 128 \
--cls_token \
--finetune VIT_BASE_IN21K \
--dist_eval \
--output_dir "./output/IN21K/0.5/${DATASET}" \
--drop_path 0.0 \
--blr 1e-3 \
--weight_decay 0.01 \
--dataset "${DATASET}" \
--ffn_adapt \
--auto_remove \
--token_target_ratio 0.5
DATASET=svhn_full
CLUSTER=True \
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
python -m torch.distributed.launch \
--master_addr=$MASTER_ADDR \
--nproc_per_node=$GPUS \
--master_port=$PORT \
--use_env \
main_image.py \
--batch_size 128 \
--cls_token \
--finetune VIT_BASE_IN21K \
--dist_eval \
--output_dir "./output/IN21K/0.5/${DATASET}" \
--drop_path 0.0 \
--blr 1e-3 \
--weight_decay 0.01 \
--dataset "${DATASET}" \
--ffn_adapt \
--auto_remove \
--token_target_ratio 0.5
DATASET=food101_full
CLUSTER=True \
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
python -m torch.distributed.launch \
--master_addr=$MASTER_ADDR \
--nproc_per_node=$GPUS \
--master_port=$PORT \
--use_env \
main_image.py \
--batch_size 128 \
--cls_token \
--finetune VIT_BASE_IN21K \
--dist_eval \
--output_dir "./output/IN21K/0.5/${DATASET}" \
--drop_path 0.0 \
--blr 1e-3 \
--weight_decay 0.01 \
--dataset "${DATASET}" \
--ffn_adapt \
--auto_remove \
--token_target_ratio 0.5