du33169 commited on
Commit
9997e64
1 Parent(s): b670d11

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ base_model: FacebookAI/roberta-large
5
+ tags:
6
+ - generated_from_trainer
7
+ datasets:
8
+ - glue
9
+ metrics:
10
+ - accuracy
11
+ model-index:
12
+ - name: QNLI
13
+ results:
14
+ - task:
15
+ name: Text Classification
16
+ type: text-classification
17
+ dataset:
18
+ name: GLUE QNLI
19
+ type: glue
20
+ args: qnli
21
+ metrics:
22
+ - name: Accuracy
23
+ type: accuracy
24
+ value: 0.9450851180669961
25
+ ---
26
+
27
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
28
+ should probably proofread and complete it, then remove this comment. -->
29
+
30
+ # QNLI
31
+
32
+ This model is a fine-tuned version of [FacebookAI/roberta-large](https://huggingface.co/FacebookAI/roberta-large) on the GLUE QNLI dataset.
33
+ It achieves the following results on the evaluation set:
34
+ - Loss: 0.2250
35
+ - Accuracy: 0.9451
36
+
37
+ ## Model description
38
+
39
+ More information needed
40
+
41
+ ## Intended uses & limitations
42
+
43
+ More information needed
44
+
45
+ ## Training and evaluation data
46
+
47
+ More information needed
48
+
49
+ ## Training procedure
50
+
51
+ ### Training hyperparameters
52
+
53
+ The following hyperparameters were used during training:
54
+ - learning_rate: 2e-05
55
+ - train_batch_size: 64
56
+ - eval_batch_size: 8
57
+ - seed: 42
58
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
59
+ - lr_scheduler_type: linear
60
+ - num_epochs: 6.0
61
+
62
+ ### Training results
63
+
64
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
65
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|
66
+ | 0.2269 | 1.0 | 1637 | 0.1639 | 0.9363 |
67
+ | 0.1637 | 2.0 | 3274 | 0.1718 | 0.9372 |
68
+ | 0.0977 | 3.0 | 4911 | 0.1788 | 0.9425 |
69
+ | 0.0672 | 4.0 | 6548 | 0.2250 | 0.9451 |
70
+ | 0.0437 | 5.0 | 8185 | 0.2863 | 0.9431 |
71
+ | 0.0289 | 6.0 | 9822 | 0.3216 | 0.9438 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.43.3
77
+ - Pytorch 1.11.0+cu113
78
+ - Datasets 2.20.0
79
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "eval_accuracy": 0.9450851180669961,
4
+ "eval_loss": 0.22500622272491455,
5
+ "eval_runtime": 21.7772,
6
+ "eval_samples": 5463,
7
+ "eval_samples_per_second": 250.858,
8
+ "eval_steps_per_second": 31.363,
9
+ "train_loss": 0.11072125577606219,
10
+ "train_runtime": 6983.3562,
11
+ "train_samples": 104743,
12
+ "train_samples_per_second": 89.994,
13
+ "train_steps_per_second": 1.406
14
+ }
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "FacebookAI/roberta-large",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "finetuning_task": "qnli",
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4096,
16
+ "label2id": {
17
+ "entailment": 0,
18
+ "not_entailment": 1
19
+ },
20
+ "layer_norm_eps": 1e-05,
21
+ "max_position_embeddings": 514,
22
+ "model_type": "roberta",
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 24,
25
+ "pad_token_id": 1,
26
+ "position_embedding_type": "absolute",
27
+ "problem_type": "single_label_classification",
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.43.3",
30
+ "type_vocab_size": 1,
31
+ "use_cache": true,
32
+ "vocab_size": 50265
33
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "eval_accuracy": 0.9450851180669961,
4
+ "eval_loss": 0.22500622272491455,
5
+ "eval_runtime": 21.7772,
6
+ "eval_samples": 5463,
7
+ "eval_samples_per_second": 250.858,
8
+ "eval_steps_per_second": 31.363
9
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90f8102aaaf5f515b252790cff8cc8964b8a57b92cf8916a6175fff92b95b9da
3
+ size 1421495416
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 1000000000000000019884624838656,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
57
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "train_loss": 0.11072125577606219,
4
+ "train_runtime": 6983.3562,
5
+ "train_samples": 104743,
6
+ "train_samples_per_second": 89.994,
7
+ "train_steps_per_second": 1.406
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9450851180669961,
3
+ "best_model_checkpoint": "output/fine_tuned/roberta-large/QNLI/checkpoint-6548",
4
+ "epoch": 6.0,
5
+ "eval_steps": 500,
6
+ "global_step": 9822,
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.30543677458766033,
13
+ "grad_norm": 11.247173309326172,
14
+ "learning_rate": 1.8981877418041133e-05,
15
+ "loss": 0.3568,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.6108735491753207,
20
+ "grad_norm": 10.365036010742188,
21
+ "learning_rate": 1.7963754836082265e-05,
22
+ "loss": 0.2495,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.916310323762981,
27
+ "grad_norm": 10.150346755981445,
28
+ "learning_rate": 1.69456322541234e-05,
29
+ "loss": 0.2269,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 1.0,
34
+ "eval_accuracy": 0.9362987369577156,
35
+ "eval_loss": 0.16394878923892975,
36
+ "eval_runtime": 21.9619,
37
+ "eval_samples_per_second": 248.749,
38
+ "eval_steps_per_second": 31.099,
39
+ "step": 1637
40
+ },
41
+ {
42
+ "epoch": 1.2217470983506413,
43
+ "grad_norm": 3.6020638942718506,
44
+ "learning_rate": 1.592750967216453e-05,
45
+ "loss": 0.1745,
46
+ "step": 2000
47
+ },
48
+ {
49
+ "epoch": 1.5271838729383018,
50
+ "grad_norm": 6.046133518218994,
51
+ "learning_rate": 1.4909387090205662e-05,
52
+ "loss": 0.152,
53
+ "step": 2500
54
+ },
55
+ {
56
+ "epoch": 1.832620647525962,
57
+ "grad_norm": 8.392080307006836,
58
+ "learning_rate": 1.3891264508246794e-05,
59
+ "loss": 0.1637,
60
+ "step": 3000
61
+ },
62
+ {
63
+ "epoch": 2.0,
64
+ "eval_accuracy": 0.9372139849899322,
65
+ "eval_loss": 0.1717752367258072,
66
+ "eval_runtime": 21.9471,
67
+ "eval_samples_per_second": 248.916,
68
+ "eval_steps_per_second": 31.12,
69
+ "step": 3274
70
+ },
71
+ {
72
+ "epoch": 2.1380574221136226,
73
+ "grad_norm": 8.249826431274414,
74
+ "learning_rate": 1.2873141926287927e-05,
75
+ "loss": 0.1264,
76
+ "step": 3500
77
+ },
78
+ {
79
+ "epoch": 2.4434941967012827,
80
+ "grad_norm": 11.953063011169434,
81
+ "learning_rate": 1.1855019344329057e-05,
82
+ "loss": 0.0972,
83
+ "step": 4000
84
+ },
85
+ {
86
+ "epoch": 2.748930971288943,
87
+ "grad_norm": 10.987544059753418,
88
+ "learning_rate": 1.083689676237019e-05,
89
+ "loss": 0.0977,
90
+ "step": 4500
91
+ },
92
+ {
93
+ "epoch": 3.0,
94
+ "eval_accuracy": 0.9425224235767893,
95
+ "eval_loss": 0.17880001664161682,
96
+ "eval_runtime": 21.9406,
97
+ "eval_samples_per_second": 248.991,
98
+ "eval_steps_per_second": 31.13,
99
+ "step": 4911
100
+ },
101
+ {
102
+ "epoch": 3.0543677458766036,
103
+ "grad_norm": 7.250609874725342,
104
+ "learning_rate": 9.818774180411322e-06,
105
+ "loss": 0.0931,
106
+ "step": 5000
107
+ },
108
+ {
109
+ "epoch": 3.359804520464264,
110
+ "grad_norm": 13.711064338684082,
111
+ "learning_rate": 8.800651598452455e-06,
112
+ "loss": 0.063,
113
+ "step": 5500
114
+ },
115
+ {
116
+ "epoch": 3.665241295051924,
117
+ "grad_norm": 13.753935813903809,
118
+ "learning_rate": 7.782529016493586e-06,
119
+ "loss": 0.0648,
120
+ "step": 6000
121
+ },
122
+ {
123
+ "epoch": 3.9706780696395847,
124
+ "grad_norm": 24.30721664428711,
125
+ "learning_rate": 6.764406434534719e-06,
126
+ "loss": 0.0672,
127
+ "step": 6500
128
+ },
129
+ {
130
+ "epoch": 4.0,
131
+ "eval_accuracy": 0.9450851180669961,
132
+ "eval_loss": 0.22500622272491455,
133
+ "eval_runtime": 21.9639,
134
+ "eval_samples_per_second": 248.726,
135
+ "eval_steps_per_second": 31.096,
136
+ "step": 6548
137
+ },
138
+ {
139
+ "epoch": 4.276114844227245,
140
+ "grad_norm": 12.191655158996582,
141
+ "learning_rate": 5.74628385257585e-06,
142
+ "loss": 0.0443,
143
+ "step": 7000
144
+ },
145
+ {
146
+ "epoch": 4.581551618814905,
147
+ "grad_norm": 18.065465927124023,
148
+ "learning_rate": 4.728161270616982e-06,
149
+ "loss": 0.0444,
150
+ "step": 7500
151
+ },
152
+ {
153
+ "epoch": 4.886988393402565,
154
+ "grad_norm": 6.896982669830322,
155
+ "learning_rate": 3.7100386886581147e-06,
156
+ "loss": 0.0437,
157
+ "step": 8000
158
+ },
159
+ {
160
+ "epoch": 5.0,
161
+ "eval_accuracy": 0.9430715723961194,
162
+ "eval_loss": 0.2863176465034485,
163
+ "eval_runtime": 21.9571,
164
+ "eval_samples_per_second": 248.803,
165
+ "eval_steps_per_second": 31.106,
166
+ "step": 8185
167
+ },
168
+ {
169
+ "epoch": 5.192425167990226,
170
+ "grad_norm": 0.14475573599338531,
171
+ "learning_rate": 2.6919161066992467e-06,
172
+ "loss": 0.034,
173
+ "step": 8500
174
+ },
175
+ {
176
+ "epoch": 5.497861942577886,
177
+ "grad_norm": 0.1549614816904068,
178
+ "learning_rate": 1.6737935247403788e-06,
179
+ "loss": 0.0297,
180
+ "step": 9000
181
+ },
182
+ {
183
+ "epoch": 5.803298717165546,
184
+ "grad_norm": 23.986265182495117,
185
+ "learning_rate": 6.55670942781511e-07,
186
+ "loss": 0.0289,
187
+ "step": 9500
188
+ },
189
+ {
190
+ "epoch": 6.0,
191
+ "eval_accuracy": 0.9438037708218927,
192
+ "eval_loss": 0.32157793641090393,
193
+ "eval_runtime": 21.9268,
194
+ "eval_samples_per_second": 249.147,
195
+ "eval_steps_per_second": 31.149,
196
+ "step": 9822
197
+ },
198
+ {
199
+ "epoch": 6.0,
200
+ "step": 9822,
201
+ "total_flos": 1.4641993018359706e+17,
202
+ "train_loss": 0.11072125577606219,
203
+ "train_runtime": 6983.3562,
204
+ "train_samples_per_second": 89.994,
205
+ "train_steps_per_second": 1.406
206
+ }
207
+ ],
208
+ "logging_steps": 500,
209
+ "max_steps": 9822,
210
+ "num_input_tokens_seen": 0,
211
+ "num_train_epochs": 6,
212
+ "save_steps": 500,
213
+ "stateful_callbacks": {
214
+ "TrainerControl": {
215
+ "args": {
216
+ "should_epoch_stop": false,
217
+ "should_evaluate": false,
218
+ "should_log": false,
219
+ "should_save": true,
220
+ "should_training_stop": true
221
+ },
222
+ "attributes": {}
223
+ }
224
+ },
225
+ "total_flos": 1.4641993018359706e+17,
226
+ "train_batch_size": 64,
227
+ "trial_name": null,
228
+ "trial_params": null
229
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ba283463e935b6d11e62b41fdcd8f49b5c67501faf80e19c4619e31cf9f8b9a
3
+ size 4783
vocab.json ADDED
The diff for this file is too large to render. See raw diff