AlienKevin commited on
Commit
4c81c19
·
verified ·
1 Parent(s): 5313d3c

Upload 13 files

Browse files
README.md CHANGED
@@ -1,3 +1,53 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: toastynews/electra-hongkongese-small-discriminator
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: electra_small_layers_6_multi
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
+ # electra_small_layers_6_multi
16
+
17
+ This model is a fine-tuned version of [toastynews/electra-hongkongese-small-discriminator](https://huggingface.co/toastynews/electra-hongkongese-small-discriminator) on an unknown dataset.
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 5e-05
37
+ - train_batch_size: 8
38
+ - eval_batch_size: 8
39
+ - seed: 42
40
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
+ - lr_scheduler_type: linear
42
+ - num_epochs: 3.0
43
+
44
+ ### Training results
45
+
46
+
47
+
48
+ ### Framework versions
49
+
50
+ - Transformers 4.45.0.dev0
51
+ - Pytorch 2.4.0
52
+ - Datasets 2.20.0
53
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 797101335136512.0,
4
+ "train_loss": 0.09493603817759208,
5
+ "train_runtime": 3874.7393,
6
+ "train_samples": 58323,
7
+ "train_samples_per_second": 45.156,
8
+ "train_steps_per_second": 5.645
9
+ }
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "toastynews/electra-hongkongese-small-discriminator",
3
+ "architectures": [
4
+ "ElectraForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 128,
9
+ "finetuning_task": "ner",
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 256,
13
+ "id2label": {
14
+ "0": "D",
15
+ "1": "I",
16
+ "2": "P",
17
+ "3": "S"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 1024,
21
+ "label2id": {
22
+ "D": 0,
23
+ "I": 1,
24
+ "P": 2,
25
+ "S": 3
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "electra",
30
+ "num_attention_heads": 4,
31
+ "num_hidden_layers": 6,
32
+ "pad_token_id": 0,
33
+ "position_embedding_type": "absolute",
34
+ "summary_activation": "gelu",
35
+ "summary_last_dropout": 0.1,
36
+ "summary_type": "first",
37
+ "summary_use_proj": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.45.0.dev0",
40
+ "type_vocab_size": 2,
41
+ "use_cache": true,
42
+ "vocab_size": 30000
43
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af9104bd9169f24f8c5043b7a21e95b76eb350621084ef7a936b42938da85a35
3
+ size 34726952
runs/Sep10_11-57-50_192.168.2.6/events.out.tfevents.1725940692.192.168.2.6.34429.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:849bbc9fab2c57dd52788d9b31057cc9c9d5030b6ebfe8a6990e215c62dc664a
3
+ size 5540
runs/Sep10_12-15-42_192.168.2.6/events.out.tfevents.1725941767.192.168.2.6.55813.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de1c0c15d190b9386ab009427a2fea22d5640b85ffd8a67e8bb3e29255521386
3
+ size 14595
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.json ADDED
The diff for this file is too large to render. See raw diff
 
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": "ElectraTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 797101335136512.0,
4
+ "train_loss": 0.09493603817759208,
5
+ "train_runtime": 3874.7393,
6
+ "train_samples": 58323,
7
+ "train_samples_per_second": 45.156,
8
+ "train_steps_per_second": 5.645
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,343 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 21873,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.06857769853243725,
13
+ "grad_norm": 1.0945861339569092,
14
+ "learning_rate": 4.8857038357792714e-05,
15
+ "loss": 0.318,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.1371553970648745,
20
+ "grad_norm": 0.6745380163192749,
21
+ "learning_rate": 4.7714076715585427e-05,
22
+ "loss": 0.1574,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.20573309559731176,
27
+ "grad_norm": 0.7351590991020203,
28
+ "learning_rate": 4.657111507337814e-05,
29
+ "loss": 0.1403,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 0.274310794129749,
34
+ "grad_norm": 0.8816856145858765,
35
+ "learning_rate": 4.542815343117085e-05,
36
+ "loss": 0.1308,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 0.34288849266218624,
41
+ "grad_norm": 0.8210085034370422,
42
+ "learning_rate": 4.428519178896356e-05,
43
+ "loss": 0.1228,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 0.4114661911946235,
48
+ "grad_norm": 0.6685318350791931,
49
+ "learning_rate": 4.314223014675628e-05,
50
+ "loss": 0.1219,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 0.48004388972706075,
55
+ "grad_norm": 0.7579106092453003,
56
+ "learning_rate": 4.199926850454899e-05,
57
+ "loss": 0.117,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 0.548621588259498,
62
+ "grad_norm": 1.059991478919983,
63
+ "learning_rate": 4.0856306862341706e-05,
64
+ "loss": 0.1127,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 0.6171992867919353,
69
+ "grad_norm": 0.9921385049819946,
70
+ "learning_rate": 3.971334522013441e-05,
71
+ "loss": 0.1126,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 0.6857769853243725,
76
+ "grad_norm": 0.6036443114280701,
77
+ "learning_rate": 3.857038357792713e-05,
78
+ "loss": 0.1099,
79
+ "step": 5000
80
+ },
81
+ {
82
+ "epoch": 0.7543546838568098,
83
+ "grad_norm": 0.88544762134552,
84
+ "learning_rate": 3.7427421935719835e-05,
85
+ "loss": 0.1063,
86
+ "step": 5500
87
+ },
88
+ {
89
+ "epoch": 0.822932382389247,
90
+ "grad_norm": 0.6532144546508789,
91
+ "learning_rate": 3.6284460293512554e-05,
92
+ "loss": 0.1065,
93
+ "step": 6000
94
+ },
95
+ {
96
+ "epoch": 0.8915100809216843,
97
+ "grad_norm": 0.755144476890564,
98
+ "learning_rate": 3.5141498651305266e-05,
99
+ "loss": 0.106,
100
+ "step": 6500
101
+ },
102
+ {
103
+ "epoch": 0.9600877794541215,
104
+ "grad_norm": 0.9388787150382996,
105
+ "learning_rate": 3.399853700909797e-05,
106
+ "loss": 0.1029,
107
+ "step": 7000
108
+ },
109
+ {
110
+ "epoch": 1.0286654779865587,
111
+ "grad_norm": 0.8779000043869019,
112
+ "learning_rate": 3.285557536689069e-05,
113
+ "loss": 0.1011,
114
+ "step": 7500
115
+ },
116
+ {
117
+ "epoch": 1.097243176518996,
118
+ "grad_norm": 0.8181456923484802,
119
+ "learning_rate": 3.1712613724683396e-05,
120
+ "loss": 0.0941,
121
+ "step": 8000
122
+ },
123
+ {
124
+ "epoch": 1.1658208750514332,
125
+ "grad_norm": 0.7053276300430298,
126
+ "learning_rate": 3.0569652082476115e-05,
127
+ "loss": 0.0943,
128
+ "step": 8500
129
+ },
130
+ {
131
+ "epoch": 1.2343985735838705,
132
+ "grad_norm": 0.9002987146377563,
133
+ "learning_rate": 2.9426690440268827e-05,
134
+ "loss": 0.0942,
135
+ "step": 9000
136
+ },
137
+ {
138
+ "epoch": 1.3029762721163078,
139
+ "grad_norm": 0.5714060664176941,
140
+ "learning_rate": 2.8283728798061536e-05,
141
+ "loss": 0.0937,
142
+ "step": 9500
143
+ },
144
+ {
145
+ "epoch": 1.371553970648745,
146
+ "grad_norm": 0.7014051079750061,
147
+ "learning_rate": 2.714076715585425e-05,
148
+ "loss": 0.0925,
149
+ "step": 10000
150
+ },
151
+ {
152
+ "epoch": 1.4401316691811823,
153
+ "grad_norm": 0.9592730402946472,
154
+ "learning_rate": 2.599780551364696e-05,
155
+ "loss": 0.0949,
156
+ "step": 10500
157
+ },
158
+ {
159
+ "epoch": 1.5087093677136196,
160
+ "grad_norm": 0.6313921213150024,
161
+ "learning_rate": 2.4854843871439675e-05,
162
+ "loss": 0.0923,
163
+ "step": 11000
164
+ },
165
+ {
166
+ "epoch": 1.5772870662460567,
167
+ "grad_norm": 0.8395763039588928,
168
+ "learning_rate": 2.3711882229232387e-05,
169
+ "loss": 0.0911,
170
+ "step": 11500
171
+ },
172
+ {
173
+ "epoch": 1.645864764778494,
174
+ "grad_norm": 0.7302150130271912,
175
+ "learning_rate": 2.25689205870251e-05,
176
+ "loss": 0.0911,
177
+ "step": 12000
178
+ },
179
+ {
180
+ "epoch": 1.7144424633109314,
181
+ "grad_norm": 0.5918404459953308,
182
+ "learning_rate": 2.142595894481781e-05,
183
+ "loss": 0.0896,
184
+ "step": 12500
185
+ },
186
+ {
187
+ "epoch": 1.7830201618433685,
188
+ "grad_norm": 0.7551326155662537,
189
+ "learning_rate": 2.0282997302610527e-05,
190
+ "loss": 0.0905,
191
+ "step": 13000
192
+ },
193
+ {
194
+ "epoch": 1.8515978603758056,
195
+ "grad_norm": 1.6809072494506836,
196
+ "learning_rate": 1.914003566040324e-05,
197
+ "loss": 0.0891,
198
+ "step": 13500
199
+ },
200
+ {
201
+ "epoch": 1.920175558908243,
202
+ "grad_norm": 0.6433506011962891,
203
+ "learning_rate": 1.799707401819595e-05,
204
+ "loss": 0.0894,
205
+ "step": 14000
206
+ },
207
+ {
208
+ "epoch": 1.9887532574406803,
209
+ "grad_norm": 0.7609830498695374,
210
+ "learning_rate": 1.6854112375988663e-05,
211
+ "loss": 0.0892,
212
+ "step": 14500
213
+ },
214
+ {
215
+ "epoch": 2.0573309559731174,
216
+ "grad_norm": 0.611824095249176,
217
+ "learning_rate": 1.5711150733781376e-05,
218
+ "loss": 0.0847,
219
+ "step": 15000
220
+ },
221
+ {
222
+ "epoch": 2.125908654505555,
223
+ "grad_norm": 0.7075466513633728,
224
+ "learning_rate": 1.456818909157409e-05,
225
+ "loss": 0.0841,
226
+ "step": 15500
227
+ },
228
+ {
229
+ "epoch": 2.194486353037992,
230
+ "grad_norm": 0.6217673420906067,
231
+ "learning_rate": 1.3425227449366801e-05,
232
+ "loss": 0.0827,
233
+ "step": 16000
234
+ },
235
+ {
236
+ "epoch": 2.2630640515704292,
237
+ "grad_norm": 0.862660825252533,
238
+ "learning_rate": 1.2282265807159512e-05,
239
+ "loss": 0.0841,
240
+ "step": 16500
241
+ },
242
+ {
243
+ "epoch": 2.3316417501028663,
244
+ "grad_norm": 0.832482635974884,
245
+ "learning_rate": 1.1139304164952224e-05,
246
+ "loss": 0.0832,
247
+ "step": 17000
248
+ },
249
+ {
250
+ "epoch": 2.400219448635304,
251
+ "grad_norm": 0.8499016761779785,
252
+ "learning_rate": 9.996342522744938e-06,
253
+ "loss": 0.0835,
254
+ "step": 17500
255
+ },
256
+ {
257
+ "epoch": 2.468797147167741,
258
+ "grad_norm": 0.5063202977180481,
259
+ "learning_rate": 8.85338088053765e-06,
260
+ "loss": 0.082,
261
+ "step": 18000
262
+ },
263
+ {
264
+ "epoch": 2.537374845700178,
265
+ "grad_norm": 0.8636651635169983,
266
+ "learning_rate": 7.710419238330362e-06,
267
+ "loss": 0.0816,
268
+ "step": 18500
269
+ },
270
+ {
271
+ "epoch": 2.6059525442326157,
272
+ "grad_norm": 0.7150306105613708,
273
+ "learning_rate": 6.567457596123075e-06,
274
+ "loss": 0.0827,
275
+ "step": 19000
276
+ },
277
+ {
278
+ "epoch": 2.674530242765053,
279
+ "grad_norm": 0.6820867657661438,
280
+ "learning_rate": 5.424495953915787e-06,
281
+ "loss": 0.0829,
282
+ "step": 19500
283
+ },
284
+ {
285
+ "epoch": 2.74310794129749,
286
+ "grad_norm": 0.8032534718513489,
287
+ "learning_rate": 4.2815343117085e-06,
288
+ "loss": 0.0819,
289
+ "step": 20000
290
+ },
291
+ {
292
+ "epoch": 2.8116856398299275,
293
+ "grad_norm": 0.6814680099487305,
294
+ "learning_rate": 3.1385726695012116e-06,
295
+ "loss": 0.0825,
296
+ "step": 20500
297
+ },
298
+ {
299
+ "epoch": 2.8802633383623646,
300
+ "grad_norm": 0.5674154162406921,
301
+ "learning_rate": 1.995611027293924e-06,
302
+ "loss": 0.0791,
303
+ "step": 21000
304
+ },
305
+ {
306
+ "epoch": 2.9488410368948017,
307
+ "grad_norm": 0.8843555450439453,
308
+ "learning_rate": 8.526493850866365e-07,
309
+ "loss": 0.0823,
310
+ "step": 21500
311
+ },
312
+ {
313
+ "epoch": 3.0,
314
+ "step": 21873,
315
+ "total_flos": 797101335136512.0,
316
+ "train_loss": 0.09493603817759208,
317
+ "train_runtime": 3874.7393,
318
+ "train_samples_per_second": 45.156,
319
+ "train_steps_per_second": 5.645
320
+ }
321
+ ],
322
+ "logging_steps": 500,
323
+ "max_steps": 21873,
324
+ "num_input_tokens_seen": 0,
325
+ "num_train_epochs": 3,
326
+ "save_steps": 500,
327
+ "stateful_callbacks": {
328
+ "TrainerControl": {
329
+ "args": {
330
+ "should_epoch_stop": false,
331
+ "should_evaluate": false,
332
+ "should_log": false,
333
+ "should_save": true,
334
+ "should_training_stop": true
335
+ },
336
+ "attributes": {}
337
+ }
338
+ },
339
+ "total_flos": 797101335136512.0,
340
+ "train_batch_size": 8,
341
+ "trial_name": null,
342
+ "trial_params": null
343
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ee57751bd9fcea100594f7aa0cea8e8046ae61e732b6a4cf45d5c9121c7030a
3
+ size 5240
vocab.txt ADDED
The diff for this file is too large to render. See raw diff