jpherrerap commited on
Commit
116a310
·
verified ·
1 Parent(s): 8d4db4a

End of training

Browse files
README.md CHANGED
@@ -1,13 +1,27 @@
1
  ---
2
  library_name: transformers
 
 
3
  base_model: dccuchile/bert-base-spanish-wwm-cased
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - f1
8
  model-index:
9
  - name: fake-news-bert-base-spanish-wwm-cased
10
- results: []
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -15,7 +29,7 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # fake-news-bert-base-spanish-wwm-cased
17
 
18
- This model is a fine-tuned version of [dccuchile/bert-base-spanish-wwm-cased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-cased) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
  - Loss: 0.3234
21
  - F1: 0.8378
 
1
  ---
2
  library_name: transformers
3
+ language:
4
+ - es
5
  base_model: dccuchile/bert-base-spanish-wwm-cased
6
  tags:
7
  - generated_from_trainer
8
+ datasets:
9
+ - jpherrerap/es_fakenews_dataset
10
  metrics:
11
  - f1
12
  model-index:
13
  - name: fake-news-bert-base-spanish-wwm-cased
14
+ results:
15
+ - task:
16
+ name: Text Classification
17
+ type: text-classification
18
+ dataset:
19
+ name: jpherrerap/es_fakenews_dataset
20
+ type: jpherrerap/es_fakenews_dataset
21
+ metrics:
22
+ - name: F1
23
+ type: f1
24
+ value: 0.8378378378378378
25
  ---
26
 
27
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
29
 
30
  # fake-news-bert-base-spanish-wwm-cased
31
 
32
+ This model is a fine-tuned version of [dccuchile/bert-base-spanish-wwm-cased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-cased) on the jpherrerap/es_fakenews_dataset dataset.
33
  It achieves the following results on the evaluation set:
34
  - Loss: 0.3234
35
  - F1: 0.8378
all_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
  "epoch": 2.0,
3
- "total_flos": 52622211072000.0,
4
- "train_loss": 69.59579685756138,
5
- "train_runtime": 22.694,
6
- "train_samples": 100,
7
- "train_samples_per_second": 8.813,
8
- "train_steps_per_second": 0.617
9
  }
 
1
  {
2
  "epoch": 2.0,
3
+ "total_flos": 589368764006400.0,
4
+ "train_loss": 0.39655887058803013,
5
+ "train_runtime": 130.5105,
6
+ "train_samples": 1120,
7
+ "train_samples_per_second": 17.163,
8
+ "train_steps_per_second": 1.073
9
  }
predict_results_fake-news.txt CHANGED
@@ -1,241 +1,241 @@
1
  index prediction
2
  0 1
3
- 1 1
4
  2 1
5
  3 1
6
  4 1
7
  5 1
8
  6 1
9
  7 1
10
- 8 1
11
- 9 1
12
- 10 1
13
- 11 1
14
- 12 1
15
- 13 1
16
  14 1
17
- 15 1
18
- 16 1
19
- 17 1
20
  18 1
21
- 19 1
22
- 20 1
23
  21 1
24
  22 1
25
- 23 1
26
  24 1
27
  25 1
28
  26 1
29
  27 1
30
- 28 1
31
  29 1
32
- 30 1
33
- 31 1
34
  32 1
35
  33 1
36
  34 1
37
  35 1
38
  36 1
39
  37 1
40
- 38 1
41
- 39 1
42
- 40 1
43
  41 1
44
  42 1
45
  43 1
46
- 44 1
47
- 45 1
48
  46 1
49
- 47 1
50
- 48 1
51
- 49 1
52
- 50 1
53
- 51 1
54
- 52 1
55
  53 1
56
  54 1
57
- 55 1
58
- 56 1
59
  57 1
60
  58 1
61
  59 1
62
  60 1
63
  61 1
64
- 62 1
65
- 63 1
66
  64 1
67
  65 1
68
- 66 1
69
- 67 1
70
- 68 1
71
  69 1
72
- 70 1
73
- 71 1
74
  72 1
75
- 73 1
76
  74 1
77
- 75 1
78
- 76 1
79
- 77 1
80
- 78 1
81
  79 1
82
  80 1
83
- 81 1
84
  82 1
85
  83 1
86
  84 1
87
  85 1
88
- 86 1
89
  87 1
90
- 88 1
91
  89 1
