anas-awadalla commited on
Commit
ac50b19
1 Parent(s): 70a5298

Upload 13 files

Browse files
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - squad
6
+ model-index:
7
+ - name: spanbert-large-squad
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
+ # spanbert-large-squad
15
+
16
+ This model is a fine-tuned version of [SpanBERT/spanbert-large-cased](https://huggingface.co/SpanBERT/spanbert-large-cased) on the squad dataset.
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 3e-05
36
+ - train_batch_size: 8
37
+ - eval_batch_size: 32
38
+ - seed: 42
39
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
40
+ - lr_scheduler_type: linear
41
+ - num_epochs: 2.0
42
+
43
+ ### Training results
44
+
45
+
46
+
47
+ ### Framework versions
48
+
49
+ - Transformers 4.18.0.dev0
50
+ - Pytorch 1.11.0+cu113
51
+ - Datasets 2.0.0
52
+ - Tokenizers 0.11.6
all_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_exact_match": 87.30368968779565,
4
+ "eval_f1": 93.42445743768727,
5
+ "eval_samples": 10895,
6
+ "train_loss": 0.7862384369251657,
7
+ "train_runtime": 27653.2865,
8
+ "train_samples": 89357,
9
+ "train_samples_per_second": 6.463,
10
+ "train_steps_per_second": 0.808
11
+ }
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "SpanBERT/spanbert-large-cased",
3
+ "architectures": [
4
+ "BertForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 1024,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 4096,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 16,
18
+ "num_hidden_layers": 24,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.18.0.dev0",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 28996
26
+ }
eval_predictions.json ADDED
The diff for this file is too large to render. See raw diff
 
