Mathieu Laï-king
commited on
Commit
·
c399304
1
Parent(s):
98da01a
First model version
Browse files- README.md +21 -0
- config.json +48 -0
- optimizer.pt +3 -0
- pytorch_model.bin +3 -0
- rng_state.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- trainer_state.json +254 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- de
|
4 |
+
datasets:
|
5 |
+
- gnad10
|
6 |
+
tags:
|
7 |
+
- text-classification
|
8 |
+
- german-news-classification
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
- precision
|
12 |
+
- recall
|
13 |
+
- f1
|
14 |
+
---
|
15 |
+
|
16 |
+
# German BERT for News Classification
|
17 |
+
|
18 |
+
This a bert-base-german-cased model finetuned for text classification on german news articles
|
19 |
+
|
20 |
+
## Training data
|
21 |
+
Used the training set from the 10KGNAD dataset (gnad10 on HuggingFace Datasets).
|
config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-base-german-cased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "Web",
|
13 |
+
"1": "Panorama",
|
14 |
+
"2": "International",
|
15 |
+
"3": "Wirtschaft",
|
16 |
+
"4": "Sport",
|
17 |
+
"5": "Inland",
|
18 |
+
"6": "Etat",
|
19 |
+
"7": "Wissenschaft",
|
20 |
+
"8": "Kultur"
|
21 |
+
},
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 3072,
|
24 |
+
"label2id": {
|
25 |
+
"Web": 0,
|
26 |
+
"Panorama": 1,
|
27 |
+
"International": 2,
|
28 |
+
"Wirtschaft": 3,
|
29 |
+
"Sport": 4,
|
30 |
+
"Inland": 5,
|
31 |
+
"Etat": 6,
|
32 |
+
"Wissenschaft": 7,
|
33 |
+
"Kultur": 8
|
34 |
+
},
|
35 |
+
"layer_norm_eps": 1e-12,
|
36 |
+
"max_position_embeddings": 512,
|
37 |
+
"model_type": "bert",
|
38 |
+
"num_attention_heads": 12,
|
39 |
+
"num_hidden_layers": 12,
|
40 |
+
"pad_token_id": 0,
|
41 |
+
"position_embedding_type": "absolute",
|
42 |
+
"problem_type": "single_label_classification",
|
43 |
+
"torch_dtype": "float32",
|
44 |
+
"transformers_version": "4.12.3",
|
45 |
+
"type_vocab_size": 2,
|
46 |
+
"use_cache": true,
|
47 |
+
"vocab_size": 30000
|
48 |
+
}
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6f11f628d9742108335fcd75f9b1f9bff7600caacf59dffe0447ae9348f124c5
|
3 |
+
size 872822557
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e52c7e41653b5f7390302f36f791b27014e49f1e944920e3aa1d650c25aebed1
|
3 |
+
size 436437165
|
rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ef628c018f6f77bb58239b737a3ec5b81bf8b50e882733a3be54a37563dea230
|
3 |
+
size 14503
|
scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:389f9571242e0c2895041392c8e2b216f997fd545ea3b92b7998348587d6d9ce
|
3 |
+
size 623
|
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": false, "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-german-cased", "tokenizer_class": "BertTokenizer"}
|
trainer_state.json
ADDED
@@ -0,0 +1,254 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.40839770436286926,
|
3 |
+
"best_model_checkpoint": "/content/drive/MyDrive/colab/checkpoint-1700",
|
4 |
+
"epoch": 1.6346153846153846,
|
5 |
+
"global_step": 1700,
|
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.1,
|
12 |
+
"learning_rate": 4.7596153846153844e-05,
|
13 |
+
"loss": 1.033,
|
14 |
+
"step": 100
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.1,
|
18 |
+
"eval_loss": 0.6874200105667114,
|
19 |
+
"eval_runtime": 57.2656,
|
20 |
+
"eval_samples_per_second": 16.153,
|
21 |
+
"eval_steps_per_second": 2.026,
|
22 |
+
"step": 100
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"epoch": 0.19,
|
26 |
+
"learning_rate": 4.519230769230769e-05,
|
27 |
+
"loss": 0.6703,
|
28 |
+
"step": 200
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"epoch": 0.19,
|
32 |
+
"eval_loss": 0.5938639044761658,
|
33 |
+
"eval_runtime": 57.2626,
|
34 |
+
"eval_samples_per_second": 16.154,
|
35 |
+
"eval_steps_per_second": 2.026,
|
36 |
+
"step": 200
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"epoch": 0.29,
|
40 |
+
"learning_rate": 4.278846153846154e-05,
|
41 |
+
"loss": 0.6579,
|
42 |
+
"step": 300
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"epoch": 0.29,
|
46 |
+
"eval_loss": 0.49521076679229736,
|
47 |
+
"eval_runtime": 57.2701,
|
48 |
+
"eval_samples_per_second": 16.152,
|
49 |
+
"eval_steps_per_second": 2.025,
|
50 |
+
"step": 300
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 0.38,
|
54 |
+
"learning_rate": 4.038461538461539e-05,
|
55 |
+
"loss": 0.5068,
|
56 |
+
"step": 400
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 0.38,
|
60 |
+
"eval_loss": 0.5416558384895325,
|
61 |
+
"eval_runtime": 57.2833,
|
62 |
+
"eval_samples_per_second": 16.148,
|
63 |
+
"eval_steps_per_second": 2.025,
|
64 |
+
"step": 400
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"epoch": 0.48,
|
68 |
+
"learning_rate": 3.798076923076923e-05,
|
69 |
+
"loss": 0.5439,
|
70 |
+
"step": 500
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"epoch": 0.48,
|
74 |
+
"eval_loss": 0.5001481175422668,
|
75 |
+
"eval_runtime": 57.2802,
|
76 |
+
"eval_samples_per_second": 16.149,
|
77 |
+
"eval_steps_per_second": 2.025,
|
78 |
+
"step": 500
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"epoch": 0.58,
|
82 |
+
"learning_rate": 3.557692307692308e-05,
|
83 |
+
"loss": 0.5429,
|
84 |
+
"step": 600
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.58,
|
88 |
+
"eval_loss": 0.47204354405403137,
|
89 |
+
"eval_runtime": 57.2593,
|
90 |
+
"eval_samples_per_second": 16.155,
|
91 |
+
"eval_steps_per_second": 2.026,
|
92 |
+
"step": 600
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 0.67,
|
96 |
+
"learning_rate": 3.3173076923076926e-05,
|
97 |
+
"loss": 0.4817,
|
98 |
+
"step": 700
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 0.67,
|
102 |
+
"eval_loss": 0.5970540642738342,
|
103 |
+
"eval_runtime": 57.2593,
|
104 |
+
"eval_samples_per_second": 16.155,
|
105 |
+
"eval_steps_per_second": 2.026,
|
106 |
+
"step": 700
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"epoch": 0.77,
|
110 |
+
"learning_rate": 3.0769230769230774e-05,
|
111 |
+
"loss": 0.5023,
|
112 |
+
"step": 800
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"epoch": 0.77,
|
116 |
+
"eval_loss": 0.44290876388549805,
|
117 |
+
"eval_runtime": 57.2393,
|
118 |
+
"eval_samples_per_second": 16.16,
|
119 |
+
"eval_steps_per_second": 2.027,
|
120 |
+
"step": 800
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"epoch": 0.87,
|
124 |
+
"learning_rate": 2.8365384615384616e-05,
|
125 |
+
"loss": 0.4756,
|
126 |
+
"step": 900
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"epoch": 0.87,
|
130 |
+
"eval_loss": 0.49230891466140747,
|
131 |
+
"eval_runtime": 57.0994,
|
132 |
+
"eval_samples_per_second": 16.2,
|
133 |
+
"eval_steps_per_second": 2.032,
|
134 |
+
"step": 900
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"epoch": 0.96,
|
138 |
+
"learning_rate": 2.5961538461538464e-05,
|
139 |
+
"loss": 0.4772,
|
140 |
+
"step": 1000
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"epoch": 0.96,
|
144 |
+
"eval_loss": 0.4519612491130829,
|
145 |
+
"eval_runtime": 57.1095,
|
146 |
+
"eval_samples_per_second": 16.197,
|
147 |
+
"eval_steps_per_second": 2.031,
|
148 |
+
"step": 1000
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"epoch": 1.06,
|
152 |
+
"learning_rate": 2.355769230769231e-05,
|
153 |
+
"loss": 0.336,
|
154 |
+
"step": 1100
|
155 |
+
},
|
156 |
+
{
|
157 |
+
"epoch": 1.06,
|
158 |
+
"eval_loss": 0.41091373562812805,
|
159 |
+
"eval_runtime": 57.1093,
|
160 |
+
"eval_samples_per_second": 16.197,
|
161 |
+
"eval_steps_per_second": 2.031,
|
162 |
+
"step": 1100
|
163 |
+
},
|
164 |
+
{
|
165 |
+
"epoch": 1.15,
|
166 |
+
"learning_rate": 2.1153846153846154e-05,
|
167 |
+
"loss": 0.2225,
|
168 |
+
"step": 1200
|
169 |
+
},
|
170 |
+
{
|
171 |
+
"epoch": 1.15,
|
172 |
+
"eval_loss": 0.4540548324584961,
|
173 |
+
"eval_runtime": 57.116,
|
174 |
+
"eval_samples_per_second": 16.195,
|
175 |
+
"eval_steps_per_second": 2.031,
|
176 |
+
"step": 1200
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"epoch": 1.25,
|
180 |
+
"learning_rate": 1.8750000000000002e-05,
|
181 |
+
"loss": 0.2296,
|
182 |
+
"step": 1300
|
183 |
+
},
|
184 |
+
{
|
185 |
+
"epoch": 1.25,
|
186 |
+
"eval_loss": 0.4974042475223541,
|
187 |
+
"eval_runtime": 57.1073,
|
188 |
+
"eval_samples_per_second": 16.198,
|
189 |
+
"eval_steps_per_second": 2.031,
|
190 |
+
"step": 1300
|
191 |
+
},
|
192 |
+
{
|
193 |
+
"epoch": 1.35,
|
194 |
+
"learning_rate": 1.6346153846153847e-05,
|
195 |
+
"loss": 0.2511,
|
196 |
+
"step": 1400
|
197 |
+
},
|
198 |
+
{
|
199 |
+
"epoch": 1.35,
|
200 |
+
"eval_loss": 0.48081809282302856,
|
201 |
+
"eval_runtime": 57.1059,
|
202 |
+
"eval_samples_per_second": 16.198,
|
203 |
+
"eval_steps_per_second": 2.031,
|
204 |
+
"step": 1400
|
205 |
+
},
|
206 |
+
{
|
207 |
+
"epoch": 1.44,
|
208 |
+
"learning_rate": 1.3942307692307693e-05,
|
209 |
+
"loss": 0.3349,
|
210 |
+
"step": 1500
|
211 |
+
},
|
212 |
+
{
|
213 |
+
"epoch": 1.44,
|
214 |
+
"eval_loss": 0.4536380171775818,
|
215 |
+
"eval_runtime": 57.096,
|
216 |
+
"eval_samples_per_second": 16.201,
|
217 |
+
"eval_steps_per_second": 2.032,
|
218 |
+
"step": 1500
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"epoch": 1.54,
|
222 |
+
"learning_rate": 1.153846153846154e-05,
|
223 |
+
"loss": 0.2529,
|
224 |
+
"step": 1600
|
225 |
+
},
|
226 |
+
{
|
227 |
+
"epoch": 1.54,
|
228 |
+
"eval_loss": 0.4738934636116028,
|
229 |
+
"eval_runtime": 57.1337,
|
230 |
+
"eval_samples_per_second": 16.19,
|
231 |
+
"eval_steps_per_second": 2.03,
|
232 |
+
"step": 1600
|
233 |
+
},
|
234 |
+
{
|
235 |
+
"epoch": 1.63,
|
236 |
+
"learning_rate": 9.134615384615384e-06,
|
237 |
+
"loss": 0.2064,
|
238 |
+
"step": 1700
|
239 |
+
},
|
240 |
+
{
|
241 |
+
"epoch": 1.63,
|
242 |
+
"eval_loss": 0.40839770436286926,
|
243 |
+
"eval_runtime": 57.1173,
|
244 |
+
"eval_samples_per_second": 16.195,
|
245 |
+
"eval_steps_per_second": 2.031,
|
246 |
+
"step": 1700
|
247 |
+
}
|
248 |
+
],
|
249 |
+
"max_steps": 2080,
|
250 |
+
"num_train_epochs": 2,
|
251 |
+
"total_flos": 3578535250329600.0,
|
252 |
+
"trial_name": null,
|
253 |
+
"trial_params": null
|
254 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c409fc8b117df90c48570ef0a0610bedf911537d8327c83194ae77411c61dfce
|
3 |
+
size 2863
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|