92
- 90 1
93
  91 1
94
  92 1
95
  93 1
96
- 94 1
97
- 95 1
98
  96 1
99
- 97 1
100
  98 1
101
  99 1
102
  100 1
103
- 101 1
104
- 102 1
105
- 103 1
106
  104 1
107
- 105 1
108
- 106 1
109
  107 1
110
  108 1
111
  109 1
112
- 110 1
113
- 111 1
114
  112 1
115
- 113 1
116
  114 1
117
  115 1
118
- 116 1
119
- 117 1
120
- 118 1
121
- 119 1
122
- 120 1
123
- 121 1
124
- 122 1
125
  123 1
126
  124 1
127
  125 1
128
- 126 1
129
- 127 1
130
  128 1
131
- 129 1
132
- 130 1
133
  131 1
134
- 132 1
135
- 133 1
136
- 134 1
137
  135 1
138
- 136 1
139
  137 1
140
  138 1
141
- 139 1
142
- 140 1
143
- 141 1
144
- 142 1
145
  143 1
146
  144 1
147
- 145 1
148
- 146 1
149
  147 1
150
  148 1
151
- 149 1
152
- 150 1
153
  151 1
154
- 152 1
155
  153 1
156
- 154 1
157
- 155 1
158
  156 1
159
  157 1
160
  158 1
161
  159 1
162
  160 1
163
- 161 1
164
- 162 1
165
  163 1
166
- 164 1
167
- 165 1
168
- 166 1
169
  167 1
170
- 168 1
171
  169 1
172
  170 1
173
  171 1
174
  172 1
175
  173 1
176
- 174 1
177
- 175 1
178
- 176 1
179
  177 1
180
- 178 1
181
  179 1
182
- 180 1
183
  181 1
184
  182 1
185
- 183 1
186
  184 1
187
  185 1
188
- 186 1
189
- 187 1
190
  188 1
191
- 189 1
192
- 190 1
193
- 191 1
194
- 192 1
195
  193 1
196
- 194 1
197
  195 1
198
- 196 1
199
  197 1
200
- 198 1
201
  199 1
202
- 200 1
203
  201 1
204
  202 1
205
  203 1
206
  204 1
207
  205 1
208
- 206 1
209
- 207 1
210
- 208 1
211
- 209 1
212
  210 1
213
- 211 1
214
- 212 1
215
- 213 1
216
- 214 1
217
  215 1
218
- 216 1
219
- 217 1
220
  218 1
221
  219 1
222
  220 1
223
- 221 1
224
  222 1
225
- 223 1
226
- 224 1
227
- 225 1
228
  226 1
229
  227 1
230
- 228 1
231
  229 1
232
- 230 1
233
- 231 1
234
  232 1
235
- 233 1
236
  234 1
237
  235 1
238
  236 1
239
- 237 1
240
- 238 1
241
  239 1
 
1
  index prediction
2
  0 1
3
+ 1 0
4
  2 1
5
  3 1
6
  4 1
7
  5 1
8
  6 1
9
  7 1
10
+ 8 0
11
+ 9 0
12
+ 10 0
13
+ 11 0
14
+ 12 0
15
+ 13 0
16
  14 1
17
+ 15 0
18
+ 16 0
19
+ 17 0
20
  18 1
21
+ 19 0
22
+ 20 0
23
  21 1
24
  22 1
25
+ 23 0
26
  24 1
27
  25 1
28
  26 1
29
  27 1
30
+ 28 0
31
  29 1
32
+ 30 0
33
+ 31 0
34
  32 1
35
  33 1
36
  34 1
37
  35 1
38
  36 1
39
  37 1
40
+ 38 0
41
+ 39 0
42
+ 40 0
43
  41 1
44
  42 1
45
  43 1
46
+ 44 0
47
+ 45 0
48
  46 1
49
+ 47 0
50
+ 48 0
51
+ 49 0
52
+ 50 0
53
+ 51 0
54
+ 52 0
55
  53 1
56
  54 1
57
+ 55 0
58
+ 56 0
59
  57 1
60
  58 1
61
  59 1
62
  60 1
63
  61 1
64
+ 62 0
65
+ 63 0
66
  64 1
67
  65 1
68
+ 66 0
69
+ 67 0
70
+ 68 0
71
  69 1
