filippo-olivo commited on
Commit
c1f5d12
1 Parent(s): bd7fd7d

knowgen/ManuBERT-SequenceClassification

Browse files
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: microsoft/deberta-v3-base
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: mDeBERTa
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # mDeBERTa
17
+
18
+ This model is a fine-tuned version of [microsoft/deberta-v3-base](https://huggingface.co/microsoft/deberta-v3-base) on an unknown dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.0347
21
+ - Accuracy: 0.9921
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 2e-05
41
+ - train_batch_size: 64
42
+ - eval_batch_size: 32
43
+ - seed: 42
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 2.0
47
+
48
+ ### Training results
49
+
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.38.0.dev0
55
+ - Pytorch 2.1.2+cu121
56
+ - Datasets 2.16.1
57
+ - Tokenizers 0.15.1
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "[MASK]": 128000
3
+ }
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.9921333333333333,
4
+ "eval_loss": 0.03474695608019829,
5
+ "eval_runtime": 410.5726,
6
+ "eval_samples": 60000,
7
+ "eval_samples_per_second": 146.137,
8
+ "eval_steps_per_second": 4.567,
9
+ "train_loss": 0.020007819811503093,
10
+ "train_runtime": 9507.2866,
11
+ "train_samples": 480000,
12
+ "train_samples_per_second": 100.975,
13
+ "train_steps_per_second": 1.578
14
+ }
config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/deberta-v3-base",
3
+ "architectures": [
4
+ "DebertaV2ForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "finetuning_task": "text-classification",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "0",
13
+ "1": "1"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "label2id": {
18
+ "0": 0,
19
+ "1": 1
20
+ },
21
+ "layer_norm_eps": 1e-07,
22
+ "max_position_embeddings": 512,
23
+ "max_relative_positions": -1,
24
+ "model_type": "deberta-v2",
25
+ "norm_rel_ebd": "layer_norm",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 12,
28
+ "pad_token_id": 0,
29
+ "pooler_dropout": 0,
30
+ "pooler_hidden_act": "gelu",
31
+ "pooler_hidden_size": 768,
32
+ "pos_att_type": [
33
+ "p2c",
34
+ "c2p"
35
+ ],
36
+ "position_biased_input": false,
37
+ "position_buckets": 256,
38
+ "problem_type": "single_label_classification",
39
+ "relative_attention": true,
40
+ "share_att_key": true,
41
+ "torch_dtype": "float32",
42
+ "transformers_version": "4.38.0.dev0",
43
+ "type_vocab_size": 0,
44
+ "vocab_size": 128100
45
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_accuracy": 0.9921333333333333,
4
+ "eval_loss": 0.03474695608019829,
5
+ "eval_runtime": 410.5726,
6
+ "eval_samples": 60000,
7
+ "eval_samples_per_second": 146.137,
8
+ "eval_steps_per_second": 4.567
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1a84401d5ebf15b9bd0610a1a07447b87d9af5086e8c882f8a7417d063c71f4
3
+ size 737719272
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "[CLS]",
3
+ "cls_token": "[CLS]",
4
+ "eos_token": "[SEP]",
5
+ "mask_token": "[MASK]",
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "unk_token": {
9
+ "content": "[UNK]",
10
+ "lstrip": false,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ }
15
+ }
spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c679fbf93643d19aab7ee10c0b99e460bdbc02fedf34b92b05af343b4af586fd
3
+ size 2464616
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
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "128000": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "[CLS]",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "[CLS]",
47
+ "do_lower_case": false,
48
+ "eos_token": "[SEP]",
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 1000000000000000019884624838656,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "sp_model_kwargs": {},
54
+ "split_by_punct": false,
55
+ "tokenizer_class": "DebertaV2Tokenizer",
56
+ "unk_token": "[UNK]",
57
+ "vocab_type": "spm"
58
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "train_loss": 0.020007819811503093,
4
+ "train_runtime": 9507.2866,
5
+ "train_samples": 480000,
6
+ "train_samples_per_second": 100.975,
7
+ "train_steps_per_second": 1.578
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 15000,
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.07,
13
+ "learning_rate": 1.9333333333333333e-05,
14
+ "loss": 0.0827,
15
+ "step": 500
16
+ },
17
+ {
18
+ "epoch": 0.13,
19
+ "learning_rate": 1.866666666666667e-05,
20
+ "loss": 0.0397,
21
+ "step": 1000
22
+ },
23
+ {
24
+ "epoch": 0.2,
25
+ "learning_rate": 1.8e-05,
26
+ "loss": 0.0337,
27
+ "step": 1500
28
+ },
29
+ {
30
+ "epoch": 0.27,
31
+ "learning_rate": 1.7333333333333336e-05,
32
+ "loss": 0.0327,
33
+ "step": 2000
34
+ },
35
+ {
36
+ "epoch": 0.33,
37
+ "learning_rate": 1.6666666666666667e-05,
38
+ "loss": 0.0313,
39
+ "step": 2500
40
+ },
41
+ {
42
+ "epoch": 0.4,
43
+ "learning_rate": 1.6000000000000003e-05,
44
+ "loss": 0.0272,
45
+ "step": 3000
46
+ },
47
+ {
48
+ "epoch": 0.47,
49
+ "learning_rate": 1.5333333333333334e-05,
50
+ "loss": 0.0236,
51
+ "step": 3500
52
+ },
53
+ {
54
+ "epoch": 0.53,
55
+ "learning_rate": 1.4666666666666666e-05,
56
+ "loss": 0.0263,
57
+ "step": 4000
58
+ },
59
+ {
60
+ "epoch": 0.6,
61
+ "learning_rate": 1.4e-05,
62
+ "loss": 0.0233,
63
+ "step": 4500
64
+ },
65
+ {
66
+ "epoch": 0.67,
67
+ "learning_rate": 1.3333333333333333e-05,
68
+ "loss": 0.0229,
69
+ "step": 5000
70
+ },
71
+ {
72
+ "epoch": 0.73,
73
+ "learning_rate": 1.2666666666666667e-05,
74
+ "loss": 0.022,
75
+ "step": 5500
76
+ },
77
+ {
78
+ "epoch": 0.8,
79
+ "learning_rate": 1.2e-05,
80
+ "loss": 0.0215,
81
+ "step": 6000
82
+ },
83
+ {
84
+ "epoch": 0.87,
85
+ "learning_rate": 1.1333333333333334e-05,
86
+ "loss": 0.0194,
87
+ "step": 6500
88
+ },
89
+ {
90
+ "epoch": 0.93,
91
+ "learning_rate": 1.0666666666666667e-05,
92
+ "loss": 0.0234,
93
+ "step": 7000
94
+ },
95
+ {
96
+ "epoch": 1.0,
97
+ "learning_rate": 1e-05,
98
+ "loss": 0.0182,
99
+ "step": 7500
100
+ },
101
+ {
102
+ "epoch": 1.07,
103
+ "learning_rate": 9.333333333333334e-06,
104
+ "loss": 0.0136,
105
+ "step": 8000
106
+ },
107
+ {
108
+ "epoch": 1.13,
109
+ "learning_rate": 8.666666666666668e-06,
110
+ "loss": 0.0104,
111
+ "step": 8500
112
+ },
113
+ {
114
+ "epoch": 1.2,
115
+ "learning_rate": 8.000000000000001e-06,
116
+ "loss": 0.0121,
117
+ "step": 9000
118
+ },
119
+ {
120
+ "epoch": 1.27,
121
+ "learning_rate": 7.333333333333333e-06,
122
+ "loss": 0.0122,
123
+ "step": 9500
124
+ },
125
+ {
126
+ "epoch": 1.33,
127
+ "learning_rate": 6.666666666666667e-06,
128
+ "loss": 0.0108,
129
+ "step": 10000
130
+ },
131
+ {
132
+ "epoch": 1.4,
133
+ "learning_rate": 6e-06,
134
+ "loss": 0.0107,
135
+ "step": 10500
136
+ },
137
+ {
138
+ "epoch": 1.47,
139
+ "learning_rate": 5.333333333333334e-06,
140
+ "loss": 0.0121,
141
+ "step": 11000
142
+ },
143
+ {
144
+ "epoch": 1.53,
145
+ "learning_rate": 4.666666666666667e-06,
146
+ "loss": 0.0085,
147
+ "step": 11500
148
+ },
149
+ {
150
+ "epoch": 1.6,
151
+ "learning_rate": 4.000000000000001e-06,
152
+ "loss": 0.0079,
153
+ "step": 12000
154
+ },
155
+ {
156
+ "epoch": 1.67,
157
+ "learning_rate": 3.3333333333333333e-06,
158
+ "loss": 0.0086,
159
+ "step": 12500
160
+ },
161
+ {
162
+ "epoch": 1.73,
163
+ "learning_rate": 2.666666666666667e-06,
164
+ "loss": 0.0095,
165
+ "step": 13000
166
+ },
167
+ {
168
+ "epoch": 1.8,
169
+ "learning_rate": 2.0000000000000003e-06,
170
+ "loss": 0.0092,
171
+ "step": 13500
172
+ },
173
+ {
174
+ "epoch": 1.87,
175
+ "learning_rate": 1.3333333333333334e-06,
176
+ "loss": 0.0103,
177
+ "step": 14000
178
+ },
179
+ {
180
+ "epoch": 1.93,
181
+ "learning_rate": 6.666666666666667e-07,
182
+ "loss": 0.0077,
183
+ "step": 14500
184
+ },
185
+ {
186
+ "epoch": 2.0,
187
+ "learning_rate": 0.0,
188
+ "loss": 0.009,
189
+ "step": 15000
190
+ },
191
+ {
192
+ "epoch": 2.0,
193
+ "step": 15000,
194
+ "total_flos": 1.2629557149696e+17,
195
+ "train_loss": 0.020007819811503093,
196
+ "train_runtime": 9507.2866,
197
+ "train_samples_per_second": 100.975,
198
+ "train_steps_per_second": 1.578
199
+ }
200
+ ],
201
+ "logging_steps": 500,
202
+ "max_steps": 15000,
203
+ "num_input_tokens_seen": 0,
204
+ "num_train_epochs": 2,
205
+ "save_steps": 500,
206
+ "total_flos": 1.2629557149696e+17,
207
+ "train_batch_size": 64,
208
+ "trial_name": null,
209
+ "trial_params": null
210
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7401efe3d3c5e93ce21e6db161b08470a4eede364cc4ea93cd79288a998f8de8
3
+ size 4728