jenslemmens commited on
Commit
c388d6d
1 Parent(s): 614bb1c

Model save

Browse files
README.md ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: DTAI-KULeuven/robbert-2023-dutch-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - precision
8
+ - recall
9
+ - accuracy
10
+ model-index:
11
+ - name: robbert-2023-dutch-base-gender
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # robbert-2023-dutch-base-gender
19
+
20
+ This model is a fine-tuned version of [DTAI-KULeuven/robbert-2023-dutch-base](https://huggingface.co/DTAI-KULeuven/robbert-2023-dutch-base) on an unknown dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.6600
23
+ - Precision: 0.6285
24
+ - Recall: 0.6293
25
+ - Fscore: 0.6282
26
+ - Accuracy: 0.6290
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 1e-05
46
+ - train_batch_size: 64
47
+ - eval_batch_size: 64
48
+ - seed: 42
49
+ - gradient_accumulation_steps: 2
50
+ - total_train_batch_size: 128
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 1.0
54
+ - mixed_precision_training: Native AMP
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | Fscore | Accuracy |
59
+ |:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|
60
+ | 0.616 | 0.29 | 2000 | 0.6498 | 0.6295 | 0.6299 | 0.6266 | 0.6267 |
61
+ | 0.6033 | 0.59 | 4000 | 0.6584 | 0.6278 | 0.6274 | 0.6228 | 0.6228 |
62
+ | 0.5896 | 0.88 | 6000 | 0.6600 | 0.6285 | 0.6293 | 0.6282 | 0.6290 |
63
+
64
+
65
+ ### Framework versions
66
+
67
+ - Transformers 4.36.2
68
+ - Pytorch 2.1.2+cu121
69
+ - Datasets 2.14.5
70
+ - Tokenizers 0.15.0
all_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_fscore": 0.6321511851241228,
4
+ "eval_loss": 0.6710947155952454,
5
+ "eval_precision": 0.6327920074497231,
6
+ "eval_recall": 0.6336155271716182,
7
+ "eval_runtime": 2673.8432,
8
+ "eval_samples": 834159,
9
+ "eval_samples_per_second": 311.97,
10
+ "eval_steps_per_second": 19.498,
11
+ "train_loss": 0.5972718149742211,
12
+ "train_runtime": 22981.0662,
13
+ "train_samples": 868047,
14
+ "train_samples_per_second": 37.772,
15
+ "train_steps_per_second": 0.59
16
+ }
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "DTAI-KULeuven/robbert-2023-dutch-base",
3
+ "additional_special_tokens_ids": [],
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "cls_token_id": 0,
11
+ "eos_token_id": 3,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "id2label": {
16
+ "0": "F",
17
+ "1": "M"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "F": 0,
23
+ "M": 1
24
+ },
25
+ "layer_norm_eps": 1e-05,
26
+ "mask_token_id": 4,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "roberta",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "sep_token_id": 3,
35
+ "tokenizer_class": "RobertaTokenizerFast",
36
+ "torch_dtype": "float32",
37
+ "transformers_version": "4.36.2",
38
+ "type_vocab_size": 1,
39
+ "unk_token_id": 2,
40
+ "use_cache": true,
41
+ "vocab_size": 50000
42
+ }
eval_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_fscore": 0.6321511851241228,
4
+ "eval_loss": 0.6710947155952454,
5
+ "eval_precision": 0.6327920074497231,
6
+ "eval_recall": 0.6336155271716182,
7
+ "eval_runtime": 2673.8432,
8
+ "eval_samples": 834159,
9
+ "eval_samples_per_second": 311.97,
10
+ "eval_steps_per_second": 19.498
11
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53837539a16ce3b468e2c4526d10a05d18829428816227f773df46255f4ec442
3
+ size 497798744
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
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
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<unk>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "</s>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": true,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 512,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
57
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.5972718149742211,
4
+ "train_runtime": 22981.0662,
5
+ "train_samples": 868047,
6
+ "train_samples_per_second": 37.772,
7
+ "train_steps_per_second": 0.59
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,247 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9999815678395665,
5
+ "eval_steps": 2500,
6
+ "global_step": 13563,
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.04,
13
+ "learning_rate": 9.634299196342994e-06,
14
+ "loss": 0.6609,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 0.07,
19
+ "learning_rate": 9.267861092678611e-06,
20
+ "loss": 0.6467,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 0.11,
25
+ "learning_rate": 8.899211088992112e-06,
26
+ "loss": 0.6414,
27
+ "step": 1500
28
+ },
29
+ {
30
+ "epoch": 0.15,
31
+ "learning_rate": 8.530561085305612e-06,
32
+ "loss": 0.6322,
33
+ "step": 2000
34
+ },
35
+ {
36
+ "epoch": 0.18,
37
+ "learning_rate": 8.161911081619111e-06,
38
+ "loss": 0.6266,
39
+ "step": 2500
40
+ },
41
+ {
42
+ "epoch": 0.18,
43
+ "eval_fscore": 0.6023351654273126,
44
+ "eval_loss": 0.6601094007492065,
45
+ "eval_precision": 0.6348626173773073,
46
+ "eval_recall": 0.6216278871239599,
47
+ "eval_runtime": 2683.597,
48
+ "eval_samples_per_second": 310.836,
49
+ "eval_steps_per_second": 19.427,
50
+ "step": 2500
51
+ },
52
+ {
53
+ "epoch": 0.22,
54
+ "learning_rate": 7.793261077932612e-06,
55
+ "loss": 0.6193,
56
+ "step": 3000
57
+ },
58
+ {
59
+ "epoch": 0.26,
60
+ "learning_rate": 7.424611074246111e-06,
61
+ "loss": 0.6134,
62
+ "step": 3500
63
+ },
64
+ {
65
+ "epoch": 0.29,
66
+ "learning_rate": 7.055961070559611e-06,
67
+ "loss": 0.6069,
68
+ "step": 4000
69
+ },
70
+ {
71
+ "epoch": 0.33,
72
+ "learning_rate": 6.687311066873111e-06,
73
+ "loss": 0.6043,
74
+ "step": 4500
75
+ },
76
+ {
77
+ "epoch": 0.37,
78
+ "learning_rate": 6.318661063186611e-06,
79
+ "loss": 0.6008,
80
+ "step": 5000
81
+ },
82
+ {
83
+ "epoch": 0.37,
84
+ "eval_fscore": 0.6295517813114804,
85
+ "eval_loss": 0.6481114625930786,
86
+ "eval_precision": 0.6323627402469738,
87
+ "eval_recall": 0.6327219192535836,
88
+ "eval_runtime": 2681.3189,
89
+ "eval_samples_per_second": 311.1,
90
+ "eval_steps_per_second": 19.444,
91
+ "step": 5000
92
+ },
93
+ {
94
+ "epoch": 0.41,
95
+ "learning_rate": 5.950011059500111e-06,
96
+ "loss": 0.5989,
97
+ "step": 5500
98
+ },
99
+ {
100
+ "epoch": 0.44,
101
+ "learning_rate": 5.581361055813611e-06,
102
+ "loss": 0.6005,
103
+ "step": 6000
104
+ },
105
+ {
106
+ "epoch": 0.48,
107
+ "learning_rate": 5.212711052127111e-06,
108
+ "loss": 0.5894,
109
+ "step": 6500
110
+ },
111
+ {
112
+ "epoch": 0.52,
113
+ "learning_rate": 4.8440610484406105e-06,
114
+ "loss": 0.5871,
115
+ "step": 7000
116
+ },
117
+ {
118
+ "epoch": 0.55,
119
+ "learning_rate": 4.475411044754111e-06,
120
+ "loss": 0.5925,
121
+ "step": 7500
122
+ },
123
+ {
124
+ "epoch": 0.55,
125
+ "eval_fscore": 0.6292509682845455,
126
+ "eval_loss": 0.6569201946258545,
127
+ "eval_precision": 0.6303328699646444,
128
+ "eval_recall": 0.6311007791866495,
129
+ "eval_runtime": 2678.5974,
130
+ "eval_samples_per_second": 311.416,
131
+ "eval_steps_per_second": 19.464,
132
+ "step": 7500
133
+ },
134
+ {
135
+ "epoch": 0.59,
136
+ "learning_rate": 4.1074983410749835e-06,
137
+ "loss": 0.5859,
138
+ "step": 8000
139
+ },
140
+ {
141
+ "epoch": 0.63,
142
+ "learning_rate": 3.7388483373884836e-06,
143
+ "loss": 0.5817,
144
+ "step": 8500
145
+ },
146
+ {
147
+ "epoch": 0.66,
148
+ "learning_rate": 3.370935633709357e-06,
149
+ "loss": 0.5819,
150
+ "step": 9000
151
+ },
152
+ {
153
+ "epoch": 0.7,
154
+ "learning_rate": 3.0022856300228566e-06,
155
+ "loss": 0.5812,
156
+ "step": 9500
157
+ },
158
+ {
159
+ "epoch": 0.74,
160
+ "learning_rate": 2.6336356263363567e-06,
161
+ "loss": 0.5824,
162
+ "step": 10000
163
+ },
164
+ {
165
+ "epoch": 0.74,
166
+ "eval_fscore": 0.6275101578247589,
167
+ "eval_loss": 0.6671798825263977,
168
+ "eval_precision": 0.6346007218237036,
169
+ "eval_recall": 0.6333714931104397,
170
+ "eval_runtime": 2680.7422,
171
+ "eval_samples_per_second": 311.167,
172
+ "eval_steps_per_second": 19.448,
173
+ "step": 10000
174
+ },
175
+ {
176
+ "epoch": 0.77,
177
+ "learning_rate": 2.2649856226498564e-06,
178
+ "loss": 0.5762,
179
+ "step": 10500
180
+ },
181
+ {
182
+ "epoch": 0.81,
183
+ "learning_rate": 1.8963356189633564e-06,
184
+ "loss": 0.5709,
185
+ "step": 11000
186
+ },
187
+ {
188
+ "epoch": 0.85,
189
+ "learning_rate": 1.5276856152768563e-06,
190
+ "loss": 0.5717,
191
+ "step": 11500
192
+ },
193
+ {
194
+ "epoch": 0.88,
195
+ "learning_rate": 1.159035611590356e-06,
196
+ "loss": 0.5687,
197
+ "step": 12000
198
+ },
199
+ {
200
+ "epoch": 0.92,
201
+ "learning_rate": 7.903856079038562e-07,
202
+ "loss": 0.5661,
203
+ "step": 12500
204
+ },
205
+ {
206
+ "epoch": 0.92,
207
+ "eval_fscore": 0.6327639400151716,
208
+ "eval_loss": 0.672634482383728,
209
+ "eval_precision": 0.6340222342544792,
210
+ "eval_recall": 0.6347830614243537,
211
+ "eval_runtime": 2680.9501,
212
+ "eval_samples_per_second": 311.143,
213
+ "eval_steps_per_second": 19.446,
214
+ "step": 12500
215
+ },
216
+ {
217
+ "epoch": 0.96,
218
+ "learning_rate": 4.2247290422472906e-07,
219
+ "loss": 0.5723,
220
+ "step": 13000
221
+ },
222
+ {
223
+ "epoch": 1.0,
224
+ "learning_rate": 5.3822900538229014e-08,
225
+ "loss": 0.5705,
226
+ "step": 13500
227
+ },
228
+ {
229
+ "epoch": 1.0,
230
+ "step": 13563,
231
+ "total_flos": 2.0223656129308262e+17,
232
+ "train_loss": 0.5972718149742211,
233
+ "train_runtime": 22981.0662,
234
+ "train_samples_per_second": 37.772,
235
+ "train_steps_per_second": 0.59
236
+ }
237
+ ],
238
+ "logging_steps": 500,
239
+ "max_steps": 13563,
240
+ "num_input_tokens_seen": 0,
241
+ "num_train_epochs": 1,
242
+ "save_steps": 500,
243
+ "total_flos": 2.0223656129308262e+17,
244
+ "train_batch_size": 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:4fa67f1b6275897851da077b203af9143e2d9b7f4344e12a50f455a88ba55a82
3
+ size 4856
vocab.json ADDED
The diff for this file is too large to render. See raw diff