Fan-s commited on
Commit
4cab0fc
1 Parent(s): fcbb447

update reddit-tc-bert

Browse files
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ model-index:
8
+ - name: bert-uncased-base
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # bert-uncased-base
16
+
17
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 0.2297
20
+ - Accuracy: 0.9267
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - learning_rate: 2e-05
40
+ - train_batch_size: 320
41
+ - eval_batch_size: 80
42
+ - seed: 42
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 5.0
46
+
47
+ ### Training results
48
+
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.16.0.dev0
54
+ - Pytorch 1.10.1+cu102
55
+ - Datasets 1.17.0
56
+ - Tokenizers 0.11.0
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
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": "matched",
14
+ "1": "unmatched"
15
+ },
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "label2id": {
19
+ "matched": 0,
20
+ "unmatched": 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.16.0.dev0",
32
+ "type_vocab_size": 2,
33
+ "use_cache": true,
34
+ "vocab_size": 30522
35
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:553e9d99fa1f1d5b833eafcb22e433acc606cc8ebbcb5e8b77c75121adc430a7
3
+ size 438019245
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "bert-base-uncased", "tokenizer_class": "BertTokenizer"}
trainer_state.json ADDED
@@ -0,0 +1,469 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "global_step": 37050,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.07,
12
+ "learning_rate": 1.9730094466936575e-05,
13
+ "loss": 0.2655,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.13,
18
+ "learning_rate": 1.9460188933873144e-05,
19
+ "loss": 0.2339,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.2,
24
+ "learning_rate": 1.9190283400809718e-05,
25
+ "loss": 0.2239,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.27,
30
+ "learning_rate": 1.892037786774629e-05,
31
+ "loss": 0.2216,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.34,
36
+ "learning_rate": 1.8650472334682864e-05,
37
+ "loss": 0.2176,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.4,
42
+ "learning_rate": 1.8380566801619433e-05,
43
+ "loss": 0.214,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.47,
48
+ "learning_rate": 1.8110661268556007e-05,
49
+ "loss": 0.2102,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 0.54,
54
+ "learning_rate": 1.784075573549258e-05,
55
+ "loss": 0.2091,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 0.61,
60
+ "learning_rate": 1.757085020242915e-05,
61
+ "loss": 0.2063,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 0.67,
66
+ "learning_rate": 1.7300944669365723e-05,
67
+ "loss": 0.2024,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 0.74,
72
+ "learning_rate": 1.7031039136302296e-05,
73
+ "loss": 0.2009,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 0.81,
78
+ "learning_rate": 1.676113360323887e-05,
79
+ "loss": 0.2007,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 0.88,
84
+ "learning_rate": 1.649122807017544e-05,
85
+ "loss": 0.1966,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 0.94,
90
+ "learning_rate": 1.622132253711201e-05,
91
+ "loss": 0.199,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 1.01,
96
+ "learning_rate": 1.5951417004048585e-05,
97
+ "loss": 0.1877,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 1.08,
102
+ "learning_rate": 1.5681511470985154e-05,
103
+ "loss": 0.1565,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 1.15,
108
+ "learning_rate": 1.541160593792173e-05,
109
+ "loss": 0.1568,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 1.21,
114
+ "learning_rate": 1.5141700404858302e-05,
115
+ "loss": 0.1563,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 1.28,
120
+ "learning_rate": 1.4871794871794874e-05,
121
+ "loss": 0.1576,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 1.35,
126
+ "learning_rate": 1.4601889338731445e-05,
127
+ "loss": 0.1572,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 1.42,
132
+ "learning_rate": 1.4331983805668017e-05,
133
+ "loss": 0.1574,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 1.48,
138
+ "learning_rate": 1.406207827260459e-05,
139
+ "loss": 0.1579,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 1.55,
144
+ "learning_rate": 1.3792172739541161e-05,
145
+ "loss": 0.1585,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 1.62,
150
+ "learning_rate": 1.3522267206477734e-05,
151
+ "loss": 0.1568,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 1.69,
156
+ "learning_rate": 1.3252361673414307e-05,
157
+ "loss": 0.1572,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 1.75,
162
+ "learning_rate": 1.2982456140350879e-05,
163
+ "loss": 0.1569,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 1.82,
168
+ "learning_rate": 1.271255060728745e-05,
169
+ "loss": 0.1587,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 1.89,
174
+ "learning_rate": 1.2442645074224023e-05,
175
+ "loss": 0.1568,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 1.96,
180
+ "learning_rate": 1.2172739541160595e-05,
181
+ "loss": 0.1566,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 2.02,
186
+ "learning_rate": 1.1902834008097166e-05,
187
+ "loss": 0.1431,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 2.09,
192
+ "learning_rate": 1.163292847503374e-05,
193
+ "loss": 0.1183,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 2.16,
198
+ "learning_rate": 1.1363022941970312e-05,
199
+ "loss": 0.1194,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 2.23,
204
+ "learning_rate": 1.1093117408906884e-05,
205
+ "loss": 0.1198,
206
+ "step": 16500
207
+ },
208
+ {
209
+ "epoch": 2.29,
210
+ "learning_rate": 1.0823211875843455e-05,
211
+ "loss": 0.12,
212
+ "step": 17000
213
+ },
214
+ {
215
+ "epoch": 2.36,
216
+ "learning_rate": 1.0553306342780028e-05,
217
+ "loss": 0.1219,
218
+ "step": 17500
219
+ },
220
+ {
221
+ "epoch": 2.43,
222
+ "learning_rate": 1.02834008097166e-05,
223
+ "loss": 0.1211,
224
+ "step": 18000
225
+ },
226
+ {
227
+ "epoch": 2.5,
228
+ "learning_rate": 1.0013495276653171e-05,
229
+ "loss": 0.1219,
230
+ "step": 18500
231
+ },
232
+ {
233
+ "epoch": 2.56,
234
+ "learning_rate": 9.743589743589744e-06,
235
+ "loss": 0.121,
236
+ "step": 19000
237
+ },
238
+ {
239
+ "epoch": 2.63,
240
+ "learning_rate": 9.473684210526315e-06,
241
+ "loss": 0.1223,
242
+ "step": 19500
243
+ },
244
+ {
245
+ "epoch": 2.7,
246
+ "learning_rate": 9.203778677462889e-06,
247
+ "loss": 0.1206,
248
+ "step": 20000
249
+ },
250
+ {
251
+ "epoch": 2.77,
252
+ "learning_rate": 8.93387314439946e-06,
253
+ "loss": 0.1192,
254
+ "step": 20500
255
+ },
256
+ {
257
+ "epoch": 2.83,
258
+ "learning_rate": 8.663967611336033e-06,
259
+ "loss": 0.1217,
260
+ "step": 21000
261
+ },
262
+ {
263
+ "epoch": 2.9,
264
+ "learning_rate": 8.394062078272606e-06,
265
+ "loss": 0.12,
266
+ "step": 21500
267
+ },
268
+ {
269
+ "epoch": 2.97,
270
+ "learning_rate": 8.124156545209178e-06,
271
+ "loss": 0.1216,
272
+ "step": 22000
273
+ },
274
+ {
275
+ "epoch": 3.04,
276
+ "learning_rate": 7.854251012145749e-06,
277
+ "loss": 0.1055,
278
+ "step": 22500
279
+ },
280
+ {
281
+ "epoch": 3.1,
282
+ "learning_rate": 7.584345479082322e-06,
283
+ "loss": 0.0923,
284
+ "step": 23000
285
+ },
286
+ {
287
+ "epoch": 3.17,
288
+ "learning_rate": 7.314439946018894e-06,
289
+ "loss": 0.0926,
290
+ "step": 23500
291
+ },
292
+ {
293
+ "epoch": 3.24,
294
+ "learning_rate": 7.044534412955466e-06,
295
+ "loss": 0.0953,
296
+ "step": 24000
297
+ },
298
+ {
299
+ "epoch": 3.31,
300
+ "learning_rate": 6.774628879892038e-06,
301
+ "loss": 0.0951,
302
+ "step": 24500
303
+ },
304
+ {
305
+ "epoch": 3.37,
306
+ "learning_rate": 6.504723346828611e-06,
307
+ "loss": 0.0945,
308
+ "step": 25000
309
+ },
310
+ {
311
+ "epoch": 3.44,
312
+ "learning_rate": 6.234817813765183e-06,
313
+ "loss": 0.0949,
314
+ "step": 25500
315
+ },
316
+ {
317
+ "epoch": 3.51,
318
+ "learning_rate": 5.964912280701755e-06,
319
+ "loss": 0.0959,
320
+ "step": 26000
321
+ },
322
+ {
323
+ "epoch": 3.58,
324
+ "learning_rate": 5.695006747638327e-06,
325
+ "loss": 0.0946,
326
+ "step": 26500
327
+ },
328
+ {
329
+ "epoch": 3.64,
330
+ "learning_rate": 5.425101214574899e-06,
331
+ "loss": 0.0948,
332
+ "step": 27000
333
+ },
334
+ {
335
+ "epoch": 3.71,
336
+ "learning_rate": 5.155195681511471e-06,
337
+ "loss": 0.0939,
338
+ "step": 27500
339
+ },
340
+ {
341
+ "epoch": 3.78,
342
+ "learning_rate": 4.885290148448044e-06,
343
+ "loss": 0.0963,
344
+ "step": 28000
345
+ },
346
+ {
347
+ "epoch": 3.85,
348
+ "learning_rate": 4.615384615384616e-06,
349
+ "loss": 0.0946,
350
+ "step": 28500
351
+ },
352
+ {
353
+ "epoch": 3.91,
354
+ "learning_rate": 4.3454790823211876e-06,
355
+ "loss": 0.0939,
356
+ "step": 29000
357
+ },
358
+ {
359
+ "epoch": 3.98,
360
+ "learning_rate": 4.075573549257761e-06,
361
+ "loss": 0.0953,
362
+ "step": 29500
363
+ },
364
+ {
365
+ "epoch": 4.05,
366
+ "learning_rate": 3.805668016194332e-06,
367
+ "loss": 0.082,
368
+ "step": 30000
369
+ },
370
+ {
371
+ "epoch": 4.12,
372
+ "learning_rate": 3.5357624831309043e-06,
373
+ "loss": 0.0763,
374
+ "step": 30500
375
+ },
376
+ {
377
+ "epoch": 4.18,
378
+ "learning_rate": 3.265856950067476e-06,
379
+ "loss": 0.0773,
380
+ "step": 31000
381
+ },
382
+ {
383
+ "epoch": 4.25,
384
+ "learning_rate": 2.995951417004049e-06,
385
+ "loss": 0.0776,
386
+ "step": 31500
387
+ },
388
+ {
389
+ "epoch": 4.32,
390
+ "learning_rate": 2.726045883940621e-06,
391
+ "loss": 0.0785,
392
+ "step": 32000
393
+ },
394
+ {
395
+ "epoch": 4.39,
396
+ "learning_rate": 2.456140350877193e-06,
397
+ "loss": 0.0782,
398
+ "step": 32500
399
+ },
400
+ {
401
+ "epoch": 4.45,
402
+ "learning_rate": 2.1862348178137656e-06,
403
+ "loss": 0.0787,
404
+ "step": 33000
405
+ },
406
+ {
407
+ "epoch": 4.52,
408
+ "learning_rate": 1.9163292847503375e-06,
409
+ "loss": 0.0775,
410
+ "step": 33500
411
+ },
412
+ {
413
+ "epoch": 4.59,
414
+ "learning_rate": 1.6464237516869097e-06,
415
+ "loss": 0.0774,
416
+ "step": 34000
417
+ },
418
+ {
419
+ "epoch": 4.66,
420
+ "learning_rate": 1.3765182186234818e-06,
421
+ "loss": 0.0774,
422
+ "step": 34500
423
+ },
424
+ {
425
+ "epoch": 4.72,
426
+ "learning_rate": 1.106612685560054e-06,
427
+ "loss": 0.0772,
428
+ "step": 35000
429
+ },
430
+ {
431
+ "epoch": 4.79,
432
+ "learning_rate": 8.367071524966262e-07,
433
+ "loss": 0.0774,
434
+ "step": 35500
435
+ },
436
+ {
437
+ "epoch": 4.86,
438
+ "learning_rate": 5.668016194331984e-07,
439
+ "loss": 0.0775,
440
+ "step": 36000
441
+ },
442
+ {
443
+ "epoch": 4.93,
444
+ "learning_rate": 2.968960863697706e-07,
445
+ "loss": 0.0767,
446
+ "step": 36500
447
+ },
448
+ {
449
+ "epoch": 4.99,
450
+ "learning_rate": 2.6990553306342783e-08,
451
+ "loss": 0.0775,
452
+ "step": 37000
453
+ },
454
+ {
455
+ "epoch": 5.0,
456
+ "step": 37050,
457
+ "total_flos": 7.797868392139008e+17,
458
+ "train_loss": 0.13262820883479357,
459
+ "train_runtime": 27627.1148,
460
+ "train_samples_per_second": 429.103,
461
+ "train_steps_per_second": 1.341
462
+ }
463
+ ],
464
+ "max_steps": 37050,
465
+ "num_train_epochs": 5,
466
+ "total_flos": 7.797868392139008e+17,
467
+ "trial_name": null,
468
+ "trial_params": null
469
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c3cb585aaf5d7cff64bb55ee17a1c0393385d0f735a5b5a50c438ee2c5c9e51
3
+ size 2991
vocab.txt ADDED
The diff for this file is too large to render. See raw diff