WUJUNCHAO commited on
Commit
91cf67b
1 Parent(s): 86a9b48

add chinese roberta model for danmaku

Browse files
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ metrics:
5
+ - accuracy
6
+ model-index:
7
+ - name: danmaku-mlm
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # danmaku-mlm
15
+
16
+ This model is a fine-tuned version of [uer/chinese_roberta_L-8_H-512](https://huggingface.co/uer/chinese_roberta_L-8_H-512) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 1.1645
19
+ - Accuracy: 0.7780
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 64
40
+ - eval_batch_size: 64
41
+ - seed: 42
42
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
+ - lr_scheduler_type: linear
44
+ - num_epochs: 3.0
45
+ - mixed_precision_training: Native AMP
46
+
47
+ ### Training results
48
+
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.28.0.dev0
54
+ - Pytorch 1.13.1
55
+ - Datasets 2.6.1
56
+ - Tokenizers 0.11.0
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.778025406730555,
4
+ "eval_loss": 1.1644741296768188,
5
+ "eval_runtime": 0.8309,
6
+ "eval_samples": 69,
7
+ "eval_samples_per_second": 83.042,
8
+ "eval_steps_per_second": 2.407,
9
+ "perplexity": 3.204237426704749,
10
+ "train_loss": 1.0424538015431204,
11
+ "train_runtime": 40144.3005,
12
+ "train_samples": 403758,
13
+ "train_samples_per_second": 30.173,
14
+ "train_steps_per_second": 0.471
15
+ }
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "uer/chinese_roberta_L-8_H-512",
3
+ "architectures": [
4
+ "BertForMaskedLM"
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": 512,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 2048,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 8,
18
+ "num_hidden_layers": 8,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.28.0.dev0",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 21128
26
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.778025406730555,
4
+ "eval_loss": 1.1644741296768188,
5
+ "eval_runtime": 0.8309,
6
+ "eval_samples": 69,
7
+ "eval_samples_per_second": 83.042,
8
+ "eval_steps_per_second": 2.407,
9
+ "perplexity": 3.204237426704749
10
+ }
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "pad_token_id": 0,
4
+ "transformers_version": "4.28.0.dev0"
5
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3083a30a497098da2aae95e810d4c377f63cf4c7a6b22370732f51cebf29dba
3
+ size 146393849
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,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_basic_tokenize": true,
4
+ "do_lower_case": false,
5
+ "mask_token": "[MASK]",
6
+ "model_max_length": 512,
7
+ "never_split": null,
8
+ "pad_token": "[PAD]",
9
+ "sep_token": "[SEP]",
10
+ "special_tokens_map_file": "/home/derekfw/.cache/huggingface/hub/models--uer--chinese_roberta_L-8_H-512/snapshots/ad32c8ad55b3ddbda96f18ec686edfa39817d1ec/special_tokens_map.json",
11
+ "strip_accents": null,
12
+ "tokenize_chinese_chars": true,
13
+ "tokenizer_class": "BertTokenizer",
14
+ "unk_token": "[UNK]"
15
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 1.0424538015431204,
4
+ "train_runtime": 40144.3005,
5
+ "train_samples": 403758,
6
+ "train_samples_per_second": 30.173,
7
+ "train_steps_per_second": 0.471
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 18927,
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.08,
12
+ "learning_rate": 4.867913562635389e-05,
13
+ "loss": 1.2978,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.16,
18
+ "learning_rate": 4.735827125270778e-05,
19
+ "loss": 1.2005,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.24,
24
+ "learning_rate": 4.603740687906166e-05,
25
+ "loss": 1.1692,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.32,
30
+ "learning_rate": 4.471654250541555e-05,
31
+ "loss": 1.1418,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.4,
36
+ "learning_rate": 4.339567813176943e-05,
37
+ "loss": 1.1284,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.48,
42
+ "learning_rate": 4.2074813758123315e-05,
43
+ "loss": 1.105,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.55,
48
+ "learning_rate": 4.07539493844772e-05,
49
+ "loss": 1.1058,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 0.63,
54
+ "learning_rate": 3.943308501083109e-05,
55
+ "loss": 1.0819,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 0.71,
60
+ "learning_rate": 3.811222063718498e-05,
61
+ "loss": 1.0774,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 0.79,
66
+ "learning_rate": 3.6793997992286154e-05,
67
+ "loss": 1.0645,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 0.87,
72
+ "learning_rate": 3.547313361864004e-05,
73
+ "loss": 1.059,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 0.95,
78
+ "learning_rate": 3.415226924499392e-05,
79
+ "loss": 1.0522,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 1.03,
84
+ "learning_rate": 3.283140487134781e-05,
85
+ "loss": 1.0476,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 1.11,
90
+ "learning_rate": 3.15105404977017e-05,
91
+ "loss": 1.0402,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 1.19,
96
+ "learning_rate": 3.0189676124055582e-05,
97
+ "loss": 1.0404,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 1.27,
102
+ "learning_rate": 2.886881175040947e-05,
103
+ "loss": 1.0339,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 1.35,
108
+ "learning_rate": 2.7547947376763355e-05,
109
+ "loss": 1.0283,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 1.43,
114
+ "learning_rate": 2.6229724731864537e-05,
115
+ "loss": 1.0299,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 1.51,
120
+ "learning_rate": 2.4908860358218418e-05,
121
+ "loss": 1.019,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 1.59,
126
+ "learning_rate": 2.3587995984572305e-05,
127
+ "loss": 1.0144,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 1.66,
132
+ "learning_rate": 2.2269773339673484e-05,
133
+ "loss": 1.0099,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 1.74,
138
+ "learning_rate": 2.094890896602737e-05,
139
+ "loss": 1.0064,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 1.82,
144
+ "learning_rate": 1.9628044592381256e-05,
145
+ "loss": 0.9982,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 1.9,
150
+ "learning_rate": 1.830718021873514e-05,
151
+ "loss": 0.9962,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 1.98,
156
+ "learning_rate": 1.6986315845089025e-05,
157
+ "loss": 1.0024,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 2.06,
162
+ "learning_rate": 1.5665451471442913e-05,
163
+ "loss": 1.0024,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 2.14,
168
+ "learning_rate": 1.4344587097796799e-05,
169
+ "loss": 0.9936,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 2.22,
174
+ "learning_rate": 1.3026364452897977e-05,
175
+ "loss": 0.9988,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 2.3,
180
+ "learning_rate": 1.1705500079251864e-05,
181
+ "loss": 0.9902,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 2.38,
186
+ "learning_rate": 1.0384635705605748e-05,
187
+ "loss": 0.9885,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 2.46,
192
+ "learning_rate": 9.066413060706927e-06,
193
+ "loss": 0.9836,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 2.54,
198
+ "learning_rate": 7.745548687060814e-06,
199
+ "loss": 0.9866,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 2.62,
204
+ "learning_rate": 6.424684313414699e-06,
205
+ "loss": 0.9871,
206
+ "step": 16500
207
+ },
208
+ {
209
+ "epoch": 2.69,
210
+ "learning_rate": 5.103819939768585e-06,
211
+ "loss": 0.992,
212
+ "step": 17000
213
+ },
214
+ {
215
+ "epoch": 2.77,
216
+ "learning_rate": 3.782955566122471e-06,
217
+ "loss": 0.9804,
218
+ "step": 17500
219
+ },
220
+ {
221
+ "epoch": 2.85,
222
+ "learning_rate": 2.462091192476357e-06,
223
+ "loss": 0.9887,
224
+ "step": 18000
225
+ },
226
+ {
227
+ "epoch": 2.93,
228
+ "learning_rate": 1.1412268188302427e-06,
229
+ "loss": 0.9785,
230
+ "step": 18500
231
+ },
232
+ {
233
+ "epoch": 3.0,
234
+ "step": 18927,
235
+ "total_flos": 9.490460801340211e+16,
236
+ "train_loss": 1.0424538015431204,
237
+ "train_runtime": 40144.3005,
238
+ "train_samples_per_second": 30.173,
239
+ "train_steps_per_second": 0.471
240
+ }
241
+ ],
242
+ "max_steps": 18927,
243
+ "num_train_epochs": 3,
244
+ "total_flos": 9.490460801340211e+16,
245
+ "trial_name": null,
246
+ "trial_params": null
247
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:194a2824bcf8b1cab884cb1f1944cf1cec86a228e08dc5ec278b140c96ef493f
3
+ size 3643
vocab.txt ADDED
The diff for this file is too large to render. See raw diff