igiag commited on
Commit
7589a4c
·
verified ·
1 Parent(s): 60b4f59

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ library_name: transformers
4
+ tags:
5
+ - autotrain
6
+ - text-classification
7
+ base_model: google-bert/bert-base-uncased
8
+ widget:
9
+ - text: "I love AutoTrain"
10
+ ---
11
+
12
+ # Model Trained Using AutoTrain
13
+
14
+ - Problem type: Text Classification
15
+
16
+ ## Validation Metrics
17
+ loss: 0.7645955681800842
18
+
19
+ f1_macro: 0.27586206896551724
20
+
21
+ f1_micro: 0.7058823529411765
22
+
23
+ f1_weighted: 0.5841784989858012
24
+
25
+ precision_macro: 0.23529411764705885
26
+
27
+ precision_micro: 0.7058823529411765
28
+
29
+ precision_weighted: 0.49826989619377166
30
+
31
+ recall_macro: 0.3333333333333333
32
+
33
+ recall_micro: 0.7058823529411765
34
+
35
+ recall_weighted: 0.7058823529411765
36
+
37
+ accuracy: 0.7058823529411765
checkpoint-27/config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-uncased",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "inne",
15
+ "1": "komunikat prasowy",
16
+ "2": "zaproszenie"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "inne": 0,
22
+ "komunikat prasowy": 1,
23
+ "zaproszenie": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_position_embeddings": 512,
27
+ "model_type": "bert",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 0,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.48.0",
35
+ "type_vocab_size": 2,
36
+ "use_cache": true,
37
+ "vocab_size": 30522
38
+ }
checkpoint-27/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ee4292d019774fddcc52c3a802d32a1aa76798ad6c126b91f891c2944f2ea89
3
+ size 437961724
checkpoint-27/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:338e2aecf6d135d367488e1f3ff881dad89a100d8b983a1a471108d1bd34b176
3
+ size 876038906
checkpoint-27/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:993e0b09a5873cb3bb45ef2e52af603f4fd9416cbc15185b6c33b659c296306c
3
+ size 13990
checkpoint-27/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b7770298a17e6017d76ce8c062723991fd462ec0e649435f72764ded329a407
3
+ size 1064
checkpoint-27/trainer_state.json ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.7645955681800842,
3
+ "best_model_checkpoint": "email-classifier/checkpoint-27",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 27,
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.1111111111111111,
13
+ "grad_norm": 12.661477088928223,
14
+ "learning_rate": 1.6666666666666667e-05,
15
+ "loss": 1.0907,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.2222222222222222,
20
+ "grad_norm": 9.262643814086914,
21
+ "learning_rate": 3.3333333333333335e-05,
22
+ "loss": 1.1452,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.3333333333333333,
27
+ "grad_norm": 4.253861427307129,
28
+ "learning_rate": 5e-05,
29
+ "loss": 1.0398,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 0.4444444444444444,
34
+ "grad_norm": 5.083256721496582,
35
+ "learning_rate": 4.791666666666667e-05,
36
+ "loss": 1.0236,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 0.5555555555555556,
41
+ "grad_norm": 6.380894184112549,
42
+ "learning_rate": 4.5833333333333334e-05,
43
+ "loss": 0.8063,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 0.6666666666666666,
48
+ "grad_norm": 7.080038070678711,
49
+ "learning_rate": 4.375e-05,
50
+ "loss": 0.8933,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 0.7777777777777778,
55
+ "grad_norm": 5.052453994750977,
56
+ "learning_rate": 4.166666666666667e-05,
57
+ "loss": 0.5092,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 0.8888888888888888,
62
+ "grad_norm": 4.828819751739502,
63
+ "learning_rate": 3.958333333333333e-05,
64
+ "loss": 0.9788,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 1.0,
69
+ "grad_norm": 5.715775012969971,
70
+ "learning_rate": 3.7500000000000003e-05,
71
+ "loss": 0.7505,
72
+ "step": 9
73
+ },
74
+ {
75
+ "epoch": 1.0,
76
+ "eval_accuracy": 0.7058823529411765,
77
+ "eval_f1_macro": 0.27586206896551724,
78
+ "eval_f1_micro": 0.7058823529411765,
79
+ "eval_f1_weighted": 0.5841784989858012,
80
+ "eval_loss": 0.8175652027130127,
81
+ "eval_precision_macro": 0.23529411764705885,
82
+ "eval_precision_micro": 0.7058823529411765,
83
+ "eval_precision_weighted": 0.49826989619377166,
84
+ "eval_recall_macro": 0.3333333333333333,
85
+ "eval_recall_micro": 0.7058823529411765,
86
+ "eval_recall_weighted": 0.7058823529411765,
87
+ "eval_runtime": 4.292,
88
+ "eval_samples_per_second": 3.961,
89
+ "eval_steps_per_second": 0.466,
90
+ "step": 9
91
+ },
92
+ {
93
+ "epoch": 1.1111111111111112,
94
+ "grad_norm": 5.281602382659912,
95
+ "learning_rate": 3.541666666666667e-05,
96
+ "loss": 1.0502,
97
+ "step": 10
98
+ },
99
+ {
100
+ "epoch": 1.2222222222222223,
101
+ "grad_norm": 4.289942741394043,
102
+ "learning_rate": 3.3333333333333335e-05,
103
+ "loss": 0.7533,
104
+ "step": 11
105
+ },
106
+ {
107
+ "epoch": 1.3333333333333333,
108
+ "grad_norm": 4.913335800170898,
109
+ "learning_rate": 3.125e-05,
110
+ "loss": 1.0854,
111
+ "step": 12
112
+ },
113
+ {
114
+ "epoch": 1.4444444444444444,
115
+ "grad_norm": 4.09973669052124,
116
+ "learning_rate": 2.916666666666667e-05,
117
+ "loss": 0.4934,
118
+ "step": 13
119
+ },
120
+ {
121
+ "epoch": 1.5555555555555556,
122
+ "grad_norm": 6.382025718688965,
123
+ "learning_rate": 2.7083333333333332e-05,
124
+ "loss": 0.8873,
125
+ "step": 14
126
+ },
127
+ {
128
+ "epoch": 1.6666666666666665,
129
+ "grad_norm": 2.496077299118042,
130
+ "learning_rate": 2.5e-05,
131
+ "loss": 0.7701,
132
+ "step": 15
133
+ },
134
+ {
135
+ "epoch": 1.7777777777777777,
136
+ "grad_norm": 3.6502137184143066,
137
+ "learning_rate": 2.2916666666666667e-05,
138
+ "loss": 0.653,
139
+ "step": 16
140
+ },
141
+ {
142
+ "epoch": 1.8888888888888888,
143
+ "grad_norm": 3.0348548889160156,
144
+ "learning_rate": 2.0833333333333336e-05,
145
+ "loss": 0.8641,
146
+ "step": 17
147
+ },
148
+ {
149
+ "epoch": 2.0,
150
+ "grad_norm": 5.570982456207275,
151
+ "learning_rate": 1.8750000000000002e-05,
152
+ "loss": 0.835,
153
+ "step": 18
154
+ },
155
+ {
156
+ "epoch": 2.0,
157
+ "eval_accuracy": 0.7058823529411765,
158
+ "eval_f1_macro": 0.27586206896551724,
159
+ "eval_f1_micro": 0.7058823529411765,
160
+ "eval_f1_weighted": 0.5841784989858012,
161
+ "eval_loss": 0.7890189290046692,
162
+ "eval_precision_macro": 0.23529411764705885,
163
+ "eval_precision_micro": 0.7058823529411765,
164
+ "eval_precision_weighted": 0.49826989619377166,
165
+ "eval_recall_macro": 0.3333333333333333,
166
+ "eval_recall_micro": 0.7058823529411765,
167
+ "eval_recall_weighted": 0.7058823529411765,
168
+ "eval_runtime": 4.8269,
169
+ "eval_samples_per_second": 3.522,
170
+ "eval_steps_per_second": 0.414,
171
+ "step": 18
172
+ },
173
+ {
174
+ "epoch": 2.111111111111111,
175
+ "grad_norm": 2.422776699066162,
176
+ "learning_rate": 1.6666666666666667e-05,
177
+ "loss": 0.875,
178
+ "step": 19
179
+ },
180
+ {
181
+ "epoch": 2.2222222222222223,
182
+ "grad_norm": 6.083028316497803,
183
+ "learning_rate": 1.4583333333333335e-05,
184
+ "loss": 0.5999,
185
+ "step": 20
186
+ },
187
+ {
188
+ "epoch": 2.3333333333333335,
189
+ "grad_norm": 4.942434310913086,
190
+ "learning_rate": 1.25e-05,
191
+ "loss": 0.9778,
192
+ "step": 21
193
+ },
194
+ {
195
+ "epoch": 2.4444444444444446,
196
+ "grad_norm": 5.678409099578857,
197
+ "learning_rate": 1.0416666666666668e-05,
198
+ "loss": 0.5364,
199
+ "step": 22
200
+ },
201
+ {
202
+ "epoch": 2.5555555555555554,
203
+ "grad_norm": 5.16926383972168,
204
+ "learning_rate": 8.333333333333334e-06,
205
+ "loss": 0.7531,
206
+ "step": 23
207
+ },
208
+ {
209
+ "epoch": 2.6666666666666665,
210
+ "grad_norm": 4.587949275970459,
211
+ "learning_rate": 6.25e-06,
212
+ "loss": 0.7907,
213
+ "step": 24
214
+ },
215
+ {
216
+ "epoch": 2.7777777777777777,
217
+ "grad_norm": 5.132978916168213,
218
+ "learning_rate": 4.166666666666667e-06,
219
+ "loss": 0.7656,
220
+ "step": 25
221
+ },
222
+ {
223
+ "epoch": 2.888888888888889,
224
+ "grad_norm": 2.9670441150665283,
225
+ "learning_rate": 2.0833333333333334e-06,
226
+ "loss": 0.8906,
227
+ "step": 26
228
+ },
229
+ {
230
+ "epoch": 3.0,
231
+ "grad_norm": 10.066261291503906,
232
+ "learning_rate": 0.0,
233
+ "loss": 0.3755,
234
+ "step": 27
235
+ },
236
+ {
237
+ "epoch": 3.0,
238
+ "eval_accuracy": 0.7058823529411765,
239
+ "eval_f1_macro": 0.27586206896551724,
240
+ "eval_f1_micro": 0.7058823529411765,
241
+ "eval_f1_weighted": 0.5841784989858012,
242
+ "eval_loss": 0.7645955681800842,
243
+ "eval_precision_macro": 0.23529411764705885,
244
+ "eval_precision_micro": 0.7058823529411765,
245
+ "eval_precision_weighted": 0.49826989619377166,
246
+ "eval_recall_macro": 0.3333333333333333,
247
+ "eval_recall_micro": 0.7058823529411765,
248
+ "eval_recall_weighted": 0.7058823529411765,
249
+ "eval_runtime": 4.2687,
250
+ "eval_samples_per_second": 3.982,
251
+ "eval_steps_per_second": 0.469,
252
+ "step": 27
253
+ }
254
+ ],
255
+ "logging_steps": 1,
256
+ "max_steps": 27,
257
+ "num_input_tokens_seen": 0,
258
+ "num_train_epochs": 3,
259
+ "save_steps": 500,
260
+ "stateful_callbacks": {
261
+ "EarlyStoppingCallback": {
262
+ "args": {
263
+ "early_stopping_patience": 5,
264
+ "early_stopping_threshold": 0.01
265
+ },
266
+ "attributes": {
267
+ "early_stopping_patience_counter": 0
268
+ }
269
+ },
270
+ "TrainerControl": {
271
+ "args": {
272
+ "should_epoch_stop": false,
273
+ "should_evaluate": false,
274
+ "should_log": false,
275
+ "should_save": true,
276
+ "should_training_stop": true
277
+ },
278
+ "attributes": {}
279
+ }
280
+ },
281
+ "total_flos": 13418784304128.0,
282
+ "train_batch_size": 8,
283
+ "trial_name": null,
284
+ "trial_params": null
285
+ }
checkpoint-27/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:386d50d48b9e9ac48b9d1ab7652d3a4a16710b21585eb4b6944eb9de6cd370b4
3
+ size 5368
config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google-bert/bert-base-uncased",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "BertForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "classifier_dropout": null,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "id2label": {
14
+ "0": "inne",
15
+ "1": "komunikat prasowy",
16
+ "2": "zaproszenie"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "inne": 0,
22
+ "komunikat prasowy": 1,
23
+ "zaproszenie": 2
24
+ },
25
+ "layer_norm_eps": 1e-12,
26
+ "max_position_embeddings": 512,
27
+ "model_type": "bert",
28
+ "num_attention_heads": 12,
29
+ "num_hidden_layers": 12,
30
+ "pad_token_id": 0,
31
+ "position_embedding_type": "absolute",
32
+ "problem_type": "single_label_classification",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.48.0",
35
+ "type_vocab_size": 2,
36
+ "use_cache": true,
37
+ "vocab_size": 30522
38
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ee4292d019774fddcc52c3a802d32a1aa76798ad6c126b91f891c2944f2ea89
3
+ size 437961724
runs/May17_16-37-09_r-igiag-document-classification-sknn8sdt-9892e-fqjem/events.out.tfevents.1747499832.r-igiag-document-classification-sknn8sdt-9892e-fqjem.106.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ce9dd053e4355a0fb20947ad1c3405906f60b028a0cf3fe31b2e254930e3156d
3
- size 5277
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c46db794f3cca7fb8f0eba77a45f11169b82cbcf948f701418d6d8ccb21d210
3
+ size 13668
runs/May17_16-37-09_r-igiag-document-classification-sknn8sdt-9892e-fqjem/events.out.tfevents.1747500048.r-igiag-document-classification-sknn8sdt-9892e-fqjem.106.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5a8e21da2ab0247b0a7c2efed2c366d64bb695726275fe82d4fc7f8545a0c09
3
+ size 906
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
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": false,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "BertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:386d50d48b9e9ac48b9d1ab7652d3a4a16710b21585eb4b6944eb9de6cd370b4
3
+ size 5368
training_params.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "email-classifier/autotrain-data",
3
+ "model": "google-bert/bert-base-uncased",
4
+ "lr": 5e-05,
5
+ "epochs": 3,
6
+ "max_seq_length": 128,
7
+ "batch_size": 8,
8
+ "warmup_ratio": 0.1,
9
+ "gradient_accumulation": 1,
10
+ "optimizer": "adamw_torch",
11
+ "scheduler": "linear",
12
+ "weight_decay": 0.0,
13
+ "max_grad_norm": 1.0,
14
+ "seed": 42,
15
+ "train_split": "train",
16
+ "valid_split": "validation",
17
+ "text_column": "autotrain_text",
18
+ "target_column": "autotrain_label",
19
+ "logging_steps": -1,
20
+ "project_name": "email-classifier",
21
+ "auto_find_batch_size": false,
22
+ "mixed_precision": "fp16",
23
+ "save_total_limit": 1,
24
+ "push_to_hub": true,
25
+ "eval_strategy": "epoch",
26
+ "username": "igiag",
27
+ "log": "tensorboard",
28
+ "early_stopping_patience": 5,
29
+ "early_stopping_threshold": 0.01
30
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff