igiag commited on
Commit
9b29cdc
·
verified ·
1 Parent(s): 3595ae2

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: FacebookAI/roberta-large
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.727709949016571
18
+
19
+ f1_macro: 0.5042735042735043
20
+
21
+ f1_micro: 0.7647058823529411
22
+
23
+ f1_weighted: 0.7149321266968326
24
+
25
+ precision_macro: 0.48412698412698413
26
+
27
+ precision_micro: 0.7647058823529411
28
+
29
+ precision_weighted: 0.6722689075630253
30
+
31
+ recall_macro: 0.5277777777777778
32
+
33
+ recall_micro: 0.7647058823529411
34
+
35
+ recall_weighted: 0.7647058823529411
36
+
37
+ accuracy: 0.7647058823529411
checkpoint-27/config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "FacebookAI/roberta-large",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "inne",
16
+ "1": "komunikat prasowy",
17
+ "2": "zaproszenie"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 4096,
21
+ "label2id": {
22
+ "inne": 0,
23
+ "komunikat prasowy": 1,
24
+ "zaproszenie": 2
25
+ },
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "roberta",
29
+ "num_attention_heads": 16,
30
+ "num_hidden_layers": 24,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.48.0",
36
+ "type_vocab_size": 1,
37
+ "use_cache": true,
38
+ "vocab_size": 50265
39
+ }
checkpoint-27/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f44fd94b271ec8a41ca178b9018e017b31c39b564d7aa952a91665de391112d5
3
+ size 1421499516
checkpoint-27/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b32f066dce6ede7278ab359a97cbd90bdc06be8966ea60db2e3f083476480c5
3
+ size 2843220461
checkpoint-27/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43c117f833006258dd07ef6470201c78c4cab683cbb92557d23fb52f550785ef
3
+ size 13990
checkpoint-27/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d794caad09a83675e886abbc4e495aef96f68012cb6bb1fdaa7553c616e46c3b
3
+ size 1064
checkpoint-27/trainer_state.json ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.727709949016571,
3
+ "best_model_checkpoint": "email-classifier-large/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": 21.054508209228516,
14
+ "learning_rate": 5.555555555555556e-06,
15
+ "loss": 1.2646,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.2222222222222222,
20
+ "grad_norm": 14.41618537902832,
21
+ "learning_rate": 1.1111111111111112e-05,
22
+ "loss": 1.2543,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.3333333333333333,
27
+ "grad_norm": 11.813241004943848,
28
+ "learning_rate": 1.6666666666666667e-05,
29
+ "loss": 1.1985,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 0.4444444444444444,
34
+ "grad_norm": 10.183070182800293,
35
+ "learning_rate": 2.2222222222222223e-05,
36
+ "loss": 1.0548,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 0.5555555555555556,
41
+ "grad_norm": 10.102678298950195,
42
+ "learning_rate": 2.777777777777778e-05,
43
+ "loss": 0.9208,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 0.6666666666666666,
48
+ "grad_norm": 9.924948692321777,
49
+ "learning_rate": 3.3333333333333335e-05,
50
+ "loss": 1.0067,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 0.7777777777777778,
55
+ "grad_norm": 15.725824356079102,
56
+ "learning_rate": 3.888888888888889e-05,
57
+ "loss": 0.7678,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 0.8888888888888888,
62
+ "grad_norm": 13.782758712768555,
63
+ "learning_rate": 4.4444444444444447e-05,
64
+ "loss": 0.7465,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 1.0,
69
+ "grad_norm": 70.53299713134766,
70
+ "learning_rate": 5e-05,
71
+ "loss": 1.3437,
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": 1.0482426881790161,
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": 9.661,
88
+ "eval_samples_per_second": 1.76,
89
+ "eval_steps_per_second": 0.207,
90
+ "step": 9
91
+ },
92
+ {
93
+ "epoch": 1.1111111111111112,
94
+ "grad_norm": 44.6027717590332,
95
+ "learning_rate": 4.938271604938271e-05,
96
+ "loss": 1.4167,
97
+ "step": 10
98
+ },
99
+ {
100
+ "epoch": 1.2222222222222223,
101
+ "grad_norm": 8.45134449005127,
102
+ "learning_rate": 4.876543209876544e-05,
103
+ "loss": 0.8386,
104
+ "step": 11
105
+ },
106
+ {
107
+ "epoch": 1.3333333333333333,
108
+ "grad_norm": 462.1361389160156,
109
+ "learning_rate": 4.814814814814815e-05,
110
+ "loss": 0.9442,
111
+ "step": 12
112
+ },
113
+ {
114
+ "epoch": 1.4444444444444444,
115
+ "grad_norm": 11.159658432006836,
116
+ "learning_rate": 4.7530864197530866e-05,
117
+ "loss": 0.5886,
118
+ "step": 13
119
+ },
120
+ {
121
+ "epoch": 1.5555555555555556,
122
+ "grad_norm": 8.21164608001709,
123
+ "learning_rate": 4.691358024691358e-05,
124
+ "loss": 0.7998,
125
+ "step": 14
126
+ },
127
+ {
128
+ "epoch": 1.6666666666666665,
129
+ "grad_norm": 11.218172073364258,
130
+ "learning_rate": 4.62962962962963e-05,
131
+ "loss": 0.8271,
132
+ "step": 15
133
+ },
134
+ {
135
+ "epoch": 1.7777777777777777,
136
+ "grad_norm": 8.036384582519531,
137
+ "learning_rate": 4.567901234567901e-05,
138
+ "loss": 0.4155,
139
+ "step": 16
140
+ },
141
+ {
142
+ "epoch": 1.8888888888888888,
143
+ "grad_norm": 11.879496574401855,
144
+ "learning_rate": 4.506172839506173e-05,
145
+ "loss": 1.0315,
146
+ "step": 17
147
+ },
148
+ {
149
+ "epoch": 2.0,
150
+ "grad_norm": 33.30108642578125,
151
+ "learning_rate": 4.4444444444444447e-05,
152
+ "loss": 0.6819,
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.7542034983634949,
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": 10.5136,
169
+ "eval_samples_per_second": 1.617,
170
+ "eval_steps_per_second": 0.19,
171
+ "step": 18
172
+ },
173
+ {
174
+ "epoch": 2.111111111111111,
175
+ "grad_norm": 70.35055541992188,
176
+ "learning_rate": 4.3827160493827164e-05,
177
+ "loss": 0.9715,
178
+ "step": 19
179
+ },
180
+ {
181
+ "epoch": 2.2222222222222223,
182
+ "grad_norm": 18.602529525756836,
183
+ "learning_rate": 4.3209876543209875e-05,
184
+ "loss": 1.0681,
185
+ "step": 20
186
+ },
187
+ {
188
+ "epoch": 2.3333333333333335,
189
+ "grad_norm": 11.670511245727539,
190
+ "learning_rate": 4.259259259259259e-05,
191
+ "loss": 0.9926,
192
+ "step": 21
193
+ },
194
+ {
195
+ "epoch": 2.4444444444444446,
196
+ "grad_norm": 11.727529525756836,
197
+ "learning_rate": 4.197530864197531e-05,
198
+ "loss": 0.4386,
199
+ "step": 22
200
+ },
201
+ {
202
+ "epoch": 2.5555555555555554,
203
+ "grad_norm": 24.286405563354492,
204
+ "learning_rate": 4.135802469135803e-05,
205
+ "loss": 0.8252,
206
+ "step": 23
207
+ },
208
+ {
209
+ "epoch": 2.6666666666666665,
210
+ "grad_norm": 10.522771835327148,
211
+ "learning_rate": 4.074074074074074e-05,
212
+ "loss": 0.6967,
213
+ "step": 24
214
+ },
215
+ {
216
+ "epoch": 2.7777777777777777,
217
+ "grad_norm": 10.512320518493652,
218
+ "learning_rate": 4.012345679012346e-05,
219
+ "loss": 0.6406,
220
+ "step": 25
221
+ },
222
+ {
223
+ "epoch": 2.888888888888889,
224
+ "grad_norm": 13.10132122039795,
225
+ "learning_rate": 3.950617283950617e-05,
226
+ "loss": 0.7791,
227
+ "step": 26
228
+ },
229
+ {
230
+ "epoch": 3.0,
231
+ "grad_norm": 32.59843826293945,
232
+ "learning_rate": 3.888888888888889e-05,
233
+ "loss": 0.5143,
234
+ "step": 27
235
+ },
236
+ {
237
+ "epoch": 3.0,
238
+ "eval_accuracy": 0.7647058823529411,
239
+ "eval_f1_macro": 0.5042735042735043,
240
+ "eval_f1_micro": 0.7647058823529411,
241
+ "eval_f1_weighted": 0.7149321266968326,
242
+ "eval_loss": 0.727709949016571,
243
+ "eval_precision_macro": 0.48412698412698413,
244
+ "eval_precision_micro": 0.7647058823529411,
245
+ "eval_precision_weighted": 0.6722689075630253,
246
+ "eval_recall_macro": 0.5277777777777778,
247
+ "eval_recall_micro": 0.7647058823529411,
248
+ "eval_recall_weighted": 0.7647058823529411,
249
+ "eval_runtime": 9.5294,
250
+ "eval_samples_per_second": 1.784,
251
+ "eval_steps_per_second": 0.21,
252
+ "step": 27
253
+ }
254
+ ],
255
+ "logging_steps": 1,
256
+ "max_steps": 90,
257
+ "num_input_tokens_seen": 0,
258
+ "num_train_epochs": 10,
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": false
277
+ },
278
+ "attributes": {}
279
+ }
280
+ },
281
+ "total_flos": 47528660118528.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:bc5b52057bd048972d829048f3b69bdb3f32d9a1300a61378eaa2a353421e758
3
+ size 5368
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "FacebookAI/roberta-large",
3
+ "_num_labels": 3,
4
+ "architectures": [
5
+ "RobertaForSequenceClassification"
6
+ ],
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "classifier_dropout": null,
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "id2label": {
15
+ "0": "inne",
16
+ "1": "komunikat prasowy",
17
+ "2": "zaproszenie"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 4096,
21
+ "label2id": {
22
+ "inne": 0,
23
+ "komunikat prasowy": 1,
24
+ "zaproszenie": 2
25
+ },
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "roberta",
29
+ "num_attention_heads": 16,
30
+ "num_hidden_layers": 24,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.48.0",
36
+ "type_vocab_size": 1,
37
+ "use_cache": true,
38
+ "vocab_size": 50265
39
+ }
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:f44fd94b271ec8a41ca178b9018e017b31c39b564d7aa952a91665de391112d5
3
+ size 1421499516
runs/May17_17-16-58_r-igiag-document-classification-11uvtc3e-2329a-nxhz1/events.out.tfevents.1747502219.r-igiag-document-classification-11uvtc3e-2329a-nxhz1.103.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:78efcc5910de5151fef09d5d7bb27a64c921716fa22670d1dcfe934ed73ce869
3
- size 16029
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:711b321940ead4fd21071991d574c79c7dfa09a49dbfdc3bed4182d3cd23db97
3
+ size 27101
runs/May17_17-16-58_r-igiag-document-classification-11uvtc3e-2329a-nxhz1/events.out.tfevents.1747503460.r-igiag-document-classification-11uvtc3e-2329a-nxhz1.103.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c599b5db36e1066ac481d2a481cffbe79a638c1432a116b984b27986ad650030
3
+ size 906
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": false,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "<mask>",
52
+ "model_max_length": 512,
53
+ "pad_token": "<pad>",
54
+ "sep_token": "</s>",
55
+ "tokenizer_class": "RobertaTokenizer",
56
+ "trim_offsets": true,
57
+ "unk_token": "<unk>"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc5b52057bd048972d829048f3b69bdb3f32d9a1300a61378eaa2a353421e758
3
+ size 5368
training_params.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_path": "email-classifier-large/autotrain-data",
3
+ "model": "FacebookAI/roberta-large",
4
+ "lr": 5e-05,
5
+ "epochs": 10,
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-large",
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.json ADDED
The diff for this file is too large to render. See raw diff