jonathanagustin commited on
Commit
72949f0
1 Parent(s): ed9634f

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: distilbert-finetuned-uncased-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
+ # distilbert-finetuned-uncased-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: 1.3930
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
+ | 3.6437 | 0.39 | 100 | 2.1780 |
52
+ | 2.1596 | 0.78 | 200 | 1.6557 |
53
+ | 1.8138 | 1.18 | 300 | 1.5683 |
54
+ | 1.6987 | 1.57 | 400 | 1.5076 |
55
+ | 1.6586 | 1.96 | 500 | 1.5350 |
56
+ | 1.5957 | 1.18 | 600 | 1.4431 |
57
+ | 1.5825 | 1.37 | 700 | 1.4955 |
58
+ | 1.5523 | 1.57 | 800 | 1.4444 |
59
+ | 1.5346 | 1.76 | 900 | 1.3930 |
60
+ | 1.5098 | 1.96 | 1000 | 1.4285 |
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,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/content/drive/My Drive/Colab Notebooks/aai520-project/checkpoints/distilbert-finetuned-uncased/checkpoint-1000",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertForQuestionAnswering"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "initializer_range": 0.02,
12
+ "max_position_embeddings": 512,
13
+ "model_type": "distilbert",
14
+ "n_heads": 12,
15
+ "n_layers": 6,
16
+ "pad_token_id": 0,
17
+ "qa_dropout": 0.1,
18
+ "seq_classif_dropout": 0.2,
19
+ "sinusoidal_pos_embds": false,
20
+ "tie_weights_": true,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.34.1",
23
+ "vocab_size": 30522
24
+ }
metrics.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "exact": 23.347090036216628,
3
+ "f1": 26.869992349988973,
4
+ "total": 11873,
5
+ "HasAns_exact": 38.630229419703106,
6
+ "HasAns_f1": 45.686136837283904,
7
+ "HasAns_total": 5928,
8
+ "NoAns_exact": 8.107653490328007,
9
+ "NoAns_f1": 8.107653490328007,
10
+ "NoAns_total": 5945,
11
+ "best_exact": 50.11370336056599,
12
+ "best_exact_thresh": 0.0,
13
+ "best_f1": 50.11370336056599,
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
+ ## distilbert-finetuned-uncased
15
+
16
+ This model is a fine-tuned version of distilbert-base-uncased for Question Answering on the SQuAD v2 dataset.
17
+
18
+ ## Evaluation Results
19
+ - Exact Match: 23.347090036216628
20
+ - F1 Score: 26.869992349988973
21
+ - Total: 11873
22
+ - Has Answer Exact: 38.630229419703106
23
+ - Has Answer F1: 45.686136837283904
24
+ - Has Answer Total: 5928
25
+ - No Answer Exact: 8.107653490328007
26
+ - No Answer F1: 8.107653490328007
27
+ - No Answer Total: 5945
28
+ - Best Exact: 50.11370336056599
29
+ - Best Exact Threshold: 0.0
30
+ - Best F1: 50.11370336056599
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:703662f67d3e9c690769d54fb804e87a29ff8bf79e3e8252b54853998eb7c3eb
3
+ size 265493026
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "max_length": 512,
49
+ "model_max_length": 512,
50
+ "pad_to_multiple_of": null,
51
+ "pad_token": "[PAD]",
52
+ "pad_token_type_id": 0,
53
+ "padding_side": "right",
54
+ "sep_token": "[SEP]",
55
+ "stride": 128,
56
+ "strip_accents": null,
57
+ "tokenize_chinese_chars": true,
58
+ "tokenizer_class": "DistilBertTokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "only_second",
61
+ "unk_token": "[UNK]"
62
+ }
trainer_state.json ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.393009066581726,
3
+ "best_model_checkpoint": "/content/drive/My Drive/Colab Notebooks/aai520-project/checkpoints/distilbert-finetuned-uncased/checkpoint-900",
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.39,
13
+ "learning_rate": 1.607843137254902e-05,
14
+ "loss": 3.6437,
15
+ "step": 100
16
+ },
17
+ {
18
+ "epoch": 0.39,
19
+ "eval_loss": 2.1780340671539307,
20
+ "eval_runtime": 8.4412,
21
+ "eval_samples_per_second": 1417.927,
22
+ "eval_steps_per_second": 11.136,
23
+ "step": 100
24
+ },
25
+ {
26
+ "epoch": 0.78,
27
+ "learning_rate": 1.215686274509804e-05,
28
+ "loss": 2.1596,
29
+ "step": 200
30
+ },
31
+ {
32
+ "epoch": 0.78,
33
+ "eval_loss": 1.6557185649871826,
34
+ "eval_runtime": 8.3581,
35
+ "eval_samples_per_second": 1432.022,
36
+ "eval_steps_per_second": 11.247,
37
+ "step": 200
38
+ },
39
+ {
40
+ "epoch": 1.18,
41
+ "learning_rate": 8.23529411764706e-06,
42
+ "loss": 1.8138,
43
+ "step": 300
44
+ },
45
+ {
46
+ "epoch": 1.18,
47
+ "eval_loss": 1.5682721138000488,
48
+ "eval_runtime": 8.4191,
49
+ "eval_samples_per_second": 1421.643,
50
+ "eval_steps_per_second": 11.165,
51
+ "step": 300
52
+ },
53
+ {
54
+ "epoch": 1.57,
55
+ "learning_rate": 4.313725490196079e-06,
56
+ "loss": 1.6987,
57
+ "step": 400
58
+ },
59
+ {
60
+ "epoch": 1.57,
61
+ "eval_loss": 1.5075817108154297,
62
+ "eval_runtime": 8.3595,
63
+ "eval_samples_per_second": 1431.779,
64
+ "eval_steps_per_second": 11.245,
65
+ "step": 400
66
+ },
67
+ {
68
+ "epoch": 1.96,
69
+ "learning_rate": 3.921568627450981e-07,
70
+ "loss": 1.6586,
71
+ "step": 500
72
+ },
73
+ {
74
+ "epoch": 1.96,
75
+ "eval_loss": 1.535025715827942,
76
+ "eval_runtime": 8.4289,
77
+ "eval_samples_per_second": 1419.991,
78
+ "eval_steps_per_second": 11.152,
79
+ "step": 500
80
+ },
81
+ {
82
+ "epoch": 1.18,
83
+ "learning_rate": 8.23529411764706e-06,
84
+ "loss": 1.5957,
85
+ "step": 600
86
+ },
87
+ {
88
+ "epoch": 1.18,
89
+ "eval_loss": 1.4431041479110718,
90
+ "eval_runtime": 8.5594,
91
+ "eval_samples_per_second": 1398.342,
92
+ "eval_steps_per_second": 21.964,
93
+ "step": 600
94
+ },
95
+ {
96
+ "epoch": 1.37,
97
+ "learning_rate": 6.274509803921569e-06,
98
+ "loss": 1.5825,
99
+ "step": 700
100
+ },
101
+ {
102
+ "epoch": 1.37,
103
+ "eval_loss": 1.495514154434204,
104
+ "eval_runtime": 8.5285,
105
+ "eval_samples_per_second": 1403.419,
106
+ "eval_steps_per_second": 22.044,
107
+ "step": 700
108
+ },
109
+ {
110
+ "epoch": 1.57,
111
+ "learning_rate": 4.313725490196079e-06,
112
+ "loss": 1.5523,
113
+ "step": 800
114
+ },
115
+ {
116
+ "epoch": 1.57,
117
+ "eval_loss": 1.4444433450698853,
118
+ "eval_runtime": 8.5112,
119
+ "eval_samples_per_second": 1406.272,
120
+ "eval_steps_per_second": 22.089,
121
+ "step": 800
122
+ },
123
+ {
124
+ "epoch": 1.76,
125
+ "learning_rate": 2.3529411764705885e-06,
126
+ "loss": 1.5346,
127
+ "step": 900
128
+ },
129
+ {
130
+ "epoch": 1.76,
131
+ "eval_loss": 1.393009066581726,
132
+ "eval_runtime": 8.5265,
133
+ "eval_samples_per_second": 1403.737,
134
+ "eval_steps_per_second": 22.049,
135
+ "step": 900
136
+ },
137
+ {
138
+ "epoch": 1.96,
139
+ "learning_rate": 3.921568627450981e-07,
140
+ "loss": 1.5098,
141
+ "step": 1000
142
+ },
143
+ {
144
+ "epoch": 1.96,
145
+ "eval_loss": 1.4284701347351074,
146
+ "eval_runtime": 8.5994,
147
+ "eval_samples_per_second": 1391.84,
148
+ "eval_steps_per_second": 21.862,
149
+ "step": 1000
150
+ },
151
+ {
152
+ "epoch": 1.96,
153
+ "step": 1000,
154
+ "total_flos": 5.015589595888435e+16,
155
+ "train_loss": 0.0,
156
+ "train_runtime": 0.3601,
157
+ "train_samples_per_second": 724781.196,
158
+ "train_steps_per_second": 1416.207
159
+ },
160
+ {
161
+ "epoch": 1.96,
162
+ "eval_loss": 1.3930128812789917,
163
+ "eval_runtime": 9.4791,
164
+ "eval_samples_per_second": 1262.677,
165
+ "eval_steps_per_second": 9.917,
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": 5.015589595888435e+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:6a87f249870b023cff0f9cafac8f8d72e450d34b95adf974c8ffc69ce6945fe6
3
+ size 4664
vocab.txt ADDED
The diff for this file is too large to render. See raw diff