-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.sh
executable file
·109 lines (84 loc) · 3.73 KB
/
test.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
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
cuda=1
# dir=/data/ED4SP
dir=/research/nfs_su_809/chen.10216/projects/ED4SP_temp
batch=16
lr=3e-5
epoch=10
warmup_factor=10
gnn_model=GATv2
test_pp=top1
seed=101 # doesn't matter
train_dat=dummy.dat # doesn't matter for testing
dev_dat=dummy.dat # doesn't matter for testing
exp_group=SmBoP
# exp_group=NatSQL
# exp_group=Bridge
# exp_group=ResdNatSQL
expr_name=CodeBERT_GAT
test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_sim2.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_sim2_ntsq.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_sim2_ntsq_spider_tr.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_sim2_brg.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_dev_sim2.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_dev_sim2_brg.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_dev_sim2_ntsq.dat
# test_dat=preprocessing/datasets/ed_smbop_beam_test_ori.dat
# test_dat=preprocessing/datasets/ed_smbop_beam_test_ori_brg.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_ori_ntsq.dat
# test_dat=preprocessing/datasets/ed_smbop_beam_dev_ori.dat
# test_dat=preprocessing/datasets/ed_smbop_beam_dev_ori_brg.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_test_sim2.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_test_sim2_smbp.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_test_sim2_brg.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_dev_sim2.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_dev_sim2_smbp.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_dev_sim2_brg.dat
# test_dat=preprocessing/datasets/natsql/ed_natsql_beam_test_sim2_ntsq_spider_tr.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_test_ori_smbp.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_test_ori_brg.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_dev_ori.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_dev_ori_smbp.dat
# test_dat=preprocessing/datasets/ed_natsql_beam_dev_ori_brg.dat
# test_dat=preprocessing/datasets/ed_resdsql_beam_test_sim2.dat
# test_dat=preprocessing/datasets/ed_resdsql_beam_test_sim2_smbp.dat
# test_dat=preprocessing/datasets/ed_resdsql_beam_test_sim2_ntsq.dat
# test_dat=preprocessing/datasets/ed_resdnatsql_beam_test_sim2_ntsq.dat
# test_dat=preprocessing/datasets/resdnatsql/ed_resdnatsql_beam_test_sim2_ntsq_spider_tr.dat
# test_dat=preprocessing/datasets/ed_smbop_beam_test_sim2_brg_ntsq.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_sim2_rsdntsq.dat
# test_dat=preprocessing/datasets/natsql/ed_natsql_beam_test_sim2_rsdntsq.dat
# test_dat=preprocessing/datasets/ed_resdnatsql_beam_test_sim2.dat
# test_dat=preprocessing/datasets/ed_resdnatsql_beam_test_sim2_smbp.dat
# test_dat=preprocessing/datasets/ed_resdnatsql_beam_test_sim2_ntsq.dat
#
# test_dat=preprocessing/datasets/natsql/ed_natsql_beam_test_ori.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_ori_ntsq.dat
# test_dat=preprocessing/datasets/resdnatsql/ed_resdnatsql_beam_test_ori_ntsq.dat
# test_dat=preprocessing/datasets/resdnatsql/ed_resdnatsql_beam_test_ori_ntsq_spider_tr_ori.dat
# test_dat=preprocessing/datasets/smbop/ed_smbop_beam_test_ori_ntsq_spider_tr_ori.dat
# for exp_num in 1 2 3
for exp_num in 1
do
name=${exp_group}/${expr_name}_${exp_num}
# nvidia-smi
# CUDA_LAUNCH_BLOCKING=1 \
CUDA_VISIBLE_DEVICES=${cuda} \
python3 ${dir}/model.py \
--expr_name ${name} \
--batch_size ${batch} \
--lr ${lr} \
--dir=${dir} \
--exp_name ${name} \
--epoch ${epoch} \
--warmup_factor ${warmup_factor} \
--dev_dat ${dev_dat} \
--train_dat ${train_dat} \
--test_dat ${test_dat} \
--gnn_model ${gnn_model} \
--test \
--seed ${seed} \
--nl_use_consti_edges \
--nl_use_dep_edges \
--use_seq_edges \
--use_beam
done