-
Notifications
You must be signed in to change notification settings - Fork 99
/
tokenize.sh
210 lines (181 loc) · 7.55 KB
/
tokenize.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
206
207
208
209
210
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_baseline_d1_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_baseline_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_baseline_d2_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_baseline_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_text2label_d1_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_text2label_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_text2label_d2_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_text2label_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_senti-desc_d1_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_senti-desc_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_senti-desc_d2_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_senti-desc_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_digital-label_d1_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_digital-label_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_digital-label_d2_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_digital-label_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_mentioned-only_d1_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_mentioned-only_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_mentioned-only_d2_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_mentioned-only_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_desc-senti_d1_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_desc-senti_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_desc-senti_d2_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_desc-senti_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_dict-output_d1_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_dict-output_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_dict-output_d2_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_dict-output_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_lines-output_d1_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_lines-output_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_lines-output_d2_train.json \
# --prompt_key input \
# --target_key output \
# --save_name absa_lines-output_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_instruction-first_d1_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_instruction-first_d1_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
# CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
# --model_checkpoint ../DCAI-share/llm/chinese-alpaca-2-7b \
# --input_file absa_instruction-first_d2_train.json \
# --prompt_key prompt \
# --target_key output \
# --save_name absa_instruction-first_d2_train-alpaca2 \
# --max_seq_length 2000 \
# --skip_overlength False
N=4500
desc_num=0
CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
--model_checkpoint /root/DCAI-share/llm/Llama-2-7b-chat-hf \
--input_file NER_train_val_${N}_weak1_desc${desc_num}_design.json \
--prompt_key prompt \
--target_key output \
--save_name NER_weak1_desc${desc_num}_design_${N}-llama2_chat \
--max_seq_length 2000 \
--skip_overlength False
CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
--model_checkpoint /root/DCAI-share/llm/Llama-2-7b-chat-hf \
--input_file NER_train_val_${N}_good1_desc${desc_num}_design.json \
--prompt_key prompt \
--target_key output \
--save_name NER_good1_desc${desc_num}_design_${N}-llama2_chat \
--max_seq_length 2000 \
--skip_overlength False
CUDA_VISIBLE_DEVICES=0 python tokenize_dataset_rows.py \
--model_checkpoint /root/DCAI-share/llm/Llama-2-7b-chat-hf \
--input_file NER_train_val_${N}_default_desc${desc_num}_design.json \
--prompt_key prompt \
--target_key output \
--save_name NER_default_desc${desc_num}_design_${N}-llama2_chat \
--max_seq_length 2000 \
--skip_overlength False
# THUDM/chatglm-6b
# THUDM/chatglm2-6b
# baichuan-inc/baichuan-7B
# internlm/internlm-chat-7b-8k
# internlm/internlm-chat-7b
# ../DCAI-share/llm/Baichuan2-7B-Chat
# ../DCAI-share/llm/Baichuan2-7B-Base
# ../DCAI-share/llm/chinese-llama-2-7b
# ../DCAI-share/llm/chinese-alpaca-2-7b
# /root/DCAI-share/llm/Llama-2-7b-chat-hf
# Qwen/Qwen1.5-4B-Chat