72
+ 70 0
73
+ 71 0
74
  72 1
75
+ 73 0
76
  74 1
77
+ 75 0
78
+ 76 0
79
+ 77 0
80
+ 78 0
81
  79 1
82
  80 1
83
+ 81 0
84
  82 1
85
  83 1
86
  84 1
87
  85 1
88
+ 86 0
89
  87 1
90
+ 88 0
91
  89 1
92
+ 90 0
93
  91 1
94
  92 1
95
  93 1
96
+ 94 0
97
+ 95 0
98
  96 1
99
+ 97 0
100
  98 1
101
  99 1
102
  100 1
103
+ 101 0
104
+ 102 0
105
+ 103 0
106
  104 1
107
+ 105 0
108
+ 106 0
109
  107 1
110
  108 1
111
  109 1
112
+ 110 0
113
+ 111 0
114
  112 1
115
+ 113 0
116
  114 1
117
  115 1
118
+ 116 0
119
+ 117 0
120
+ 118 0
121
+ 119 0
122
+ 120 0
123
+ 121 0
124
+ 122 0
125
  123 1
126
  124 1
127
  125 1
128
+ 126 0
129
+ 127 0
130
  128 1
131
+ 129 0
132
+ 130 0
133
  131 1
134
+ 132 0
135
+ 133 0
136
+ 134 0
137
  135 1
138
+ 136 0
139
  137 1
140
  138 1
141
+ 139 0
142
+ 140 0
143
+ 141 0
144
+ 142 0
145
  143 1
146
  144 1
147
+ 145 0
148
+ 146 0
149
  147 1
150
  148 1
151
+ 149 0
152
+ 150 0
153
  151 1
154
+ 152 0
155
  153 1
156
+ 154 0
157
+ 155 0
158
  156 1
159
  157 1
160
  158 1
161
  159 1
162
  160 1
163
+ 161 0
164
+ 162 0
165
  163 1
166
+ 164 0
167
+ 165 0
168
+ 166 0
169
  167 1
170
+ 168 0
171
  169 1
172
  170 1
173
  171 1
174
  172 1
175
  173 1
176
+ 174 0
177
+ 175 0
178
+ 176 0
179
  177 1
180
+ 178 0
181
  179 1
182
+ 180 0
183
  181 1
184
  182 1
185
+ 183 0
186
  184 1
187
  185 1
188
+ 186 0
189
+ 187 0
190
  188 1
191
+ 189 0
192
+ 190 0
193
+ 191 0
194
+ 192 0
195
  193 1
196
+ 194 0
197
  195 1
198
+ 196 0
199
  197 1
200
+ 198 0
201
  199 1
202
+ 200 0
203
  201 1
204
  202 1
205
  203 1
206
  204 1
207
  205 1
208
+ 206 0
209
+ 207 0
210
+ 208 0
211
+ 209 0
212
  210 1
213
+ 211 0
214
+ 212 0
215
+ 213 0
216
+ 214 0
217
  215 1
218
+ 216 0
219
+ 217 0
220
  218 1
221
  219 1
222
  220 1
223
+ 221 0
224
  222 1
225
+ 223 0
226
+ 224 0
227
+ 225 0
228
  226 1
229
  227 1
230
+ 228 0
231
  229 1
232
+ 230 0
233
+ 231 0
234
  232 1
235
+ 233 0
236
  234 1
237
  235 1
238
  236 1
239
+ 237 0
240
+ 238 0
241
  239 1
train_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
  "epoch": 2.0,
3
- "total_flos": 52622211072000.0,
4
- "train_loss": 69.59579685756138,
5
- "train_runtime": 22.694,
6
- "train_samples": 100,
7
- "train_samples_per_second": 8.813,
8
- "train_steps_per_second": 0.617
9
  }
 
1
  {
2
  "epoch": 2.0,
3
+ "total_flos": 589368764006400.0,
4
+ "train_loss": 0.39655887058803013,
5
+ "train_runtime": 130.5105,
6
+ "train_samples": 1120,
7
+ "train_samples_per_second": 17.163,
8
+ "train_steps_per_second": 1.073
9
  }
