jonathanagustin commited on
Commit
09fb982
1 Parent(s): 1e83338

Model save

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - squad_v2
6
+ model-index:
7
+ - name: roberta-finetuned-squad_v2
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # roberta-finetuned-squad_v2
15
+
16
+ This model was trained from scratch on the squad_v2 dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.9064
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 2e-05
38
+ - train_batch_size: 128
39
+ - eval_batch_size: 128
40
+ - seed: 42
41
+ - gradient_accumulation_steps: 4
42
+ - total_train_batch_size: 512
43
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 1
46
+
47
+ ### Training results
48
+
49
+ | Training Loss | Epoch | Step | Validation Loss |
50
+ |:-------------:|:-----:|:----:|:---------------:|
51
+ | 2.9129 | 0.2 | 100 | 1.4700 |
52
+ | 1.4395 | 0.39 | 200 | 1.2407 |
53
+ | 1.2356 | 0.59 | 300 | 1.0325 |
54
+ | 1.1284 | 0.78 | 400 | 0.9750 |
55
+ | 1.0821 | 0.98 | 500 | 0.9345 |
56
+ | 0.9978 | 1.18 | 600 | 0.9893 |
57
+ | 0.9697 | 1.37 | 700 | 0.9300 |
58
+ | 0.9455 | 1.57 | 800 | 0.9351 |
59
+ | 0.9322 | 1.76 | 900 | 0.9451 |
60
+ | 0.9269 | 1.96 | 1000 | 0.9064 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.34.1
66
+ - Pytorch 2.1.0+cu118
67
+ - Datasets 2.14.5
68
+ - Tokenizers 0.14.1
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/content/drive/My Drive/Colab Notebooks/aai520-project/checkpoints/roberta-finetuned/checkpoint-1000",
3
+ "architectures": [
4
+ "RobertaForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.34.1",
24
+ "type_vocab_size": 1,
25
+ "use_cache": true,
26
+ "vocab_size": 50265
27
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
metrics.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "exact": 37.40419439063421,
3
+ "f1": 40.42817816263742,
4
+ "total": 11873,
5
+ "HasAns_exact": 72.58771929824562,
6
+ "HasAns_f1": 78.64435886049151,
7
+ "HasAns_total": 5928,
8
+ "NoAns_exact": 2.3212783851976453,
9
+ "NoAns_f1": 2.3212783851976453,
10
+ "NoAns_total": 5945,
11
+ "best_exact": 50.09685841825992,
12
+ "best_exact_thresh": 0.0,
13
+ "best_f1": 50.09685841825992,
14
+ "best_f1_thresh": 0.0
15
+ }
model_card.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ language:
4
+ - en
5
+ tags:
6
+ - question-answering
7
+ - fine-tuned
8
+ datasets:
9
+ - squad_v2
10
+ metrics:
11
+ - squad
12
+ ---
13
+
14
+ ## roberta-finetuned
15
+
16
+ This model is a fine-tuned version of roberta-base for Question Answering on the SQuAD v2 dataset.
17
+
18
+ ## Evaluation Results
19
+ - Exact Match: 37.40419439063421
20
+ - F1 Score: 40.42817816263742
21
+ - Total: 11873
22
+ - Has Answer Exact: 72.58771929824562
23
+ - Has Answer F1: 78.64435886049151
24
+ - Has Answer Total: 5928
25
+ - No Answer Exact: 2.3212783851976453
26
+ - No Answer F1: 2.3212783851976453
27
+ - No Answer Total: 5945
28
+ - Best Exact: 50.09685841825992
29
+ - Best Exact Threshold: 0.0
30
+ - Best F1: 50.09685841825992
31
+ - Best F1 Threshold: 0.0
32
+
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33f7cf441493e72909629a82d2c0fe91b53e0be257030ae6bd2508f535036fef
3
+ size 496295078
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,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 512,
52
+ "model_max_length": 512,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "<pad>",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "</s>",
58
+ "stride": 128,
59
+ "tokenizer_class": "RobertaTokenizer",
60
+ "trim_offsets": true,
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "only_second",
63
+ "unk_token": "<unk>"
64
+ }
trainer_state.json ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.9063502550125122,
3
+ "best_model_checkpoint": "/content/drive/My Drive/Colab Notebooks/aai520-project/checkpoints/roberta-finetuned/checkpoint-1000",
4
+ "epoch": 1.9607843137254903,
5
+ "eval_steps": 100,
6
+ "global_step": 1000,
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.2,
13
+ "learning_rate": 1.811764705882353e-05,
14
+ "loss": 2.9129,
15
+ "step": 100
16
+ },
17
+ {
18
+ "epoch": 0.2,
19
+ "eval_loss": 1.4699586629867554,
20
+ "eval_runtime": 17.6815,
21
+ "eval_samples_per_second": 676.131,
22
+ "eval_steps_per_second": 10.576,
23
+ "step": 100
24
+ },
25
+ {
26
+ "epoch": 0.39,
27
+ "learning_rate": 1.6176470588235296e-05,
28
+ "loss": 1.4395,
29
+ "step": 200
30
+ },
31
+ {
32
+ "epoch": 0.39,
33
+ "eval_loss": 1.240740418434143,
34
+ "eval_runtime": 17.6813,
35
+ "eval_samples_per_second": 676.14,
36
+ "eval_steps_per_second": 10.576,
37
+ "step": 200
38
+ },
39
+ {
40
+ "epoch": 0.59,
41
+ "learning_rate": 1.4215686274509805e-05,
42
+ "loss": 1.2356,
43
+ "step": 300
44
+ },
45
+ {
46
+ "epoch": 0.59,
47
+ "eval_loss": 1.0324599742889404,
48
+ "eval_runtime": 17.7184,
49
+ "eval_samples_per_second": 674.723,
50
+ "eval_steps_per_second": 10.554,
51
+ "step": 300
52
+ },
53
+ {
54
+ "epoch": 0.78,
55
+ "learning_rate": 1.2254901960784315e-05,
56
+ "loss": 1.1284,
57
+ "step": 400
58
+ },
59
+ {
60
+ "epoch": 0.78,
61
+ "eval_loss": 0.9749970436096191,
62
+ "eval_runtime": 17.7173,
63
+ "eval_samples_per_second": 674.763,
64
+ "eval_steps_per_second": 10.555,
65
+ "step": 400
66
+ },
67
+ {
68
+ "epoch": 0.98,
69
+ "learning_rate": 1.0294117647058823e-05,
70
+ "loss": 1.0821,
71
+ "step": 500
72
+ },
73
+ {
74
+ "epoch": 0.98,
75
+ "eval_loss": 0.9345471858978271,
76
+ "eval_runtime": 17.7101,
77
+ "eval_samples_per_second": 675.038,
78
+ "eval_steps_per_second": 10.559,
79
+ "step": 500
80
+ },
81
+ {
82
+ "epoch": 1.18,
83
+ "learning_rate": 8.333333333333334e-06,
84
+ "loss": 0.9978,
85
+ "step": 600
86
+ },
87
+ {
88
+ "epoch": 1.18,
89
+ "eval_loss": 0.9892988801002502,
90
+ "eval_runtime": 17.6864,
91
+ "eval_samples_per_second": 675.943,
92
+ "eval_steps_per_second": 10.573,
93
+ "step": 600
94
+ },
95
+ {
96
+ "epoch": 1.37,
97
+ "learning_rate": 6.372549019607843e-06,
98
+ "loss": 0.9697,
99
+ "step": 700
100
+ },
101
+ {
102
+ "epoch": 1.37,
103
+ "eval_loss": 0.9299613237380981,
104
+ "eval_runtime": 17.7225,
105
+ "eval_samples_per_second": 674.565,
106
+ "eval_steps_per_second": 10.552,
107
+ "step": 700
108
+ },
109
+ {
110
+ "epoch": 1.57,
111
+ "learning_rate": 4.411764705882353e-06,
112
+ "loss": 0.9455,
113
+ "step": 800
114
+ },
115
+ {
116
+ "epoch": 1.57,
117
+ "eval_loss": 0.9351199865341187,
118
+ "eval_runtime": 17.7361,
119
+ "eval_samples_per_second": 674.051,
120
+ "eval_steps_per_second": 10.543,
121
+ "step": 800
122
+ },
123
+ {
124
+ "epoch": 1.76,
125
+ "learning_rate": 2.450980392156863e-06,
126
+ "loss": 0.9322,
127
+ "step": 900
128
+ },
129
+ {
130
+ "epoch": 1.76,
131
+ "eval_loss": 0.9450510144233704,
132
+ "eval_runtime": 17.7032,
133
+ "eval_samples_per_second": 675.301,
134
+ "eval_steps_per_second": 10.563,
135
+ "step": 900
136
+ },
137
+ {
138
+ "epoch": 1.96,
139
+ "learning_rate": 4.901960784313725e-07,
140
+ "loss": 0.9269,
141
+ "step": 1000
142
+ },
143
+ {
144
+ "epoch": 1.96,
145
+ "eval_loss": 0.9063502550125122,
146
+ "eval_runtime": 17.6937,
147
+ "eval_samples_per_second": 675.663,
148
+ "eval_steps_per_second": 10.569,
149
+ "step": 1000
150
+ },
151
+ {
152
+ "epoch": 1.96,
153
+ "step": 1000,
154
+ "total_flos": 6.688961805360538e+16,
155
+ "train_loss": 0.0,
156
+ "train_runtime": 0.5646,
157
+ "train_samples_per_second": 462448.203,
158
+ "train_steps_per_second": 903.281
159
+ },
160
+ {
161
+ "epoch": 1.96,
162
+ "eval_loss": 0.9063528180122375,
163
+ "eval_runtime": 17.3728,
164
+ "eval_samples_per_second": 688.145,
165
+ "eval_steps_per_second": 5.411,
166
+ "step": 1000
167
+ }
168
+ ],
169
+ "logging_steps": 100,
170
+ "max_steps": 510,
171
+ "num_train_epochs": 2,
172
+ "save_steps": 100,
173
+ "total_flos": 6.688961805360538e+16,
174
+ "trial_name": null,
175
+ "trial_params": null
176
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c38402081e29ac8ee9e727b8756c0fd6650f5c2f87de20c1e0ce9d11d10ba63
3
+ size 4664
vocab.json ADDED
The diff for this file is too large to render. See raw diff