AceVikings commited on
Commit
24fd2cd
·
verified ·
1 Parent(s): 25a26cf

deberta-large-singlehead-classifier

Browse files
Files changed (4) hide show
  1. README.md +59 -179
  2. config.json +159 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md CHANGED
@@ -1,199 +1,79 @@
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
+ license: mit
4
+ base_model: microsoft/deberta-v3-large
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: deberta-misconception-classifier
11
+ results: []
12
  ---
13
 
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
 
17
+ # deberta-misconception-classifier
18
 
19
+ This model is a fine-tuned version of [microsoft/deberta-v3-large](https://huggingface.co/microsoft/deberta-v3-large) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.2595
22
+ - Macro F1: 0.6012
23
+ - Weighted F1: 0.7862
24
+ - Accuracy: 0.7823
25
+ - Map@3: 0.8846
26
 
27
+ ## Model description
28
 
29
+ More information needed
30
 
31
+ ## Intended uses & limitations
32
 
33
+ More information needed
34
 
35
+ ## Training and evaluation data
36
 
37
+ More information needed
 
 
 
 
 
 
38
 
39
+ ## Training procedure
40
 
41
+ ### Training hyperparameters
42
 
43
+ The following hyperparameters were used during training:
44
+ - learning_rate: 1e-05
45
+ - train_batch_size: 8
46
+ - eval_batch_size: 8
47
+ - seed: 42
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 16
50
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
51
+ - lr_scheduler_type: linear
52
+ - num_epochs: 10
53
+ - mixed_precision_training: Native AMP
54
 
55
+ ### Training results
56
 
57
+ | Training Loss | Epoch | Step | Validation Loss | Macro F1 | Weighted F1 | Accuracy | Map@3 |
58
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:-----------:|:--------:|:------:|
59
+ | 1.3548 | 0.2422 | 500 | 1.0357 | 0.2067 | 0.4193 | 0.4221 | 0.5941 |
60
+ | 0.9062 | 0.4845 | 1000 | 0.7145 | 0.3536 | 0.6222 | 0.6183 | 0.7672 |
61
+ | 0.5924 | 0.7267 | 1500 | 0.4780 | 0.4251 | 0.7250 | 0.7368 | 0.8460 |
62
+ | 0.4113 | 0.9690 | 2000 | 0.4354 | 0.4210 | 0.7139 | 0.7354 | 0.8430 |
63
+ | 0.2906 | 1.2112 | 2500 | 0.3885 | 0.4757 | 0.7373 | 0.7559 | 0.8635 |
64
+ | 0.3248 | 1.4535 | 3000 | 0.3100 | 0.5215 | 0.7591 | 0.7589 | 0.8651 |
65
+ | 0.264 | 1.6957 | 3500 | 0.3245 | 0.5371 | 0.7838 | 0.7864 | 0.8852 |
66
+ | 0.3461 | 1.9380 | 4000 | 0.2863 | 0.5582 | 0.8036 | 0.8136 | 0.8988 |
67
+ | 0.202 | 2.1802 | 4500 | 0.2697 | 0.5758 | 0.8058 | 0.8147 | 0.9013 |
68
+ | 0.1641 | 2.4225 | 5000 | 0.2837 | 0.6015 | 0.8224 | 0.8245 | 0.9062 |
69
+ | 0.1642 | 2.6647 | 5500 | 0.2991 | 0.5559 | 0.8113 | 0.8139 | 0.9009 |
70
+ | 0.1857 | 2.9070 | 6000 | 0.2518 | 0.5931 | 0.8051 | 0.8109 | 0.8995 |
71
+ | 0.1322 | 3.1492 | 6500 | 0.2595 | 0.6012 | 0.7862 | 0.7823 | 0.8846 |
72
 
 
73
 
74
+ ### Framework versions
75
 
76
+ - Transformers 4.53.3
77
+ - Pytorch 2.6.0+cu124
78
+ - Datasets 4.0.0
79
+ - Tokenizers 0.21.2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config.json ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "DebertaV2ForSequenceClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "hidden_act": "gelu",
7
+ "hidden_dropout_prob": 0.1,
8
+ "hidden_size": 1024,
9
+ "id2label": {
10
+ "0": "False_Correct:NA",
11
+ "1": "False_Misconception:Adding_across",
12
+ "2": "False_Misconception:Adding_terms",
13
+ "3": "False_Misconception:Additive",
14
+ "4": "False_Misconception:Base_rate",
15
+ "5": "False_Misconception:Certainty",
16
+ "6": "False_Misconception:Definition",
17
+ "7": "False_Misconception:Denominator-only_change",
18
+ "8": "False_Misconception:Division",
19
+ "9": "False_Misconception:Duplication",
20
+ "10": "False_Misconception:Firstterm",
21
+ "11": "False_Misconception:FlipChange",
22
+ "12": "False_Misconception:Ignores_zeroes",
23
+ "13": "False_Misconception:Incomplete",
24
+ "14": "False_Misconception:Incorrect_equivalent_fraction_addition",
25
+ "15": "False_Misconception:Interior",
26
+ "16": "False_Misconception:Inverse_operation",
27
+ "17": "False_Misconception:Inversion",
28
+ "18": "False_Misconception:Irrelevant",
29
+ "19": "False_Misconception:Longer_is_bigger",
30
+ "20": "False_Misconception:Mult",
31
+ "21": "False_Misconception:Multiplying_by_4",
32
+ "22": "False_Misconception:Not_variable",
33
+ "23": "False_Misconception:Positive",
34
+ "24": "False_Misconception:Scale",
35
+ "25": "False_Misconception:Shorter_is_bigger",
36
+ "26": "False_Misconception:Subtraction",
37
+ "27": "False_Misconception:SwapDividend",
38
+ "28": "False_Misconception:Tacking",
39
+ "29": "False_Misconception:Unknowable",
40
+ "30": "False_Misconception:WNB",
41
+ "31": "False_Misconception:Whole_numbers_larger",
42
+ "32": "False_Misconception:Wrong_Fraction",
43
+ "33": "False_Misconception:Wrong_Operation",
44
+ "34": "False_Misconception:Wrong_fraction",
45
+ "35": "False_Misconception:Wrong_term",
46
+ "36": "False_Neither:NA",
47
+ "37": "True_Correct:NA",
48
+ "38": "True_Misconception:Additive",
49
+ "39": "True_Misconception:Definition",
50
+ "40": "True_Misconception:Denominator-only_change",
51
+ "41": "True_Misconception:Division",
52
+ "42": "True_Misconception:Duplication",
53
+ "43": "True_Misconception:Firstterm",
54
+ "44": "True_Misconception:FlipChange",
55
+ "45": "True_Misconception:Incomplete",
56
+ "46": "True_Misconception:Incorrect_equivalent_fraction_addition",
57
+ "47": "True_Misconception:Inversion",
58
+ "48": "True_Misconception:Irrelevant",
59
+ "49": "True_Misconception:Mult",
60
+ "50": "True_Misconception:Multiplying_by_4",
61
+ "51": "True_Misconception:Positive",
62
+ "52": "True_Misconception:Shorter_is_bigger",
63
+ "53": "True_Misconception:Subtraction",
64
+ "54": "True_Misconception:SwapDividend",
65
+ "55": "True_Misconception:Tacking",
66
+ "56": "True_Misconception:WNB",
67
+ "57": "True_Misconception:Wrong_fraction",
68
+ "58": "True_Misconception:Wrong_term",
69
+ "59": "True_Neither:NA"
70
+ },
71
+ "initializer_range": 0.02,
72
+ "intermediate_size": 4096,
73
+ "label2id": {
74
+ "False_Correct:NA": 0,
75
+ "False_Misconception:Adding_across": 1,
76
+ "False_Misconception:Adding_terms": 2,
77
+ "False_Misconception:Additive": 3,
78
+ "False_Misconception:Base_rate": 4,
79
+ "False_Misconception:Certainty": 5,
80
+ "False_Misconception:Definition": 6,
81
+ "False_Misconception:Denominator-only_change": 7,
82
+ "False_Misconception:Division": 8,
83
+ "False_Misconception:Duplication": 9,
84
+ "False_Misconception:Firstterm": 10,
85
+ "False_Misconception:FlipChange": 11,
86
+ "False_Misconception:Ignores_zeroes": 12,
87
+ "False_Misconception:Incomplete": 13,
88
+ "False_Misconception:Incorrect_equivalent_fraction_addition": 14,
89
+ "False_Misconception:Interior": 15,
90
+ "False_Misconception:Inverse_operation": 16,
91
+ "False_Misconception:Inversion": 17,
92
+ "False_Misconception:Irrelevant": 18,
93
+ "False_Misconception:Longer_is_bigger": 19,
94
+ "False_Misconception:Mult": 20,
95
+ "False_Misconception:Multiplying_by_4": 21,
96
+ "False_Misconception:Not_variable": 22,
97
+ "False_Misconception:Positive": 23,
98
+ "False_Misconception:Scale": 24,
99
+ "False_Misconception:Shorter_is_bigger": 25,
100
+ "False_Misconception:Subtraction": 26,
101
+ "False_Misconception:SwapDividend": 27,
102
+ "False_Misconception:Tacking": 28,
103
+ "False_Misconception:Unknowable": 29,
104
+ "False_Misconception:WNB": 30,
105
+ "False_Misconception:Whole_numbers_larger": 31,
106
+ "False_Misconception:Wrong_Fraction": 32,
107
+ "False_Misconception:Wrong_Operation": 33,
108
+ "False_Misconception:Wrong_fraction": 34,
109
+ "False_Misconception:Wrong_term": 35,
110
+ "False_Neither:NA": 36,
111
+ "True_Correct:NA": 37,
112
+ "True_Misconception:Additive": 38,
113
+ "True_Misconception:Definition": 39,
114
+ "True_Misconception:Denominator-only_change": 40,
115
+ "True_Misconception:Division": 41,
116
+ "True_Misconception:Duplication": 42,
117
+ "True_Misconception:Firstterm": 43,
118
+ "True_Misconception:FlipChange": 44,
119
+ "True_Misconception:Incomplete": 45,
120
+ "True_Misconception:Incorrect_equivalent_fraction_addition": 46,
121
+ "True_Misconception:Inversion": 47,
122
+ "True_Misconception:Irrelevant": 48,
123
+ "True_Misconception:Mult": 49,
124
+ "True_Misconception:Multiplying_by_4": 50,
125
+ "True_Misconception:Positive": 51,
126
+ "True_Misconception:Shorter_is_bigger": 52,
127
+ "True_Misconception:Subtraction": 53,
128
+ "True_Misconception:SwapDividend": 54,
129
+ "True_Misconception:Tacking": 55,
130
+ "True_Misconception:WNB": 56,
131
+ "True_Misconception:Wrong_fraction": 57,
132
+ "True_Misconception:Wrong_term": 58,
133
+ "True_Neither:NA": 59
134
+ },
135
+ "layer_norm_eps": 1e-07,
136
+ "legacy": true,
137
+ "max_position_embeddings": 512,
138
+ "max_relative_positions": -1,
139
+ "model_type": "deberta-v2",
140
+ "norm_rel_ebd": "layer_norm",
141
+ "num_attention_heads": 16,
142
+ "num_hidden_layers": 24,
143
+ "pad_token_id": 0,
144
+ "pooler_dropout": 0,
145
+ "pooler_hidden_act": "gelu",
146
+ "pooler_hidden_size": 1024,
147
+ "pos_att_type": [
148
+ "p2c",
149
+ "c2p"
150
+ ],
151
+ "position_biased_input": false,
152
+ "position_buckets": 256,
153
+ "relative_attention": true,
154
+ "share_att_key": true,
155
+ "torch_dtype": "float32",
156
+ "transformers_version": "4.53.3",
157
+ "type_vocab_size": 0,
158
+ "vocab_size": 128100
159
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc991bcaacc93c19f8a28dfad16f885198849674af0c2ae4e4703ce5604330a4
3
+ size 1740542256
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a54d0ef4aa22d472ef5156c113a760247a339d8f6d422398baa15d403fb62d24
3
+ size 5368