frankkuete commited on
Commit
735bbee
1 Parent(s): 7758b63

Upload with huggingface_hub (#1)

Browse files

- Upload with huggingface_hub (59f024dca35bf31ec8de2a1fb02d7c205319df7e)

.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ predict_nbest_predictions.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,53 @@
1
  ---
2
- license: unknown
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - cuad
7
+ model-index:
8
+ - name: electra-large
9
+ results: []
10
  ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # electra-large
16
+
17
+ This model is a fine-tuned version of [google/electra-large-discriminator](https://huggingface.co/google/electra-large-discriminator) on the cuad dataset.
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 1e-05
37
+ - train_batch_size: 8
38
+ - eval_batch_size: 32
39
+ - seed: 42
40
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
41
+ - lr_scheduler_type: linear
42
+ - num_epochs: 6.0
43
+
44
+ ### Training results
45
+
46
+
47
+
48
+ ### Framework versions
49
+
50
+ - Transformers 4.27.4
51
+ - Pytorch 2.0.0+cu117
52
+ - Datasets 2.11.0
53
+ - Tokenizers 0.13.2
all_results.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "predict_samples": 200910,
4
+ "test_HasAns_exact": 73.47266881028939,
5
+ "test_HasAns_f1": 84.84782944132844,
6
+ "test_HasAns_total": 1244,
7
+ "test_NoAns_exact": 77.19537100068074,
8
+ "test_NoAns_f1": 77.19537100068074,
9
+ "test_NoAns_total": 2938,
10
+ "test_best_exact": 76.42276422764228,
11
+ "test_best_exact_thresh": 0.0,
12
+ "test_best_f1": 79.78743515239424,
13
+ "test_best_f1_thresh": 0.0,
14
+ "test_exact": 76.0879961740794,
15
+ "test_f1": 79.4717120576309,
16
+ "test_runtime": 4793.2495,
17
+ "test_samples_per_second": 41.915,
18
+ "test_steps_per_second": 1.31,
19
+ "test_total": 4182,
20
+ "train_loss": 0.6195740632728837,
21
+ "train_runtime": 17430.5797,
22
+ "train_samples": 38499,
23
+ "train_samples_per_second": 13.252,
24
+ "train_steps_per_second": 1.657
25
+ }
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/electra-large-discriminator",
3
+ "architectures": [
4
+ "ElectraForQuestionAnswering"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "embedding_size": 1024,
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": "electra",
17
+ "num_attention_heads": 16,
18
+ "num_hidden_layers": 24,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "summary_activation": "gelu",
22
+ "summary_last_dropout": 0.1,
23
+ "summary_type": "first",
24
+ "summary_use_proj": true,
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.27.4",
27
+ "type_vocab_size": 2,
28
+ "use_cache": true,
29
+ "vocab_size": 30522
30
+ }
predict_nbest_predictions.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d50b495008e7b39dcd181811de67446208cf53004cf12287c97082c9fefa6bd
3
+ size 45512922
predict_null_odds.json ADDED
The diff for this file is too large to render. See raw diff
 
predict_predictions.json ADDED
The diff for this file is too large to render. See raw diff
 
predict_results.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "predict_samples": 200910,
3
+ "test_HasAns_exact": 73.47266881028939,
4
+ "test_HasAns_f1": 84.84782944132844,
5
+ "test_HasAns_total": 1244,
6
+ "test_NoAns_exact": 77.19537100068074,
7
+ "test_NoAns_f1": 77.19537100068074,
8
+ "test_NoAns_total": 2938,
9
+ "test_best_exact": 76.42276422764228,
10
+ "test_best_exact_thresh": 0.0,
11
+ "test_best_f1": 79.78743515239424,
12
+ "test_best_f1_thresh": 0.0,
13
+ "test_exact": 76.0879961740794,
14
+ "test_f1": 79.4717120576309,
15
+ "test_runtime": 4793.2495,
16
+ "test_samples_per_second": 41.915,
17
+ "test_steps_per_second": 1.31,
18
+ "test_total": 4182
19
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:803eb15fb2b4e00b67a3ccf1d4a68ed4a2e18049b88f717dc7bcbb6d816ccb5e
3
+ size 1336516717
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "do_lower_case": true,
4
+ "mask_token": "[MASK]",
5
+ "model_max_length": 512,
6
+ "pad_token": "[PAD]",
7
+ "sep_token": "[SEP]",
8
+ "special_tokens_map_file": null,
9
+ "strip_accents": null,
10
+ "tokenize_chinese_chars": true,
11
+ "tokenizer_class": "ElectraTokenizer",
12
+ "unk_token": "[UNK]",
13
+ "use_fast": true
14
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 6.0,
3
+ "train_loss": 0.6195740632728837,
4
+ "train_runtime": 17430.5797,
5
+ "train_samples": 38499,
6
+ "train_samples_per_second": 13.252,
7
+ "train_steps_per_second": 1.657
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,367 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 6.0,
5
+ "global_step": 28878,
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.1,
12
+ "learning_rate": 9.826857815638203e-06,
13
+ "loss": 2.1589,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.21,
18
+ "learning_rate": 9.653715631276405e-06,
19
+ "loss": 1.0548,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.31,
24
+ "learning_rate": 9.480573446914607e-06,
25
+ "loss": 0.9587,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.42,
30
+ "learning_rate": 9.30743126255281e-06,
31
+ "loss": 1.1204,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.52,
36
+ "learning_rate": 9.13428907819101e-06,
37
+ "loss": 0.9001,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.62,
42
+ "learning_rate": 8.961146893829214e-06,
43
+ "loss": 0.8905,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 0.73,
48
+ "learning_rate": 8.788004709467416e-06,
49
+ "loss": 0.8545,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 0.83,
54
+ "learning_rate": 8.614862525105618e-06,
55
+ "loss": 0.8632,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 0.93,
60
+ "learning_rate": 8.44172034074382e-06,
61
+ "loss": 0.8803,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 1.04,
66
+ "learning_rate": 8.268578156382022e-06,
67
+ "loss": 0.839,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 1.14,
72
+ "learning_rate": 8.095435972020224e-06,
73
+ "loss": 0.6965,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 1.25,
78
+ "learning_rate": 7.922293787658426e-06,
79
+ "loss": 0.6787,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 1.35,
84
+ "learning_rate": 7.749151603296628e-06,
85
+ "loss": 0.7203,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 1.45,
90
+ "learning_rate": 7.57600941893483e-06,
91
+ "loss": 0.7132,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 1.56,
96
+ "learning_rate": 7.4028672345730324e-06,
97
+ "loss": 0.6652,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 1.66,
102
+ "learning_rate": 7.2297250502112335e-06,
103
+ "loss": 0.6635,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 1.77,
108
+ "learning_rate": 7.056582865849436e-06,
109
+ "loss": 0.7138,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 1.87,
114
+ "learning_rate": 6.883440681487638e-06,
115
+ "loss": 0.6751,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 1.97,
120
+ "learning_rate": 6.71029849712584e-06,
121
+ "loss": 0.6525,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 2.08,
126
+ "learning_rate": 6.537156312764042e-06,
127
+ "loss": 0.5809,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 2.18,
132
+ "learning_rate": 6.364014128402245e-06,
133
+ "loss": 0.5739,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 2.29,
138
+ "learning_rate": 6.190871944040446e-06,
139
+ "loss": 0.6014,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 2.39,
144
+ "learning_rate": 6.017729759678649e-06,
145
+ "loss": 0.6231,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 2.49,
150
+ "learning_rate": 5.84458757531685e-06,
151
+ "loss": 0.5746,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 2.6,
156
+ "learning_rate": 5.671445390955053e-06,
157
+ "loss": 0.5799,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 2.7,
162
+ "learning_rate": 5.4983032065932554e-06,
163
+ "loss": 0.5977,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 2.8,
168
+ "learning_rate": 5.3251610222314565e-06,
169
+ "loss": 0.5458,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 2.91,
174
+ "learning_rate": 5.152018837869659e-06,
175
+ "loss": 0.6165,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 3.01,
180
+ "learning_rate": 4.978876653507861e-06,
181
+ "loss": 0.5616,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 3.12,
186
+ "learning_rate": 4.805734469146063e-06,
187
+ "loss": 0.4902,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 3.22,
192
+ "learning_rate": 4.632592284784265e-06,
193
+ "loss": 0.5228,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 3.32,
198
+ "learning_rate": 4.459450100422467e-06,
199
+ "loss": 0.4979,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 3.43,
204
+ "learning_rate": 4.28630791606067e-06,
205
+ "loss": 0.5242,
206
+ "step": 16500
207
+ },
208
+ {
209
+ "epoch": 3.53,
210
+ "learning_rate": 4.113165731698872e-06,
211
+ "loss": 0.505,
212
+ "step": 17000
213
+ },
214
+ {
215
+ "epoch": 3.64,
216
+ "learning_rate": 3.940023547337074e-06,
217
+ "loss": 0.4984,
218
+ "step": 17500
219
+ },
220
+ {
221
+ "epoch": 3.74,
222
+ "learning_rate": 3.7668813629752753e-06,
223
+ "loss": 0.493,
224
+ "step": 18000
225
+ },
226
+ {
227
+ "epoch": 3.84,
228
+ "learning_rate": 3.593739178613478e-06,
229
+ "loss": 0.5153,
230
+ "step": 18500
231
+ },
232
+ {
233
+ "epoch": 3.95,
234
+ "learning_rate": 3.42059699425168e-06,
235
+ "loss": 0.5,
236
+ "step": 19000
237
+ },
238
+ {
239
+ "epoch": 4.05,
240
+ "learning_rate": 3.247454809889882e-06,
241
+ "loss": 0.4652,
242
+ "step": 19500
243
+ },
244
+ {
245
+ "epoch": 4.16,
246
+ "learning_rate": 3.0743126255280843e-06,
247
+ "loss": 0.4498,
248
+ "step": 20000
249
+ },
250
+ {
251
+ "epoch": 4.26,
252
+ "learning_rate": 2.9011704411662862e-06,
253
+ "loss": 0.4487,
254
+ "step": 20500
255
+ },
256
+ {
257
+ "epoch": 4.36,
258
+ "learning_rate": 2.728028256804488e-06,
259
+ "loss": 0.471,
260
+ "step": 21000
261
+ },
262
+ {
263
+ "epoch": 4.47,
264
+ "learning_rate": 2.55488607244269e-06,
265
+ "loss": 0.4626,
266
+ "step": 21500
267
+ },
268
+ {
269
+ "epoch": 4.57,
270
+ "learning_rate": 2.381743888080892e-06,
271
+ "loss": 0.4714,
272
+ "step": 22000
273
+ },
274
+ {
275
+ "epoch": 4.67,
276
+ "learning_rate": 2.2086017037190944e-06,
277
+ "loss": 0.458,
278
+ "step": 22500
279
+ },
280
+ {
281
+ "epoch": 4.78,
282
+ "learning_rate": 2.0354595193572963e-06,
283
+ "loss": 0.4456,
284
+ "step": 23000
285
+ },
286
+ {
287
+ "epoch": 4.88,
288
+ "learning_rate": 1.8623173349954985e-06,
289
+ "loss": 0.4446,
290
+ "step": 23500
291
+ },
292
+ {
293
+ "epoch": 4.99,
294
+ "learning_rate": 1.6891751506337006e-06,
295
+ "loss": 0.4782,
296
+ "step": 24000
297
+ },
298
+ {
299
+ "epoch": 5.09,
300
+ "learning_rate": 1.5160329662719026e-06,
301
+ "loss": 0.4174,
302
+ "step": 24500
303
+ },
304
+ {
305
+ "epoch": 5.19,
306
+ "learning_rate": 1.3428907819101047e-06,
307
+ "loss": 0.4142,
308
+ "step": 25000
309
+ },
310
+ {
311
+ "epoch": 5.3,
312
+ "learning_rate": 1.1697485975483069e-06,
313
+ "loss": 0.4207,
314
+ "step": 25500
315
+ },
316
+ {
317
+ "epoch": 5.4,
318
+ "learning_rate": 9.966064131865088e-07,
319
+ "loss": 0.4371,
320
+ "step": 26000
321
+ },
322
+ {
323
+ "epoch": 5.51,
324
+ "learning_rate": 8.23464228824711e-07,
325
+ "loss": 0.4323,
326
+ "step": 26500
327
+ },
328
+ {
329
+ "epoch": 5.61,
330
+ "learning_rate": 6.50322044462913e-07,
331
+ "loss": 0.3975,
332
+ "step": 27000
333
+ },
334
+ {
335
+ "epoch": 5.71,
336
+ "learning_rate": 4.77179860101115e-07,
337
+ "loss": 0.4127,
338
+ "step": 27500
339
+ },
340
+ {
341
+ "epoch": 5.82,
342
+ "learning_rate": 3.0403767573931714e-07,
343
+ "loss": 0.4299,
344
+ "step": 28000
345
+ },
346
+ {
347
+ "epoch": 5.92,
348
+ "learning_rate": 1.3089549137751924e-07,
349
+ "loss": 0.4015,
350
+ "step": 28500
351
+ },
352
+ {
353
+ "epoch": 6.0,
354
+ "step": 28878,
355
+ "total_flos": 2.1452574293961523e+17,
356
+ "train_loss": 0.6195740632728837,
357
+ "train_runtime": 17430.5797,
358
+ "train_samples_per_second": 13.252,
359
+ "train_steps_per_second": 1.657
360
+ }
361
+ ],
362
+ "max_steps": 28878,
363
+ "num_train_epochs": 6,
364
+ "total_flos": 2.1452574293961523e+17,
365
+ "trial_name": null,
366
+ "trial_params": null
367
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af660fe06a6411360999d369f4b11c2e24e168c126479b79658ea9e753474a87
3
+ size 3579
vocab.txt ADDED
The diff for this file is too large to render. See raw diff