JhonMR commited on
Commit
1f9784e
·
verified ·
1 Parent(s): 49cbb94

End of training

Browse files
Files changed (7) hide show
  1. README.md +44 -179
  2. all_results.json +21 -0
  3. config.json +1 -1
  4. eval_results.json +11 -0
  5. train_results.json +8 -0
  6. trainer_state.json +255 -0
  7. training_args.bin +3 -0
README.md CHANGED
@@ -1,199 +1,64 @@
1
  ---
2
  library_name: transformers
3
- tags: []
 
 
 
 
 
 
 
 
 
 
4
  ---
5
 
6
- # Model Card for Model ID
 
7
 
8
- <!-- Provide a quick summary of what the model is/does. -->
9
 
 
 
 
 
 
 
 
10
 
 
11
 
12
- ## Model Details
13
 
14
- ### Model Description
15
 
16
- <!-- Provide a longer summary of what this model is. -->
17
 
18
- This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
19
 
20
- - **Developed by:** [More Information Needed]
21
- - **Funded by [optional]:** [More Information Needed]
22
- - **Shared by [optional]:** [More Information Needed]
23
- - **Model type:** [More Information Needed]
24
- - **Language(s) (NLP):** [More Information Needed]
25
- - **License:** [More Information Needed]
26
- - **Finetuned from model [optional]:** [More Information Needed]
27
 
28
- ### Model Sources [optional]
29
 
30
- <!-- Provide the basic links for the model. -->
31
 
32
- - **Repository:** [More Information Needed]
33
- - **Paper [optional]:** [More Information Needed]
34
- - **Demo [optional]:** [More Information Needed]
 
 
 
 
 
 
35
 
36
- ## Uses
37
 
38
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
 
40
- ### Direct Use
41
 
42
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
 
44
- [More Information Needed]
45
-
46
- ### Downstream Use [optional]
47
-
48
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
-
50
- [More Information Needed]
51
-
52
- ### Out-of-Scope Use
53
-
54
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
-
56
- [More Information Needed]
57
-
58
- ## Bias, Risks, and Limitations
59
-
60
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
-
62
- [More Information Needed]
63
-
64
- ### Recommendations
65
-
66
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
-
68
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
-
70
- ## How to Get Started with the Model
71
-
72
- Use the code below to get started with the model.
73
-
74
- [More Information Needed]
75
-
76
- ## Training Details
77
-
78
- ### Training Data
79
-
80
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
-
82
- [More Information Needed]
83
-
84
- ### Training Procedure
85
-
86
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
-
88
- #### Preprocessing [optional]
89
-
90
- [More Information Needed]
91
-
92
-
93
- #### Training Hyperparameters
94
-
95
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
-
97
- #### Speeds, Sizes, Times [optional]
98
-
99
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
-
101
- [More Information Needed]
102
-
103
- ## Evaluation
104
-
105
- <!-- This section describes the evaluation protocols and provides the results. -->
106
-
107
- ### Testing Data, Factors & Metrics
108
-
109
- #### Testing Data
110
-
111
- <!-- This should link to a Dataset Card if possible. -->
112
-
113
- [More Information Needed]
114
-
115
- #### Factors
116
-
117
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
-
119
- [More Information Needed]
120
-
121
- #### Metrics
122
-
123
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
-
125
- [More Information Needed]
126
-
127
- ### Results
128
-
129
- [More Information Needed]
130
-
131
- #### Summary
132
-
133
-
134
-
135
- ## Model Examination [optional]
136
-
137
- <!-- Relevant interpretability work for the model goes here -->
138
-
139
- [More Information Needed]
140
-
141
- ## Environmental Impact
142
-
143
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
-
145
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
-
147
- - **Hardware Type:** [More Information Needed]
148
- - **Hours used:** [More Information Needed]
149
- - **Cloud Provider:** [More Information Needed]
150
- - **Compute Region:** [More Information Needed]
151
- - **Carbon Emitted:** [More Information Needed]
152
-
153
- ## Technical Specifications [optional]
154
-
155
- ### Model Architecture and Objective
156
-
157
- [More Information Needed]
158
-
159
- ### Compute Infrastructure
160
-
161
- [More Information Needed]
162
-
163
- #### Hardware
164
-
165
- [More Information Needed]
166
-
167
- #### Software
168
-
169
- [More Information Needed]
170
-
171
- ## Citation [optional]
172
-
173
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
-
175
- **BibTeX:**
176
-
177
- [More Information Needed]
178
-
179
- **APA:**
180
-
181
- [More Information Needed]
182
-
183
- ## Glossary [optional]
184
-
185
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
-
187
- [More Information Needed]
188
-
189
- ## More Information [optional]
190
-
191
- [More Information Needed]
192
-
193
- ## Model Card Authors [optional]
194
-
195
- [More Information Needed]
196
-
197
- ## Model Card Contact
198
-
199
- [More Information Needed]
 