eval_results.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "eval_exact_match": 87.30368968779565,
4
+ "eval_f1": 93.42445743768727,
5
+ "eval_samples": 10895
6
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:edbe961db66da5afe4bdf74b56b3cad7a671fc7277448063f652f55d014cb43f
3
+ size 1330289585
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "special_tokens_map_file": null, "name_or_path": "SpanBERT/spanbert-large-cased", "do_basic_tokenize": true, "never_split": null, "tokenizer_class": "BertTokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "train_loss": 0.7862384369251657,
4
+ "train_runtime": 27653.2865,
5
+ "train_samples": 89357,
6
+ "train_samples_per_second": 6.463,
7
+ "train_steps_per_second": 0.808
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.0,
5
+ "global_step": 22340,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.04,
12
+ "learning_rate": 2.9328558639212178e-05,
13
+ "loss": 2.0835,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.09,
18
+ "learning_rate": 2.865711727842435e-05,
19
+ "loss": 1.2634,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.13,
24
+ "learning_rate": 2.798567591763653e-05,
25
+ "loss": 1.1116,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.18,
30
+ "learning_rate": 2.7314234556848706e-05,
31
+ "loss": 1.0549,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.22,
36
+ "learning_rate": 2.6642793196060876e-05,
37
+ "loss": 1.0491,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.27,
42
+ "learning_rate": 2.5971351835273053e-05,
43
+ "loss": 1.0099,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.31,
48
+ "learning_rate": 2.529991047448523e-05,
49
+ "loss": 0.9937,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 0.36,
54
+ "learning_rate": 2.4628469113697404e-05,
55
+ "loss": 0.9877,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 0.4,
60
+ "learning_rate": 2.395702775290958e-05,
61
+ "loss": 0.9661,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 0.45,
66
+ "learning_rate": 2.3285586392121754e-05,
67
+ "loss": 0.9319,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 0.49,
72
+ "learning_rate": 2.261414503133393e-05,
73
+ "loss": 0.9603,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 0.54,
78
+ "learning_rate": 2.194270367054611e-05,
79
+ "loss": 0.9003,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 0.58,
84
+ "learning_rate": 2.1271262309758282e-05,
85
+ "loss": 0.9247,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 0.63,
90
+ "learning_rate": 2.0599820948970456e-05,
91
+ "loss": 0.8945,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 0.67,
96
+ "learning_rate": 1.9928379588182633e-05,
97
+ "loss": 0.8796,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 0.72,
102
+ "learning_rate": 1.9256938227394806e-05,
103
+ "loss": 0.8889,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 0.76,
108
+ "learning_rate": 1.8585496866606983e-05,
109
+ "loss": 0.874,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 0.81,
114
+ "learning_rate": 1.791405550581916e-05,
115
+ "loss": 0.8714,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 0.85,
120
+ "learning_rate": 1.7242614145031334e-05,
121
+ "loss": 0.8597,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 0.9,
126
+ "learning_rate": 1.657117278424351e-05,
127
+ "loss": 0.8679,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 0.94,
132
+ "learning_rate": 1.5899731423455688e-05,
133
+ "loss": 0.8457,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 0.98,
138
+ "learning_rate": 1.522829006266786e-05,
139
+ "loss": 0.845,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 1.03,
144
+ "learning_rate": 1.4556848701880037e-05,
145
+ "loss": 0.6936,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 1.07,
150
+ "learning_rate": 1.3885407341092211e-05,
151
+ "loss": 0.5779,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 1.12,
156
+ "learning_rate": 1.3213965980304386e-05,
157
+ "loss": 0.5945,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 1.16,
162
+ "learning_rate": 1.2542524619516563e-05,
163
+ "loss": 0.6197,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 1.21,
168
+ "learning_rate": 1.1871083258728739e-05,
169
+ "loss": 0.5957,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 1.25,
174
+ "learning_rate": 1.1199641897940914e-05,
175
+ "loss": 0.6061,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 1.3,
180
+ "learning_rate": 1.0528200537153088e-05,
181
+ "loss": 0.6015,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 1.34,
186
+ "learning_rate": 9.856759176365265e-06,
187
+ "loss": 0.581,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 1.39,
192
+ "learning_rate": 9.18531781557744e-06,
193
+ "loss": 0.5711,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 1.43,
198
+ "learning_rate": 8.513876454789615e-06,
199
+ "loss": 0.6045,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 1.48,
204
+ "learning_rate": 7.84243509400179e-06,
205
+ "loss": 0.5616,
206
+ "step": 16500
207
+ },
208
+ {
209
+ "epoch": 1.52,
210
+ "learning_rate": 7.170993733213966e-06,
211
+ "loss": 0.5823,
212
+ "step": 17000
213
+ },
214
+ {
215
+ "epoch": 1.57,
216
+ "learning_rate": 6.4995523724261414e-06,
217
+ "loss": 0.5662,
218
+ "step": 17500
219
+ },
220
+ {
221
+ "epoch": 1.61,
222
+ "learning_rate": 5.828111011638317e-06,
223
+ "loss": 0.557,
224
+ "step": 18000
225
+ },
226
+ {
227
+ "epoch": 1.66,
228
+ "learning_rate": 5.156669650850493e-06,
229
+ "loss": 0.5472,
230
+ "step": 18500
231
+ },
232
+ {
233
+ "epoch": 1.7,
234
+ "learning_rate": 4.4852282900626675e-06,
235
+ "loss": 0.5643,
236
+ "step": 19000
237
+ },
238
+ {
239
+ "epoch": 1.75,
240
+ "learning_rate": 3.8137869292748437e-06,
241
+ "loss": 0.5451,
242
+ "step": 19500
243
+ },
244
+ {
245
+ "epoch": 1.79,
246
+ "learning_rate": 3.142345568487019e-06,
247
+ "loss": 0.5431,
248
+ "step": 20000
249
+ },
250
+ {
251
+ "epoch": 1.84,
252
+ "learning_rate": 2.4709042076991944e-06,
253
+ "loss": 0.568,
254
+ "step": 20500
255
+ },
256
+ {
257
+ "epoch": 1.88,
258
+ "learning_rate": 1.7994628469113698e-06,
259
+ "loss": 0.5439,
260
+ "step": 21000
261
+ },
262
+ {
263
+ "epoch": 1.92,
264
+ "learning_rate": 1.1280214861235453e-06,
265
+ "loss": 0.5323,
266
+ "step": 21500
267
+ },
268
+ {
269
+ "epoch": 1.97,
270
+ "learning_rate": 4.565801253357207e-07,
271
+ "loss": 0.5353,
272
+ "step": 22000
273
+ },
274
+ {
275
+ "epoch": 2.0,
276
+ "step": 22340,
277
+ "total_flos": 1.2447970604337254e+17,
278
+ "train_loss": 0.7862384369251657,
279
+ "train_runtime": 27653.2865,
280
+ "train_samples_per_second": 6.463,
281
+ "train_steps_per_second": 0.808
282
+ }
283
+ ],
284
+ "max_steps": 22340,
285
+ "num_train_epochs": 2,
286
+ "total_flos": 1.2447970604337254e+17,
287
+ "trial_name": null,
288
+ "trial_params": null
289
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a309113f05695330d62032c4413b31b64c1c909fdb7ee5a410409acc1d9e5de
3
+ size 2991
vocab.txt ADDED
The diff for this file is too large to render. See raw diff