metaphors commited on
Commit
7cbe1e9
1 Parent(s): 0cc7ce2

Upload 7 files

Browse files
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "../model/tibetan-bert",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "Negative",
14
+ "1": "Positive"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "Negative": 0,
20
+ "Positive": 1
21
+ },
22
+ "layer_norm_eps": 1e-12,
23
+ "max_position_embeddings": 512,
24
+ "model_type": "bert",
25
+ "num_attention_heads": 12,
26
+ "num_hidden_layers": 12,
27
+ "pad_token_id": 0,
28
+ "position_embedding_type": "absolute",
29
+ "problem_type": "single_label_classification",
30
+ "torch_dtype": "float32",
31
+ "transformers_version": "4.36.2",
32
+ "type_vocab_size": 2,
33
+ "use_cache": true,
34
+ "vocab_size": 32267
35
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8ee22b44985aea37abbc6f04c1968e94ba8460cb988590498fe74a32ae41d65
3
+ size 443362287
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
trainer_state.json ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.6912539515279241,
3
+ "best_model_checkpoint": "../saved_model/tibetan-bert_tusa/checkpoint-3000",
4
+ "epoch": 20.0,
5
+ "eval_steps": 500,
6
+ "global_step": 5000,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_accuracy": 0.646,
14
+ "eval_f1": 0.5241935483870969,
15
+ "eval_loss": 0.7404859662055969,
16
+ "eval_precision": 0.7991803278688525,
17
+ "eval_recall": 0.39,
18
+ "eval_runtime": 7.8525,
19
+ "eval_samples_per_second": 127.348,
20
+ "eval_steps_per_second": 4.075,
21
+ "step": 250
22
+ },
23
+ {
24
+ "epoch": 2.0,
25
+ "learning_rate": 4.5e-05,
26
+ "loss": 0.344,
27
+ "step": 500
28
+ },
29
+ {
30
+ "epoch": 2.0,
31
+ "eval_accuracy": 0.669,
32
+ "eval_f1": 0.6182237600922721,
33
+ "eval_loss": 0.9954240322113037,
34
+ "eval_precision": 0.7302452316076294,
35
+ "eval_recall": 0.536,
36
+ "eval_runtime": 7.8266,
37
+ "eval_samples_per_second": 127.769,
38
+ "eval_steps_per_second": 4.089,
39
+ "step": 500
40
+ },
41
+ {
42
+ "epoch": 3.0,
43
+ "eval_accuracy": 0.69,
44
+ "eval_f1": 0.6784232365145229,
45
+ "eval_loss": 0.9894322752952576,
46
+ "eval_precision": 0.7047413793103449,
47
+ "eval_recall": 0.654,
48
+ "eval_runtime": 7.8356,
49
+ "eval_samples_per_second": 127.623,
50
+ "eval_steps_per_second": 4.084,
51
+ "step": 750
52
+ },
53
+ {
54
+ "epoch": 4.0,
55
+ "learning_rate": 4e-05,
56
+ "loss": 0.157,
57
+ "step": 1000
58
+ },
59
+ {
60
+ "epoch": 4.0,
61
+ "eval_accuracy": 0.657,
62
+ "eval_f1": 0.5862484921592279,
63
+ "eval_loss": 1.347570538520813,
64
+ "eval_precision": 0.7386018237082067,
65
+ "eval_recall": 0.486,
66
+ "eval_runtime": 7.8871,
67
+ "eval_samples_per_second": 126.789,
68
+ "eval_steps_per_second": 4.057,
69
+ "step": 1000
70
+ },
71
+ {
72
+ "epoch": 5.0,
73
+ "eval_accuracy": 0.643,
74
+ "eval_f1": 0.5486725663716814,
75
+ "eval_loss": 1.6362618207931519,
76
+ "eval_precision": 0.7457044673539519,
77
+ "eval_recall": 0.434,
78
+ "eval_runtime": 7.8844,
79
+ "eval_samples_per_second": 126.833,
80
+ "eval_steps_per_second": 4.059,
81
+ "step": 1250
82
+ },
83
+ {
84
+ "epoch": 6.0,
85
+ "learning_rate": 3.5e-05,
86
+ "loss": 0.0727,
87
+ "step": 1500
88
+ },
89
+ {
90
+ "epoch": 6.0,
91
+ "eval_accuracy": 0.649,
92
+ "eval_f1": 0.5755743651753326,
93
+ "eval_loss": 1.8187189102172852,
94
+ "eval_precision": 0.72782874617737,
95
+ "eval_recall": 0.476,
96
+ "eval_runtime": 7.8876,
97
+ "eval_samples_per_second": 126.781,
98
+ "eval_steps_per_second": 4.057,
99
+ "step": 1500
100
+ },
101
+ {
102
+ "epoch": 7.0,
103
+ "eval_accuracy": 0.678,
104
+ "eval_f1": 0.6373873873873873,
105
+ "eval_loss": 1.8846988677978516,
106
+ "eval_precision": 0.729381443298969,
107
+ "eval_recall": 0.566,
108
+ "eval_runtime": 7.8344,
109
+ "eval_samples_per_second": 127.643,
110
+ "eval_steps_per_second": 4.085,
111
+ "step": 1750
112
+ },
113
+ {
114
+ "epoch": 8.0,
115
+ "learning_rate": 3e-05,
116
+ "loss": 0.0407,
117
+ "step": 2000
118
+ },
119
+ {
120
+ "epoch": 8.0,
121
+ "eval_accuracy": 0.667,
122
+ "eval_f1": 0.622876557191393,
123
+ "eval_loss": 2.593871831893921,
124
+ "eval_precision": 0.7180156657963447,
125
+ "eval_recall": 0.55,
126
+ "eval_runtime": 7.8379,
127
+ "eval_samples_per_second": 127.584,
128
+ "eval_steps_per_second": 4.083,
129
+ "step": 2000
130
+ },
131
+ {
132
+ "epoch": 9.0,
133
+ "eval_accuracy": 0.663,
134
+ "eval_f1": 0.6174801362088536,
135
+ "eval_loss": 2.2667245864868164,
136
+ "eval_precision": 0.7139107611548556,
137
+ "eval_recall": 0.544,
138
+ "eval_runtime": 7.8522,
139
+ "eval_samples_per_second": 127.353,
140
+ "eval_steps_per_second": 4.075,
141
+ "step": 2250
142
+ },
143
+ {
144
+ "epoch": 10.0,
145
+ "learning_rate": 2.5e-05,
146
+ "loss": 0.0219,
147
+ "step": 2500
148
+ },
149
+ {
150
+ "epoch": 10.0,
151
+ "eval_accuracy": 0.683,
152
+ "eval_f1": 0.6458100558659218,
153
+ "eval_loss": 2.565606117248535,
154
+ "eval_precision": 0.7316455696202532,
155
+ "eval_recall": 0.578,
156
+ "eval_runtime": 7.8306,
157
+ "eval_samples_per_second": 127.705,
158
+ "eval_steps_per_second": 4.087,
159
+ "step": 2500
160
+ },
161
+ {
162
+ "epoch": 11.0,
163
+ "eval_accuracy": 0.689,
164
+ "eval_f1": 0.645381984036488,
165
+ "eval_loss": 2.9553158283233643,
166
+ "eval_precision": 0.7506631299734748,
167
+ "eval_recall": 0.566,
168
+ "eval_runtime": 7.8582,
169
+ "eval_samples_per_second": 127.256,
170
+ "eval_steps_per_second": 4.072,
171
+ "step": 2750
172
+ },
173
+ {
174
+ "epoch": 12.0,
175
+ "learning_rate": 2e-05,
176
+ "loss": 0.0066,
177
+ "step": 3000
178
+ },
179
+ {
180
+ "epoch": 12.0,
181
+ "eval_accuracy": 0.707,
182
+ "eval_f1": 0.6912539515279241,
183
+ "eval_loss": 2.7209701538085938,
184
+ "eval_precision": 0.7305122494432071,
185
+ "eval_recall": 0.656,
186
+ "eval_runtime": 7.9302,
187
+ "eval_samples_per_second": 126.101,
188
+ "eval_steps_per_second": 4.035,
189
+ "step": 3000
190
+ },
191
+ {
192
+ "epoch": 13.0,
193
+ "eval_accuracy": 0.69,
194
+ "eval_f1": 0.6630434782608696,
195
+ "eval_loss": 2.795156478881836,
196
+ "eval_precision": 0.7261904761904762,
197
+ "eval_recall": 0.61,
198
+ "eval_runtime": 7.8563,
199
+ "eval_samples_per_second": 127.287,
200
+ "eval_steps_per_second": 4.073,
201
+ "step": 3250
202
+ },
203
+ {
204
+ "epoch": 14.0,
205
+ "learning_rate": 1.5e-05,
206
+ "loss": 0.0054,
207
+ "step": 3500
208
+ },
209
+ {
210
+ "epoch": 14.0,
211
+ "eval_accuracy": 0.701,
212
+ "eval_f1": 0.6862539349422876,
213
+ "eval_loss": 2.847877025604248,
214
+ "eval_precision": 0.7218543046357616,
215
+ "eval_recall": 0.654,
216
+ "eval_runtime": 7.8163,
217
+ "eval_samples_per_second": 127.938,
218
+ "eval_steps_per_second": 4.094,
219
+ "step": 3500
220
+ },
221
+ {
222
+ "epoch": 15.0,
223
+ "eval_accuracy": 0.696,
224
+ "eval_f1": 0.68,
225
+ "eval_loss": 2.996243715286255,
226
+ "eval_precision": 0.7177777777777777,
227
+ "eval_recall": 0.646,
228
+ "eval_runtime": 7.8761,
229
+ "eval_samples_per_second": 126.966,
230
+ "eval_steps_per_second": 4.063,
231
+ "step": 3750
232
+ },
233
+ {
234
+ "epoch": 16.0,
235
+ "learning_rate": 1e-05,
236
+ "loss": 0.0026,
237
+ "step": 4000
238
+ },
239
+ {
240
+ "epoch": 16.0,
241
+ "eval_accuracy": 0.695,
242
+ "eval_f1": 0.6709816612729235,
243
+ "eval_loss": 3.150722026824951,
244
+ "eval_precision": 0.7283372365339579,
245
+ "eval_recall": 0.622,
246
+ "eval_runtime": 7.8492,
247
+ "eval_samples_per_second": 127.402,
248
+ "eval_steps_per_second": 4.077,
249
+ "step": 4000
250
+ },
251
+ {
252
+ "epoch": 17.0,
253
+ "eval_accuracy": 0.688,
254
+ "eval_f1": 0.6578947368421052,
255
+ "eval_loss": 3.2561535835266113,
256
+ "eval_precision": 0.7281553398058253,
257
+ "eval_recall": 0.6,
258
+ "eval_runtime": 7.8888,
259
+ "eval_samples_per_second": 126.762,
260
+ "eval_steps_per_second": 4.056,
261
+ "step": 4250
262
+ },
263
+ {
264
+ "epoch": 18.0,
265
+ "learning_rate": 5e-06,
266
+ "loss": 0.0022,
267
+ "step": 4500
268
+ },
269
+ {
270
+ "epoch": 18.0,
271
+ "eval_accuracy": 0.682,
272
+ "eval_f1": 0.671487603305785,
273
+ "eval_loss": 3.1687259674072266,
274
+ "eval_precision": 0.6944444444444444,
275
+ "eval_recall": 0.65,
276
+ "eval_runtime": 7.8583,
277
+ "eval_samples_per_second": 127.254,
278
+ "eval_steps_per_second": 4.072,
279
+ "step": 4500
280
+ },
281
+ {
282
+ "epoch": 19.0,
283
+ "eval_accuracy": 0.685,
284
+ "eval_f1": 0.672216441207076,
285
+ "eval_loss": 3.162193775177002,
286
+ "eval_precision": 0.7006507592190889,
287
+ "eval_recall": 0.646,
288
+ "eval_runtime": 7.8615,
289
+ "eval_samples_per_second": 127.202,
290
+ "eval_steps_per_second": 4.07,
291
+ "step": 4750
292
+ },
293
+ {
294
+ "epoch": 20.0,
295
+ "learning_rate": 0.0,
296
+ "loss": 0.0012,
297
+ "step": 5000
298
+ },
299
+ {
300
+ "epoch": 20.0,
301
+ "eval_accuracy": 0.698,
302
+ "eval_f1": 0.6766595289079229,
303
+ "eval_loss": 3.1741974353790283,
304
+ "eval_precision": 0.728110599078341,
305
+ "eval_recall": 0.632,
306
+ "eval_runtime": 7.8547,
307
+ "eval_samples_per_second": 127.313,
308
+ "eval_steps_per_second": 4.074,
309
+ "step": 5000
310
+ }
311
+ ],
312
+ "logging_steps": 500,
313
+ "max_steps": 5000,
314
+ "num_input_tokens_seen": 0,
315
+ "num_train_epochs": 20,
316
+ "save_steps": 500,
317
+ "total_flos": 4.20977688576e+16,
318
+ "train_batch_size": 32,
319
+ "trial_name": null,
320
+ "trial_params": null
321
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff9ab4a6441c6f812ecf509f13fb0e744de54f3bffd78a12e0a0e09801afbcbe
3
+ size 4271
vocab.txt ADDED
The diff for this file is too large to render. See raw diff