calculito commited on
Commit
361b507
·
verified ·
1 Parent(s): 9c42485

calculito/classify-ISIN-STEP8_binary

Browse files
Files changed (5) hide show
  1. README.md +59 -180
  2. config.json +42 -0
  3. model.safetensors +3 -0
  4. trainer_state.json +182 -0
  5. training_args.bin +3 -0
README.md CHANGED
@@ -1,199 +1,78 @@
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
+ license: apache-2.0
3
+ base_model: albert/albert-base-v2
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ metrics:
9
+ - accuracy
10
+ - f1
11
+ - precision
12
+ - recall
13
+ model-index:
14
+ - name: classify-ISIN-STEP8_binary
15
+ results: []
16
  ---
17
 
18
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
19
+ should probably proofread and complete it, then remove this comment. -->
20
 
21
+ # classify-ISIN-STEP8_binary
22
 
23
+ This model is a fine-tuned version of [albert/albert-base-v2](https://huggingface.co/albert/albert-base-v2) on an unknown dataset.
24
+ It achieves the following results on the evaluation set:
25
+ - Loss: 0.0001
26
+ - Accuracy: 1.0
27
+ - F1: 1.0
28
+ - Precision: 1.0
29
+ - Recall: 1.0
30
+ - Accuracy Label Gd622:no: 1.0
31
+ - Accuracy Label Gd622:yes: 1.0
32
 
33
+ ## Model description
34
 
35
+ More information needed
36
 
37
+ ## Intended uses & limitations
38
 
39
+ More information needed
40
 
41
+ ## Training and evaluation data
42
 
43
+ More information needed
 
 
 
 
 
 
44
 
45
+ ## Training procedure
46
 
47
+ ### Training hyperparameters
48
 
49
+ The following hyperparameters were used during training:
50
+ - learning_rate: 2e-05
51
+ - train_batch_size: 8
52
+ - eval_batch_size: 8
53
+ - seed: 42
54
+ - gradient_accumulation_steps: 2
55
+ - total_train_batch_size: 16
56
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
57
+ - lr_scheduler_type: linear
58
+ - lr_scheduler_warmup_steps: 10
59
+ - num_epochs: 1
60
 
61
+ ### Training results
62
 
63
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall | Accuracy Label Gd622:no | Accuracy Label Gd622:yes |
64
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|:-----------------------:|:------------------------:|
65
+ | 0.0992 | 0.1610 | 100 | 0.0070 | 0.9987 | 0.9987 | 0.9987 | 0.9987 | 0.9982 | 1.0 |
66
+ | 0.0082 | 0.3221 | 200 | 0.0002 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
67
+ | 0.0002 | 0.4831 | 300 | 0.0001 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
68
+ | 0.0001 | 0.6441 | 400 | 0.0001 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
69
+ | 0.0001 | 0.8052 | 500 | 0.0001 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
70
+ | 0.0052 | 0.9662 | 600 | 0.0001 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
71
 
 
72
 
73
+ ### Framework versions
74
 
75
+ - Transformers 4.43.3
76
+ - Pytorch 2.4.0
77
+ - Datasets 2.20.0
78
+ - Tokenizers 0.19.1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "albert/albert-base-v2",
3
+ "architectures": [
4
+ "AlbertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0,
7
+ "bos_token_id": 2,
8
+ "classifier_dropout_prob": 0.1,
9
+ "down_scale_factor": 1,
10
+ "embedding_size": 128,
11
+ "eos_token_id": 3,
12
+ "gap_size": 0,
13
+ "hidden_act": "gelu_new",
14
+ "hidden_dropout_prob": 0,
15
+ "hidden_size": 768,
16
+ "id2label": {
17
+ "0": "GD622:NO",
18
+ "1": "GD622:YES"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "inner_group_num": 1,
22
+ "intermediate_size": 3072,
23
+ "label2id": {
24
+ "GD622:NO": 0,
25
+ "GD622:YES": 1
26
+ },
27
+ "layer_norm_eps": 1e-12,
28
+ "max_position_embeddings": 512,
29
+ "model_type": "albert",
30
+ "net_structure_type": 0,
31
+ "num_attention_heads": 12,
32
+ "num_hidden_groups": 1,
33
+ "num_hidden_layers": 12,
34
+ "num_memory_blocks": 0,
35
+ "pad_token_id": 0,
36
+ "position_embedding_type": "absolute",
37
+ "problem_type": "single_label_classification",
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.43.3",
40
+ "type_vocab_size": 2,
41
+ "vocab_size": 30000
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cc85dee84124500450b733aa0c3df56275f688b1ea68e49855481e8addd8a7a
3
+ size 46743912
trainer_state.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 100,
6
+ "global_step": 621,
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.1610305958132045,
13
+ "grad_norm": 0.049451954662799835,
14
+ "learning_rate": 1.7054009819967267e-05,
15
+ "loss": 0.0992,
16
+ "step": 100
17
+ },
18
+ {
19
+ "epoch": 0.1610305958132045,
20
+ "eval_accuracy": 0.9986595174262735,
21
+ "eval_accuracy_label_GD622:NO": 0.9982174688057041,
22
+ "eval_accuracy_label_GD622:YES": 1.0,
23
+ "eval_f1": 0.9986607261106767,
24
+ "eval_loss": 0.006988690234720707,
25
+ "eval_precision": 0.9986667243218311,
26
+ "eval_recall": 0.9986595174262735,
27
+ "eval_runtime": 14.5108,
28
+ "eval_samples_per_second": 51.41,
29
+ "eval_steps_per_second": 6.478,
30
+ "step": 100
31
+ },
32
+ {
33
+ "epoch": 0.322061191626409,
34
+ "grad_norm": 0.009679725393652916,
35
+ "learning_rate": 1.3780687397708677e-05,
36
+ "loss": 0.0082,
37
+ "step": 200
38
+ },
39
+ {
40
+ "epoch": 0.322061191626409,
41
+ "eval_accuracy": 1.0,
42
+ "eval_accuracy_label_GD622:NO": 1.0,
43
+ "eval_accuracy_label_GD622:YES": 1.0,
44
+ "eval_f1": 1.0,
45
+ "eval_loss": 0.0001819185126805678,
46
+ "eval_precision": 1.0,
47
+ "eval_recall": 1.0,
48
+ "eval_runtime": 14.1036,
49
+ "eval_samples_per_second": 52.894,
50
+ "eval_steps_per_second": 6.665,
51
+ "step": 200
52
+ },
53
+ {
54
+ "epoch": 0.4830917874396135,
55
+ "grad_norm": 0.004012643825262785,
56
+ "learning_rate": 1.0507364975450083e-05,
57
+ "loss": 0.0002,
58
+ "step": 300
59
+ },
60
+ {
61
+ "epoch": 0.4830917874396135,
62
+ "eval_accuracy": 1.0,
63
+ "eval_accuracy_label_GD622:NO": 1.0,
64
+ "eval_accuracy_label_GD622:YES": 1.0,
65
+ "eval_f1": 1.0,
66
+ "eval_loss": 8.742377394810319e-05,
67
+ "eval_precision": 1.0,
68
+ "eval_recall": 1.0,
69
+ "eval_runtime": 14.2465,
70
+ "eval_samples_per_second": 52.364,
71
+ "eval_steps_per_second": 6.598,
72
+ "step": 300
73
+ },
74
+ {
75
+ "epoch": 0.644122383252818,
76
+ "grad_norm": 0.007226710207760334,
77
+ "learning_rate": 7.234042553191491e-06,
78
+ "loss": 0.0001,
79
+ "step": 400
80
+ },
81
+ {
82
+ "epoch": 0.644122383252818,
83
+ "eval_accuracy": 1.0,
84
+ "eval_accuracy_label_GD622:NO": 1.0,
85
+ "eval_accuracy_label_GD622:YES": 1.0,
86
+ "eval_f1": 1.0,
87
+ "eval_loss": 6.116439180914313e-05,
88
+ "eval_precision": 1.0,
89
+ "eval_recall": 1.0,
90
+ "eval_runtime": 14.0833,
91
+ "eval_samples_per_second": 52.971,
92
+ "eval_steps_per_second": 6.675,
93
+ "step": 400
94
+ },
95
+ {
96
+ "epoch": 0.8051529790660226,
97
+ "grad_norm": 0.0017265487695112824,
98
+ "learning_rate": 3.9607201309328975e-06,
99
+ "loss": 0.0001,
100
+ "step": 500
101
+ },
102
+ {
103
+ "epoch": 0.8051529790660226,
104
+ "eval_accuracy": 1.0,
105
+ "eval_accuracy_label_GD622:NO": 1.0,
106
+ "eval_accuracy_label_GD622:YES": 1.0,
107
+ "eval_f1": 1.0,
108
+ "eval_loss": 5.098180554341525e-05,
109
+ "eval_precision": 1.0,
110
+ "eval_recall": 1.0,
111
+ "eval_runtime": 14.2966,
112
+ "eval_samples_per_second": 52.18,
113
+ "eval_steps_per_second": 6.575,
114
+ "step": 500
115
+ },
116
+ {
117
+ "epoch": 0.966183574879227,
118
+ "grad_norm": 0.002074724994599819,
119
+ "learning_rate": 6.873977086743044e-07,
120
+ "loss": 0.0052,
121
+ "step": 600
122
+ },
123
+ {
124
+ "epoch": 0.966183574879227,
125
+ "eval_accuracy": 1.0,
126
+ "eval_accuracy_label_GD622:NO": 1.0,
127
+ "eval_accuracy_label_GD622:YES": 1.0,
128
+ "eval_f1": 1.0,
129
+ "eval_loss": 5.632078318740241e-05,
130
+ "eval_precision": 1.0,
131
+ "eval_recall": 1.0,
132
+ "eval_runtime": 14.2886,
133
+ "eval_samples_per_second": 52.209,
134
+ "eval_steps_per_second": 6.579,
135
+ "step": 600
136
+ },
137
+ {
138
+ "epoch": 1.0,
139
+ "step": 621,
140
+ "total_flos": 118713820492800.0,
141
+ "train_loss": 0.01817948298567033,
142
+ "train_runtime": 610.2056,
143
+ "train_samples_per_second": 16.281,
144
+ "train_steps_per_second": 1.018
145
+ },
146
+ {
147
+ "epoch": 1.0,
148
+ "eval_accuracy": 1.0,
149
+ "eval_accuracy_label_GD622:NO": 1.0,
150
+ "eval_accuracy_label_GD622:YES": 1.0,
151
+ "eval_f1": 1.0,
152
+ "eval_loss": 5.621322270599194e-05,
153
+ "eval_precision": 1.0,
154
+ "eval_recall": 1.0,
155
+ "eval_runtime": 14.2274,
156
+ "eval_samples_per_second": 52.434,
157
+ "eval_steps_per_second": 6.607,
158
+ "step": 621
159
+ }
160
+ ],
161
+ "logging_steps": 100,
162
+ "max_steps": 621,
163
+ "num_input_tokens_seen": 0,
164
+ "num_train_epochs": 1,
165
+ "save_steps": 100,
166
+ "stateful_callbacks": {
167
+ "TrainerControl": {
168
+ "args": {
169
+ "should_epoch_stop": false,
170
+ "should_evaluate": false,
171
+ "should_log": false,
172
+ "should_save": true,
173
+ "should_training_stop": true
174
+ },
175
+ "attributes": {}
176
+ }
177
+ },
178
+ "total_flos": 118713820492800.0,
179
+ "train_batch_size": 8,
180
+ "trial_name": null,
181
+ "trial_params": null
182
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:931f0450493244de4fb914bc0dd17ec45ed82a14c250c7b6ddc62348c548c9e4
3
+ size 5368