-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_cutoff_exp.sh
205 lines (193 loc) · 6.66 KB
/
run_cutoff_exp.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
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
log=./log_files/log_final_llama2_cutoff_exp.txt
data_dir=./sample_data/2018n2c2_aiu_th3/cutoff_0/
nmd=/vol/bitbucket/l22/final_llama2_models_cutoff0
pof=./predictions_final_llama2_cutoff0.txt
ckpt_path=/vol/bitbucket/l22/final_llama2_models_cutoff0/ckpt_0
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--num_core 3 \
--new_model_dir $nmd \
--predict_output_file $pof \
--overwrite_model_dir \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_train \
--do_lower_case \
--train_batch_size 2 \
--eval_batch_size 2 \
--learning_rate 1e-4 \
--num_train_epochs 3 \
--gradient_accumulation_steps 4 \
--do_warmup \
--warmup_ratio 0.1 \
--weight_decay 0 \
--max_num_checkpoints 2 \
--log_file $log \
--log_step 500 \
--progress_bar
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--ckpt_dir $ckpt_path\
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--new_model_dir $nmd \
--predict_output_file $pof \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_predict \
--do_lower_case \
--eval_batch_size 2 \
--log_file $log \
--progress_bar
data_dir=./sample_data/2018n2c2_aiu_th3/cutoff_1/
nmd=/vol/bitbucket/l22/final_llama2_models_cutoff1
pof=./predictions_final_llama2_cutoff1.txt
ckpt_path=/vol/bitbucket/l22/final_llama2_models_cutoff1/ckpt_0
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--num_core 3 \
--new_model_dir $nmd \
--predict_output_file $pof \
--overwrite_model_dir \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_train \
--do_lower_case \
--train_batch_size 2 \
--eval_batch_size 2 \
--learning_rate 1e-4 \
--num_train_epochs 3 \
--gradient_accumulation_steps 4 \
--do_warmup \
--warmup_ratio 0.1 \
--weight_decay 0 \
--max_num_checkpoints 2 \
--log_file $log \
--log_step 500 \
--progress_bar
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--ckpt_dir $ckpt_path\
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--new_model_dir $nmd \
--predict_output_file $pof \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_predict \
--do_lower_case \
--eval_batch_size 2 \
--log_file $log \
--progress_bar
data_dir=./sample_data/2018n2c2_aiu_th3/cutoff_2/
nmd=/vol/bitbucket/l22/final_llama2_models_cutoff2
pof=./predictions_final_llama2_cutoff2.txt
ckpt_path=/vol/bitbucket/l22/final_llama2_models_cutoff2/ckpt_0
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--num_core 3 \
--new_model_dir $nmd \
--predict_output_file $pof \
--overwrite_model_dir \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_train \
--do_lower_case \
--train_batch_size 2 \
--eval_batch_size 2 \
--learning_rate 1e-4 \
--num_train_epochs 3 \
--gradient_accumulation_steps 4 \
--do_warmup \
--warmup_ratio 0.1 \
--weight_decay 0 \
--max_num_checkpoints 2 \
--log_file $log \
--log_step 500 \
--progress_bar
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--ckpt_dir $ckpt_path\
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--new_model_dir $nmd \
--predict_output_file $pof \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_predict \
--do_lower_case \
--eval_batch_size 2 \
--log_file $log \
--progress_bar
data_dir=./sample_data/2018n2c2_aiu_th3/cutoff_3/
nmd=/vol/bitbucket/l22/final_llama2_models_cutoff3
pof=./predictions_final_llama2_cutoff3.txt
ckpt_path=/vol/bitbucket/l22/final_llama2_models_cutoff3/ckpt_0
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--num_core 3 \
--new_model_dir $nmd \
--predict_output_file $pof \
--overwrite_model_dir \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_train \
--do_lower_case \
--train_batch_size 2 \
--eval_batch_size 2 \
--learning_rate 1e-4 \
--num_train_epochs 3 \
--gradient_accumulation_steps 4 \
--do_warmup \
--warmup_ratio 0.1 \
--weight_decay 0 \
--max_num_checkpoints 2 \
--log_file $log \
--log_step 500 \
--progress_bar
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--ckpt_dir $ckpt_path\
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--new_model_dir $nmd \
--predict_output_file $pof \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_predict \
--do_lower_case \
--eval_batch_size 2 \
--log_file $log \
--progress_bar