aehrm commited on
Commit
b73ef67
1 Parent(s): c13d2f7

upload model

Browse files
README.md CHANGED
@@ -1,3 +1,97 @@
1
  ---
 
2
  license: mit
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language: de
3
  license: mit
4
+ metrics:
5
+ - accuracy
6
+ model-index:
7
+ - name: GePaBERT
8
  ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ # GePaBERT
14
+
15
+ This model is a fine-tuned version of [deepset/gbert-large](https://huggingface.co/deepset/gbert-large) on a corpus of parliamentary speeches held in the German Bundestag.
16
+ It was specifically designed for the KONVENS 2023 shared task on speaker attribution.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.7997
19
+ - Accuracy: 0.8020
20
+
21
+ ## Training and evaluation data
22
+
23
+ The corpus of parliamentary speeches covers speeches held in the German Bundestag during the 9th-20th legislative period, from 1980 to April 2023. (757 MB)
24
+ The speeches were automatically prepared from the publicly available [plenary protocols](https://www.bundestag.de/services/opendata), using the
25
+ extraction pipeline [Open Discourse](https://opendiscourse.de) ([GitHub code](https://github.com/open-discourse/open-discourse)).
26
+ Evaluation was done on a randomly-sampled 5% held-out dataset.
27
+
28
+ ### Training hyperparameters
29
+
30
+ The following hyperparameters were used during training:
31
+ - `learning_rate`: 2e-05
32
+ - `train_batch_size`: 8
33
+ - `optimizer`: Adam with `betas=(0.9,0.999)` and `epsilon=1e-08`
34
+ - `lr_scheduler_type`: linear
35
+ - `num_epochs`: 5
36
+
37
+ ### Training results
38
+
39
+ | Training Loss | Epoch | Step | Accuracy | Validation Loss |
40
+ |:-------------:|:-----:|:------:|:--------:|:---------------:|
41
+ | 1.0697 | 0.1 | 3489 | 0.7697 | 0.9802 |
42
+ | 1.0339 | 0.2 | 6978 | 0.7727 | 0.9562 |
43
+ | 1.0203 | 0.3 | 10467 | 0.7739 | 0.9463 |
44
+ | 1.0215 | 0.4 | 13956 | 0.7743 | 0.9477 |
45
+ | 1.0046 | 0.5 | 17445 | 0.7779 | 0.9299 |
46
+ | 1.0036 | 0.6 | 20934 | 0.7764 | 0.9372 |
47
+ | 1.2439 | 0.7 | 24423 | 0.7352 | 1.2473 |
48
+ | 1.4382 | 0.8 | 27912 | 0.6947 | 1.5782 |
49
+ | 1.1744 | 0.9 | 31401 | 0.7764 | 0.9360 |
50
+ | 0.9718 | 1.0 | 34890 | 0.7799 | 0.9179 |
51
+ | 0.9557 | 1.1 | 38379 | 0.7824 | 0.9038 |
52
+ | 0.947 | 1.2 | 41868 | 0.7830 | 0.9000 |
53
+ | 0.9487 | 1.3 | 45357 | 0.7833 | 0.8982 |
54
+ | 0.9457 | 1.4 | 48846 | 0.7851 | 0.8862 |
55
+ | 0.9442 | 1.5 | 52335 | 0.7863 | 0.8839 |
56
+ | 0.9473 | 1.6 | 55824 | 0.7850 | 0.8855 |
57
+ | 0.9388 | 1.7 | 59313 | 0.7865 | 0.8771 |
58
+ | 0.9293 | 1.8 | 62802 | 0.7868 | 0.8805 |
59
+ | 0.9242 | 1.9 | 66291 | 0.7873 | 0.8738 |
60
+ | 0.9241 | 2.0 | 69780 | 0.7872 | 0.8757 |
61
+ | 0.9127 | 2.1 | 73269 | 0.7896 | 0.8641 |
62
+ | 0.9114 | 2.2 | 76758 | 0.7900 | 0.8627 |
63
+ | 0.9095 | 2.3 | 80247 | 0.7913 | 0.8540 |
64
+ | 0.9042 | 2.4 | 83736 | 0.7920 | 0.8518 |
65
+ | 0.8999 | 2.5 | 87225 | 0.7919 | 0.8514 |
66
+ | 0.899 | 2.6 | 90714 | 0.7918 | 0.8543 |
67
+ | 0.8945 | 2.7 | 94203 | 0.7935 | 0.8418 |
68
+ | 0.8867 | 2.8 | 97692 | 0.7934 | 0.8437 |
69
+ | 0.893 | 2.9 | 101181 | 0.7938 | 0.8414 |
70
+ | 0.8798 | 3.0 | 104670 | 0.7951 | 0.8359 |
71
+ | 0.868 | 3.1 | 108159 | 0.7943 | 0.8375 |
72
+ | 0.8736 | 3.2 | 111648 | 0.7956 | 0.8323 |
73
+ | 0.8756 | 3.3 | 115137 | 0.7959 | 0.8315 |
74
+ | 0.8681 | 3.4 | 118626 | 0.7964 | 0.8258 |
75
+ | 0.8726 | 3.5 | 122115 | 0.7966 | 0.8266 |
76
+ | 0.8594 | 3.6 | 125604 | 0.7967 | 0.8246 |
77
+ | 0.8515 | 3.7 | 129093 | 0.7973 | 0.8227 |
78
+ | 0.8568 | 3.8 | 132582 | 0.7979 | 0.8195 |
79
+ | 0.8626 | 3.9 | 136071 | 0.7983 | 0.8173 |
80
+ | 0.8585 | 4.0 | 139560 | 0.7978 | 0.8190 |
81
+ | 0.8497 | 4.1 | 143049 | 0.7991 | 0.8127 |
82
+ | 0.8383 | 4.2 | 146538 | 0.7992 | 0.8154 |
83
+ | 0.8457 | 4.3 | 150027 | 0.8002 | 0.8080 |
84
+ | 0.8353 | 4.4 | 153516 | 0.8005 | 0.8077 |
85
+ | 0.8393 | 4.5 | 157005 | 0.8009 | 0.8027 |
86
+ | 0.8417 | 4.6 | 160494 | 0.8050 | 0.8007 |
87
+ | 0.836 | 4.7 | 163983 | 0.8004 | 0.8017 |
88
+ | 0.8317 | 4.8 | 167472 | 0.7993 | 0.8021 |
89
+ | 0.832 | 4.9 | 170961 | 0.8011 | 0.8013 |
90
+
91
+
92
+ ### Framework versions
93
+
94
+ - Transformers 4.30.2
95
+ - Pytorch 2.0.1+cu117
96
+ - Datasets 2.13.1
97
+ - Tokenizers 0.13.3
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8020157582306698,
4
+ "eval_loss": 0.7997363209724426,
5
+ "eval_runtime": 358.801,
6
+ "eval_samples": 14660,
7
+ "eval_samples_per_second": 40.858,
8
+ "eval_steps_per_second": 0.641,
9
+ "perplexity": 2.2249541773850336,
10
+ "train_loss": 0.08348739328776694,
11
+ "train_runtime": 12934.391,
12
+ "train_samples": 279078,
13
+ "train_samples_per_second": 107.882,
14
+ "train_steps_per_second": 13.485
15
+ }
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "aehrm/gepabert",
3
+ "architectures": [
4
+ "BertForMaskedLM"
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": 1024,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 4096,
13
+ "layer_norm_eps": 1e-12,
14
+ "max_position_embeddings": 512,
15
+ "model_type": "bert",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 24,
18
+ "pad_token_id": 0,
19
+ "position_embedding_type": "absolute",
20
+ "torch_dtype": "float32",
21
+ "transformers_version": "4.30.2",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 31102
25
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8020157582306698,
4
+ "eval_loss": 0.7997363209724426,
5
+ "eval_runtime": 358.801,
6
+ "eval_samples": 14660,
7
+ "eval_samples_per_second": 40.858,
8
+ "eval_steps_per_second": 0.641,
9
+ "perplexity": 2.2249541773850336
10
+ }
generation_config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "pad_token_id": 0,
4
+ "transformers_version": "4.30.2"
5
+ }
license.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Copyright 2022 Anton Ehrmanntraut
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2504f0d17ef31a692a1bc5326b7dab5255f10d2500dcd766bf3b44be4e54408f
3
+ size 1343215289
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,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "clean_up_tokenization_spaces": true,
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": false,
6
+ "mask_token": "[MASK]",
7
+ "max_len": 512,
8
+ "model_max_length": 512,
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "strip_accents": false,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "train_loss": 0.08348739328776694,
4
+ "train_runtime": 12934.391,
5
+ "train_samples": 279078,
6
+ "train_samples_per_second": 107.882,
7
+ "train_steps_per_second": 13.485
8
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff