-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.txt
More file actions
75 lines (58 loc) · 8.16 KB
/
Copy pathcommand.txt
File metadata and controls
75 lines (58 loc) · 8.16 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
train command for ViT:
nohup torchrun --nproc_per_node=4 --master-port=28901 main.py --cfg cfgs/FashionMNIST/vit.yaml --seed 20 --tag seed_20 > log/FashionMNIST/vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28903 main.py --cfg cfgs/CIFAR-10/vit.yaml --seed 20 --tag seed_20 > log/CIFAR-10/vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28905 main.py --cfg cfgs/CIFAR-100/vit.yaml --seed 20 --tag seed_20 > log/CIFAR-100/vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28907 main.py --cfg cfgs/SVHN/vit.yaml --seed 20 --tag seed_20 > log/SVHN/vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28925 main.py --cfg cfgs/imagenet-1k/vit.yaml > log/imagenet-1k/vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28900 main.py --cfg cfgs/FashionMNIST/test_vit.yaml --tag seed_0 > log/FashionMNIST/test_vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28903 main.py --cfg cfgs/CIFAR-10/vit.yaml --tag seed_0 > log/CIFAR-10/vit.log 2>&1 & cfgs/CIFAR-10/test_vit.yaml > log/CIFAR-10/test_vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28204 main.py --cfg cfgs/CIFAR-100/test_vit.yaml --tag StructSA_seed_0 > /dev/null 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28906 main.py --cfg cfgs/SVHN/test_vit.yaml --tag seed_0 > log/SVHN/test_vit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28924 main.py --cfg cfgs/imagenet-1k/test_vit.yaml > log/imagenet-1k/test_vit.log 2>&1 &
----------------------------------------------------------------------------------------------------------------------------------
test command for ViT:
torchrun --nproc_per_node=4 --master-port=28900 main.py --test --resume output/FashionMNIST/test_vit/default/max_acc.pth --cfg cfgs/FashionMNIST/test_vit.yaml
torchrun --nproc_per_node=4 --master-port=28901 main.py --test --resume output/FashionMNIST/vit/default/max_acc.pth --cfg cfgs/FashionMNIST/vit.yaml
torchrun --nproc_per_node=4 --master-port=28902 main.py --test --resume output/CIFAR-10/test_vit/default/max_acc.pth --cfg cfgs/CIFAR-10/test_vit.yaml
torchrun --nproc_per_node=4 --master-port=28903 main.py --test --resume output/CIFAR-10/vit/default/max_acc.pth --cfg cfgs/CIFAR-10/vit.yaml
torchrun --nproc_per_node=4 --master-port=28904 main.py --test --resume output/CIFAR-100/test_vit/default/max_acc.pth --cfg cfgs/CIFAR-100/test_vit.yaml
torchrun --nproc_per_node=4 --master-port=28905 main.py --test --resume output/CIFAR-100/vit/default/max_acc.pth --cfg cfgs/CIFAR-100/vit.yaml
torchrun --nproc_per_node=4 --master-port=28906 main.py --test --resume output/SVHN/test_vit/default/max_acc.pth --cfg cfgs/SVHN/test_vit.yaml
torchrun --nproc_per_node=4 --master-port=28907 main.py --test --resume output/SVHN/vit/default/max_acc.pth --cfg cfgs/SVHN/vit.yaml
----------------------------------------------------------------------------------------------------------------------------------
command for DeiT:
nohup torchrun --nproc_per_node=4 --master-port=28908 main.py --cfg cfgs/FashionMNIST/test_deit.yaml > log/FashionMNIST/test_deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28909 main.py --cfg cfgs/FashionMNIST/deit.yaml > log/FashionMNIST/deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28910 main.py --cfg cfgs/CIFAR-10/test_deit.yaml > log/CIFAR-10/test_deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28911 main.py --cfg cfgs/CIFAR-10/deit.yaml > log/CIFAR-10/deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28912 main.py --cfg cfgs/CIFAR-100/test_deit.yaml > log/CIFAR-100/test_deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28913 main.py --cfg cfgs/CIFAR-100/deit.yaml > log/CIFAR-100/deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28914 main.py --cfg cfgs/SVHN/test_deit.yaml > log/SVHN/test_deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28915 main.py --cfg cfgs/SVHN/deit.yaml > log/SVHN/deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28926 main.py --cfg cfgs/imagenet-1k/test_deit.yaml > log/imagenet-1k/test_deit.log 2>&1 &
nohup torchrun --nproc_per_node=4 --master-port=28927 main.py --cfg cfgs/imagenet-1k/deit.yaml > log/imagenet-1k/deit.log 2>&1 &
----------------------------------------------------------------------------------------------------------------------------------
train command for Transformer:
nohup env CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 --master-port=20716 main.py --cfg cfgs/Rotten_Tomatoes/transformer_small.yaml --seed 0 --tag transformer_base_seed_0 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 --master-port=21716 main.py --cfg cfgs/Rotten_Tomatoes/transformer_base.yaml --seed 0 --tag transformer_base_seed_0 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=1 torchrun --nproc_per_node=1 --master-port=22716 main.py --cfg cfgs/Rotten_Tomatoes/transformer_large.yaml --seed 0 --tag transformer_base_seed_0 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=2 torchrun --nproc_per_node=1 --master-port=20717 main.py --cfg cfgs/Rotten_Tomatoes/conv_small.yaml --seed 0 --tag transformer_base_seed_0 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=2 torchrun --nproc_per_node=1 --master-port=21717 main.py --cfg cfgs/Rotten_Tomatoes/conv_base.yaml --seed 0 --tag transformer_base_seed_0 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=3 torchrun --nproc_per_node=1 --master-port=22717 main.py --cfg cfgs/Rotten_Tomatoes/conv_large.yaml --seed 0 --tag transformer_base_seed_0 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=1 torchrun --nproc_per_node=1 --master-port=28718 main.py --cfg cfgs/imdb/transformer.yaml --seed 20 --tag seed_20 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=2 torchrun --nproc_per_node=1 --master-port=28720 main.py --cfg cfgs/ag_news/transformer.yaml --seed 20 --tag seed_20 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=3 torchrun --nproc_per_node=1 --master-port=28722 main.py --cfg cfgs/20_newsgroups/transformer.yaml --seed 20 --tag seed_20 > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 --master-port=27957 main.py --cfg cfgs/Rotten_Tomatoes/test.yaml --tag only_stride > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=1 torchrun --nproc_per_node=1 --master-port=27959 main.py --cfg cfgs/imdb/test.yaml --tag only_stride > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=2 torchrun --nproc_per_node=1 --master-port=27951 main.py --cfg cfgs/ag_news/test.yaml --tag only_stride > /dev/null 2>&1 &
nohup env CUDA_VISIBLE_DEVICES=3 torchrun --nproc_per_node=1 --master-port=27953 main.py --cfg cfgs/20_newsgroups/test.yaml --tag only_stride > /dev/null 2>&1 &
----------------------------------------------------------------------------------------------------------------------------------
test command for Transformer:
CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 --master-port=21900 main.py --test --resume output/Rotten_Tomatoes/transformer/default/max_acc.pth --cfg cfgs/Rotten_Tomatoes/transformer.yaml
CUDA_VISIBLE_DEVICES=1 torchrun --nproc_per_node=1 --master-port=21902 main.py --test --resume output/imdb/transformer/default/max_acc.pth --cfg cfgs/imdb/transformer.yaml
CUDA_VISIBLE_DEVICES=2 torchrun --nproc_per_node=1 --master-port=21904 main.py --test --resume output/ag_news/transformer/default/max_acc.pth --cfg cfgs/ag_news/transformer.yaml
CUDA_VISIBLE_DEVICES=3 torchrun --nproc_per_node=1 --master-port=21906 main.py --test --resume output/20_newsgroups/transformer/default/max_acc.pth --cfg cfgs/20_newsgroups/transformer.yaml
CUDA_VISIBLE_DEVICES=0 torchrun --nproc_per_node=1 --master-port=21901 main.py --test --resume output/Rotten_Tomatoes/test_transformer/default/max_acc.pth --cfg cfgs/Rotten_Tomatoes/test.yaml
CUDA_VISIBLE_DEVICES=1 torchrun --nproc_per_node=1 --master-port=21903 main.py --test --resume output/imdb/test_transformer/default/max_acc.pth --cfg cfgs/imdb/test.yaml
CUDA_VISIBLE_DEVICES=2 torchrun --nproc_per_node=1 --master-port=21905 main.py --test --resume output/ag_news/test_transformer/default/max_acc.pth --cfg cfgs/ag_news/test.yaml
CUDA_VISIBLE_DEVICES=3 torchrun --nproc_per_node=1 --master-port=21907 main.py --test --resume output/20_newsgroups/test_transformer/default/max_acc.pth --cfg cfgs/20_newsgroups/test.yaml