1
  ---
2
  library_name: transformers
3
+ base_model: dccuchile/bert-base-spanish-wwm-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ - precision
10
+ - recall
11
+ model-index:
12
+ - name: Bert_v10
13
+ results: []
14
  ---
15
 
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
 
19
+ # Bert_v10
20
 
21
+ This model is a fine-tuned version of [dccuchile/bert-base-spanish-wwm-uncased](https://huggingface.co/dccuchile/bert-base-spanish-wwm-uncased) on the None dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Accuracy: 0.8958
24
+ - F1: 0.8958
25
+ - Precision: 0.8982
26
+ - Recall: 0.8971
27
+ - Loss: 0.4327
28
 
29
+ ## Model description
30
 
31
+ More information needed
32
 
33
+ ## Intended uses & limitations
34
 
35
+ More information needed
36
 
37
+ ## Training and evaluation data
38
 
39
+ More information needed
 
 
 
 
 
 
40
 
41
+ ## Training procedure
42
 
43
+ ### Training hyperparameters
44
 
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 2e-05
47
+ - train_batch_size: 32
48
+ - eval_batch_size: 32
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: cosine_with_restarts
52
+ - lr_scheduler_warmup_steps: 100
53
+ - num_epochs: 20
54
 
55
+ ### Training results
56
 
 
57
 
 
58
 
59
+ ### Framework versions
60
 
61
+ - Transformers 4.44.2
62
+ - Pytorch 2.5.0+cu121
63
+ - Datasets 3.1.0
64
+ - Tokenizers 0.19.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
all_results.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 7.0,
3
+ "eval_accuracy": 0.8957671957671958,
4
+ "eval_f1": 0.8957969434045191,
5
+ "eval_loss": 0.4326554834842682,
6
+ "eval_precision": 0.8981578919986064,
7
+ "eval_recall": 0.8970552202896507,
8
+ "eval_runtime": 110.8886,
9
+ "eval_samples_per_second": 34.088,
10
+ "eval_steps_per_second": 1.073,
11
+ "total_flos": 1.62503106619392e+16,
12
+ "train_eval_accuracy": 0.9687074829931973,
13
+ "train_eval_f1": 0.9684965457139353,
14
+ "train_eval_loss": 0.11909189075231552,
15
+ "train_eval_precision": 0.9696149844869657,
16
+ "train_eval_recall": 0.9685670790376533,
17
+ "train_loss": 0.6677281476449275,
18
+ "train_runtime": 8398.7851,
19
+ "train_samples_per_second": 21.003,
20
+ "train_steps_per_second": 0.657
21
+ }
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "Bert_v10",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
 