trainer_state.json CHANGED
@@ -1,58 +1,58 @@
1
  {
2
- "best_global_step": 7,
3
- "best_metric": 0.6516853932584269,
4
- "best_model_checkpoint": "models/fake-news-bert-base-spanish-wwm-cased/checkpoint-7",
5
  "epoch": 2.0,
6
  "eval_steps": 500,
7
- "global_step": 14,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
11
  "log_history": [
12
  {
13
  "epoch": 1.0,
14
- "grad_norm": 30.80777359008789,
15
- "learning_rate": 0.2857142857142857,
16
- "loss": 94.2083,
17
- "step": 7
18
  },
19
  {
20
  "epoch": 1.0,
21
- "eval_f1": 0.6516853932584269,
22
- "eval_loss": 81.0190658569336,
23
- "eval_runtime": 3.5376,
24
- "eval_samples_per_second": 67.842,
25
- "eval_steps_per_second": 4.24,
26
- "step": 7
27
  },
28
  {
29
  "epoch": 2.0,
30
- "grad_norm": 30.307811737060547,
31
- "learning_rate": 0.03571428571428571,
32
- "loss": 44.9833,
33
- "step": 14
34
  },
35
  {
36
  "epoch": 2.0,
37
- "eval_f1": 0.0,
38
- "eval_loss": 1.4185813665390015,
39
- "eval_runtime": 3.5702,
40
- "eval_samples_per_second": 67.224,
41
- "eval_steps_per_second": 4.201,
42
- "step": 14
43
  },
44
  {
45
  "epoch": 2.0,
46
- "step": 14,
47
- "total_flos": 52622211072000.0,
48
- "train_loss": 69.59579685756138,
49
- "train_runtime": 22.694,
50
- "train_samples_per_second": 8.813,
51
- "train_steps_per_second": 0.617
52
  }
53
  ],
54
  "logging_steps": 500,
55
- "max_steps": 14,
56
  "num_input_tokens_seen": 0,
57
  "num_train_epochs": 2,
58
  "save_steps": 500,
@@ -68,7 +68,7 @@
68
  "attributes": {}
69
  }
70
  },
71
- "total_flos": 52622211072000.0,
72
  "train_batch_size": 16,
73
  "trial_name": null,
74
  "trial_params": null
 
1
  {
2
+ "best_global_step": 140,
3
+ "best_metric": 0.8378378378378378,
4
+ "best_model_checkpoint": "models/fake-news-bert-base-spanish-wwm-cased/checkpoint-140",
5
  "epoch": 2.0,
6
  "eval_steps": 500,
7
+ "global_step": 140,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
11
  "log_history": [
12
  {
13
  "epoch": 1.0,
14
+ "grad_norm": 6.333802223205566,
15
+ "learning_rate": 1.0142857142857143e-05,
16
+ "loss": 0.5238,
17
+ "step": 70
18
  },
19
  {
20
  "epoch": 1.0,
21
+ "eval_f1": 0.7599999999999999,
22
+ "eval_loss": 0.42333319783210754,
23
+ "eval_runtime": 4.1419,
24
+ "eval_samples_per_second": 57.944,
25
+ "eval_steps_per_second": 3.621,
26
+ "step": 70
27
  },
28
  {
29
  "epoch": 2.0,
30
+ "grad_norm": 15.530929565429688,
31
+ "learning_rate": 1.4285714285714287e-07,
32
+ "loss": 0.2693,
33
+ "step": 140
34
  },
35
  {
36
  "epoch": 2.0,
37
+ "eval_f1": 0.8378378378378378,
38
+ "eval_loss": 0.3234243392944336,
39
+ "eval_runtime": 4.0599,
40
+ "eval_samples_per_second": 59.114,
41
+ "eval_steps_per_second": 3.695,
42
+ "step": 140
43
  },
44
  {
45
  "epoch": 2.0,
46
+ "step": 140,
47
+ "total_flos": 589368764006400.0,
48
+ "train_loss": 0.39655887058803013,
49
+ "train_runtime": 130.5105,
50
+ "train_samples_per_second": 17.163,
51
+ "train_steps_per_second": 1.073
52
  }
53
  ],
54
  "logging_steps": 500,
55
+ "max_steps": 140,
56
  "num_input_tokens_seen": 0,
57
  "num_train_epochs": 2,
58
  "save_steps": 500,
 
68
  "attributes": {}
69
  }
70
  },
71
+ "total_flos": 589368764006400.0,
72
  "train_batch_size": 16,
73
  "trial_name": null,
74
  "trial_params": null