1
  {
2
+ "_name_or_path": "dccuchile/bert-base-spanish-wwm-uncased",
3
  "architectures": [
4
  "BertForSequenceClassification"
5
  ],
eval_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 7.0,
3
+ "eval_accuracy": 0.8957671957671958,
4
+ "eval_f1": 0.8957969434045191,
5
+ "eval_loss": 0.4326554834842682,
6
+ "eval_precision": 0.8981578919986064,
7
+ "eval_recall": 0.8970552202896507,
8
+ "eval_runtime": 110.8886,
9
+ "eval_samples_per_second": 34.088,
10
+ "eval_steps_per_second": 1.073
11
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 7.0,
3
+ "total_flos": 1.62503106619392e+16,
4
+ "train_loss": 0.6677281476449275,
5
+ "train_runtime": 8398.7851,
6
+ "train_samples_per_second": 21.003,
7
+ "train_steps_per_second": 0.657
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 7.0,
5
+ "eval_steps": 500,
6
+ "global_step": 1932,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "step": 276,
14
+ "train_eval_accuracy": 0.6987528344671202,
15
+ "train_eval_f1": 0.6755183421371805,
16
+ "train_eval_loss": 1.2385817766189575,
17
+ "train_eval_precision": 0.7371331169153404,
18
+ "train_eval_recall": 0.700062751383177,
19
+ "train_loss": 1.2385817766189575,
20
+ "train_runtime": 259.0959,
21
+ "train_samples_per_second": 34.041,
22
+ "train_steps_per_second": 1.065
23
+ },
24
+ {
25
+ "epoch": 1.0,
26
+ "eval_accuracy": 0.6833333333333333,
27
+ "eval_f1": 0.6547321354719501,
28
+ "eval_loss": 1.2707617282867432,
29
+ "eval_precision": 0.7152277887972227,
30
+ "eval_recall": 0.6807604737331212,
31
+ "eval_runtime": 110.9236,
32
+ "eval_samples_per_second": 34.078,
33
+ "eval_steps_per_second": 1.073,
34
+ "step": 276
35
+ },
36
+ {
37
+ "epoch": 2.0,
38
+ "step": 552,
39
+ "train_eval_accuracy": 0.9099773242630386,
40
+ "train_eval_f1": 0.9092824086512392,
41
+ "train_eval_loss": 0.39961349964141846,
42
+ "train_eval_precision": 0.9126506135478565,
43
+ "train_eval_recall": 0.909610330961518,
44
+ "train_loss": 0.39961352944374084,
45
+ "train_runtime": 259.0099,
46
+ "train_samples_per_second": 34.053,
47
+ "train_steps_per_second": 1.066
48
+ },
49
+ {
50
+ "epoch": 2.0,
51
+ "eval_accuracy": 0.8843915343915344,
52
+ "eval_f1": 0.8845088728896672,
53
+ "eval_loss": 0.49980613589286804,
54
+ "eval_precision": 0.8892030673846649,
55
+ "eval_recall": 0.8861504544427677,
56
+ "eval_runtime": 111.0942,
57
+ "eval_samples_per_second": 34.025,
58
+ "eval_steps_per_second": 1.071,
59
+ "step": 552
60
+ },
61
+ {
62
+ "epoch": 3.0,
63
+ "step": 828,
64
+ "train_eval_accuracy": 0.9325396825396826,
65
+ "train_eval_f1": 0.9319133039039142,
66
+ "train_eval_loss": 0.27389460802078247,
67
+ "train_eval_precision": 0.934170610859209,
68
+ "train_eval_recall": 0.9324433400664413,
69
+ "train_loss": 0.27389463782310486,
70
+ "train_runtime": 258.8663,
71
+ "train_samples_per_second": 34.072,
72
+ "train_steps_per_second": 1.066
73
+ },
74
+ {
75
+ "epoch": 3.0,
76
+ "eval_accuracy": 0.8981481481481481,
77
+ "eval_f1": 0.8983790808910544,
78
+ "eval_loss": 0.4277746081352234,
79
+ "eval_precision": 0.9018452269248401,
80
+ "eval_recall": 0.8993916560895983,
81
+ "eval_runtime": 111.0843,
82
+ "eval_samples_per_second": 34.028,
83
+ "eval_steps_per_second": 1.071,
84
+ "step": 828
85
+ },
86
+ {
87
+ "epoch": 4.0,
88
+ "step": 1104,
89
+ "train_eval_accuracy": 0.9470521541950113,
90
+ "train_eval_f1": 0.9467599019967656,
91
+ "train_eval_loss": 0.20678994059562683,
92
+ "train_eval_precision": 0.9485244133482296,
93
+ "train_eval_recall": 0.9470018597626247,
94
+ "train_loss": 0.20678995549678802,
95
+ "train_runtime": 258.8456,
96
+ "train_samples_per_second": 34.074,
97
+ "train_steps_per_second": 1.066
98
+ },
99
+ {
100
+ "epoch": 4.0,
101
+ "eval_accuracy": 0.8973544973544973,
102
+ "eval_f1": 0.8979176810370734,
103
+ "eval_loss": 0.39539220929145813,
104
+ "eval_precision": 0.9018417578163312,
105
+ "eval_recall": 0.8984604158679782,
106
+ "eval_runtime": 111.0135,
107
+ "eval_samples_per_second": 34.05,
108
+ "eval_steps_per_second": 1.072,
109
+ "step": 1104
110
+ },
111
+ {
112
+ "epoch": 5.0,
113
+ "step": 1380,
114
+ "train_eval_accuracy": 0.9561224489795919,
115
+ "train_eval_f1": 0.9558613640362872,
116
+ "train_eval_loss": 0.16801320016384125,
117
+ "train_eval_precision": 0.956385049537581,
118
+ "train_eval_recall": 0.9560588471737465,
119
+ "train_loss": 0.16801321506500244,
120
+ "train_runtime": 258.896,
121
+ "train_samples_per_second": 34.068,
122
+ "train_steps_per_second": 1.066
123
+ },
124
+ {
125
+ "epoch": 5.0,
126
+ "eval_accuracy": 0.9034391534391535,
127
+ "eval_f1": 0.9040125697548127,
128
+ "eval_loss": 0.4033404588699341,
129
+ "eval_precision": 0.9052728311936364,
130
+ "eval_recall": 0.9046585790514887,
131
+ "eval_runtime": 110.9029,
132
+ "eval_samples_per_second": 34.084,
133
+ "eval_steps_per_second": 1.073,
134
+ "step": 1380
135
+ },
136
+ {
137
+ "epoch": 6.0,
138
+ "step": 1656,
139
+ "train_eval_accuracy": 0.9645124716553288,
140
+ "train_eval_f1": 0.9643703596173855,
141
+ "train_eval_loss": 0.13308991491794586,
142
+ "train_eval_precision": 0.964791623196822,
143
+ "train_eval_recall": 0.9644331346757402,
144
+ "train_loss": 0.13308990001678467,
145
+ "train_runtime": 258.612,
146
+ "train_samples_per_second": 34.105,
147
+ "train_steps_per_second": 1.067
148
+ },
149
+ {
150
+ "epoch": 6.0,
151
+ "eval_accuracy": 0.903968253968254,
152
+ "eval_f1": 0.9045126462342287,
153
+ "eval_loss": 0.4025459587574005,
154
+ "eval_precision": 0.9070552370106681,
155
+ "eval_recall": 0.9050900149375409,
156
+ "eval_runtime": 110.9248,
157
+ "eval_samples_per_second": 34.077,
158
+ "eval_steps_per_second": 1.073,
159
+ "step": 1656
160
+ },
161
+ {
162
+ "epoch": 7.0,
163
+ "step": 1932,
164
+ "train_eval_accuracy": 0.9687074829931973,
165
+ "train_eval_f1": 0.9684965457139353,
166
+ "train_eval_loss": 0.11909189075231552,
167
+ "train_eval_precision": 0.9696149844869657,
168
+ "train_eval_recall": 0.9685670790376533,
169
+ "train_loss": 0.11909190565347672,
170
+ "train_runtime": 258.6816,
171
+ "train_samples_per_second": 34.096,
172
+ "train_steps_per_second": 1.067
173
+ },
174
+ {
175
+ "epoch": 7.0,
176
+ "eval_accuracy": 0.8957671957671958,
177
+ "eval_f1": 0.8957969434045191,
178
+ "eval_loss": 0.4326554834842682,
179
+ "eval_precision": 0.8981578919986064,
180
+ "eval_recall": 0.8970552202896507,
181
+ "eval_runtime": 111.0014,
182
+ "eval_samples_per_second": 34.054,
183
+ "eval_steps_per_second": 1.072,
184
+ "step": 1932
185
+ },
186
+ {
187
+ "epoch": 7.0,
188
+ "step": 1932,
189
+ "total_flos": 1.62503106619392e+16,
190
+ "train_loss": 0.6677281476449275,
191
+ "train_runtime": 8398.7851,
192
+ "train_samples_per_second": 21.003,
193
+ "train_steps_per_second": 0.657
194
+ },
195
+ {
196
+ "epoch": 7.0,
197
+ "eval_accuracy": 0.8957671957671958,
198
+ "eval_f1": 0.8957969434045191,
199
+ "eval_loss": 0.4326554834842682,
200
+ "eval_precision": 0.8981578919986064,
201
+ "eval_recall": 0.8970552202896507,
202
+ "eval_runtime": 111.1885,
203
+ "eval_samples_per_second": 33.996,
204
+ "eval_steps_per_second": 1.07,
205
+ "step": 1932
206
+ },
207
+ {
208
+ "epoch": 7.0,
209
+ "step": 1932,
210
+ "train_en_eval_accuracy": 0.9687074829931973,
211
+ "train_en_eval_f1": 0.9684965457139353,
212
+ "train_en_eval_loss": 0.11909189075231552,
213
+ "train_en_eval_precision": 0.9696149844869657,
214
+ "train_en_eval_recall": 0.9685670790376533,
215
+ "train_en_loss": 0.11909190565347672,
216
+ "train_en_runtime": 258.9019,
217
+ "train_en_samples_per_second": 34.067,
218
+ "train_en_steps_per_second": 1.066
219
+ },
220
+ {
221
+ "epoch": 7.0,
222
+ "step": 1932,
223
+ "test_en_eval_accuracy": 0.8957671957671958,
224
+ "test_en_eval_f1": 0.8957969434045191,
225
+ "test_en_eval_loss": 0.43265554308891296,
226
+ "test_en_eval_precision": 0.8981578919986064,
227
+ "test_en_eval_recall": 0.8970552202896507,
228
+ "test_en_loss": 0.4326554834842682,
229
+ "test_en_runtime": 110.7536,
230
+ "test_en_samples_per_second": 34.13,
231
+ "test_en_steps_per_second": 1.074
232
+ }
233
+ ],
234
+ "logging_steps": 500,
235
+ "max_steps": 5520,
236
+ "num_input_tokens_seen": 0,
237
+ "num_train_epochs": 20,
238
+ "save_steps": 500,
239
+ "stateful_callbacks": {
240
+ "TrainerControl": {
241
+ "args": {
242
+ "should_epoch_stop": false,
243
+ "should_evaluate": false,
244
+ "should_log": false,
245
+ "should_save": true,
246
+ "should_training_stop": true
247
+ },
248
+ "attributes": {}
249
+ }
250
+ },
251
+ "total_flos": 1.62503106619392e+16,
252
+ "train_batch_size": 32,
253
+ "trial_name": null,
254
+ "trial_params": null
255
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e0121bd72032579546dde8a0d222487d8a582995e8ee9898a2fed2934f835c2
3
+ size 5176