saiful9379 commited on
Commit
5f6726f
1 Parent(s): ebe7f25

Add small robert qa model

Browse files
config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/media/user/hdd/NLP/QA/JaQuAD-main/results/checkpoint-26500",
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-12,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 6,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "torch_dtype": "float32",
23
+ "transformers_version": "4.23.1",
24
+ "type_vocab_size": 1,
25
+ "use_cache": true,
26
+ "vocab_size": 30000
27
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48779fea1a1c9702f2c691a8280703014be3f0827b11b4127a26ff65866d1563
3
+ size 527785957
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b257ec51d46c957ea8515b86d5963133d2159d95becba51544b0b24bef5c93
3
+ size 263901681
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c395cfc74ae33fd3a4d41a84251bcd211fdf78335a688aa54d2aa944b50b277
3
+ size 14503
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4515e79ba5a84ae13f17d13e69ab341442ea45637f6cdbe4f366e7197656500e
3
+ size 623
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": true,
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,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": {
4
+ "__type": "AddedToken",
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "cls_token": {
12
+ "__type": "AddedToken",
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "eos_token": {
20
+ "__type": "AddedToken",
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "errors": "replace",
28
+ "mask_token": {
29
+ "__type": "AddedToken",
30
+ "content": "<mask>",
31
+ "lstrip": true,
32
+ "normalized": true,
33
+ "rstrip": false,
34
+ "single_word": false
35
+ },
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "name_or_path": "/media/user/hdd/NLP/QA/JaQuAD-main/results/checkpoint-26500/",
38
+ "pad_token": {
39
+ "__type": "AddedToken",
40
+ "content": "<pad>",
41
+ "lstrip": false,
42
+ "normalized": true,
43
+ "rstrip": false,
44
+ "single_word": false
45
+ },
46
+ "sep_token": {
47
+ "__type": "AddedToken",
48
+ "content": "</s>",
49
+ "lstrip": false,
50
+ "normalized": true,
51
+ "rstrip": false,
52
+ "single_word": false
53
+ },
54
+ "special_tokens_map_file": null,
55
+ "tokenizer_class": "RobertaTokenizer",
56
+ "trim_offsets": true,
57
+ "unk_token": {
58
+ "__type": "AddedToken",
59
+ "content": "<unk>",
60
+ "lstrip": false,
61
+ "normalized": true,
62
+ "rstrip": false,
63
+ "single_word": false
64
+ }
65
+ }
trainer_state.json ADDED
@@ -0,0 +1,342 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 300.0,
5
+ "global_step": 16500,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 9.09,
12
+ "learning_rate": 1.9393939393939395e-05,
13
+ "loss": 0.0325,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 18.18,
18
+ "learning_rate": 1.8787878787878792e-05,
19
+ "loss": 0.0205,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 18.18,
24
+ "eval_loss": 0.024596277624368668,
25
+ "eval_runtime": 0.6803,
26
+ "eval_samples_per_second": 385.138,
27
+ "eval_steps_per_second": 24.99,
28
+ "step": 1000
29
+ },
30
+ {
31
+ "epoch": 27.27,
32
+ "learning_rate": 1.8181818181818182e-05,
33
+ "loss": 0.0176,
34
+ "step": 1500
35
+ },
36
+ {
37
+ "epoch": 36.36,
38
+ "learning_rate": 1.7575757575757576e-05,
39
+ "loss": 0.0148,
40
+ "step": 2000
41
+ },
42
+ {
43
+ "epoch": 36.36,
44
+ "eval_loss": 0.009050876833498478,
45
+ "eval_runtime": 0.6792,
46
+ "eval_samples_per_second": 385.757,
47
+ "eval_steps_per_second": 25.03,
48
+ "step": 2000
49
+ },
50
+ {
51
+ "epoch": 45.45,
52
+ "learning_rate": 1.6969696969696972e-05,
53
+ "loss": 0.0139,
54
+ "step": 2500
55
+ },
56
+ {
57
+ "epoch": 54.55,
58
+ "learning_rate": 1.6363636363636366e-05,
59
+ "loss": 0.0131,
60
+ "step": 3000
61
+ },
62
+ {
63
+ "epoch": 54.55,
64
+ "eval_loss": 0.08356618881225586,
65
+ "eval_runtime": 0.6799,
66
+ "eval_samples_per_second": 385.336,
67
+ "eval_steps_per_second": 25.003,
68
+ "step": 3000
69
+ },
70
+ {
71
+ "epoch": 63.64,
72
+ "learning_rate": 1.575757575757576e-05,
73
+ "loss": 0.0123,
74
+ "step": 3500
75
+ },
76
+ {
77
+ "epoch": 72.73,
78
+ "learning_rate": 1.5151515151515153e-05,
79
+ "loss": 0.012,
80
+ "step": 4000
81
+ },
82
+ {
83
+ "epoch": 72.73,
84
+ "eval_loss": 0.0886448472738266,
85
+ "eval_runtime": 0.6927,
86
+ "eval_samples_per_second": 378.228,
87
+ "eval_steps_per_second": 24.542,
88
+ "step": 4000
89
+ },
90
+ {
91
+ "epoch": 81.82,
92
+ "learning_rate": 1.4545454545454546e-05,
93
+ "loss": 0.0114,
94
+ "step": 4500
95
+ },
96
+ {
97
+ "epoch": 90.91,
98
+ "learning_rate": 1.3939393939393942e-05,
99
+ "loss": 0.011,
100
+ "step": 5000
101
+ },
102
+ {
103
+ "epoch": 90.91,
104
+ "eval_loss": 0.0763353630900383,
105
+ "eval_runtime": 0.678,
106
+ "eval_samples_per_second": 386.405,
107
+ "eval_steps_per_second": 25.072,
108
+ "step": 5000
109
+ },
110
+ {
111
+ "epoch": 100.0,
112
+ "learning_rate": 1.3333333333333333e-05,
113
+ "loss": 0.0105,
114
+ "step": 5500
115
+ },
116
+ {
117
+ "epoch": 109.09,
118
+ "learning_rate": 1.2727272727272728e-05,
119
+ "loss": 0.0111,
120
+ "step": 6000
121
+ },
122
+ {
123
+ "epoch": 109.09,
124
+ "eval_loss": 0.10684655606746674,
125
+ "eval_runtime": 0.6792,
126
+ "eval_samples_per_second": 385.762,
127
+ "eval_steps_per_second": 25.03,
128
+ "step": 6000
129
+ },
130
+ {
131
+ "epoch": 118.18,
132
+ "learning_rate": 1.2121212121212122e-05,
133
+ "loss": 0.0104,
134
+ "step": 6500
135
+ },
136
+ {
137
+ "epoch": 127.27,
138
+ "learning_rate": 1.1515151515151517e-05,
139
+ "loss": 0.0104,
140
+ "step": 7000
141
+ },
142
+ {
143
+ "epoch": 127.27,
144
+ "eval_loss": 0.0989227443933487,
145
+ "eval_runtime": 0.6773,
146
+ "eval_samples_per_second": 386.802,
147
+ "eval_steps_per_second": 25.098,
148
+ "step": 7000
149
+ },
150
+ {
151
+ "epoch": 136.36,
152
+ "learning_rate": 1.0909090909090909e-05,
153
+ "loss": 0.0097,
154
+ "step": 7500
155
+ },
156
+ {
157
+ "epoch": 145.45,
158
+ "learning_rate": 1.0303030303030304e-05,
159
+ "loss": 0.0106,
160
+ "step": 8000
161
+ },
162
+ {
163
+ "epoch": 145.45,
164
+ "eval_loss": 0.09557081758975983,
165
+ "eval_runtime": 0.7034,
166
+ "eval_samples_per_second": 372.496,
167
+ "eval_steps_per_second": 24.17,
168
+ "step": 8000
169
+ },
170
+ {
171
+ "epoch": 154.55,
172
+ "learning_rate": 9.696969696969698e-06,
173
+ "loss": 0.0099,
174
+ "step": 8500
175
+ },
176
+ {
177
+ "epoch": 163.64,
178
+ "learning_rate": 9.090909090909091e-06,
179
+ "loss": 0.0097,
180
+ "step": 9000
181
+ },
182
+ {
183
+ "epoch": 163.64,
184
+ "eval_loss": 0.07463082671165466,
185
+ "eval_runtime": 0.6685,
186
+ "eval_samples_per_second": 391.9,
187
+ "eval_steps_per_second": 25.429,
188
+ "step": 9000
189
+ },
190
+ {
191
+ "epoch": 172.73,
192
+ "learning_rate": 8.484848484848486e-06,
193
+ "loss": 0.0111,
194
+ "step": 9500
195
+ },
196
+ {
197
+ "epoch": 181.82,
198
+ "learning_rate": 7.87878787878788e-06,
199
+ "loss": 0.0097,
200
+ "step": 10000
201
+ },
202
+ {
203
+ "epoch": 181.82,
204
+ "eval_loss": 0.0682496652007103,
205
+ "eval_runtime": 0.6795,
206
+ "eval_samples_per_second": 385.591,
207
+ "eval_steps_per_second": 25.019,
208
+ "step": 10000
209
+ },
210
+ {
211
+ "epoch": 190.91,
212
+ "learning_rate": 7.272727272727273e-06,
213
+ "loss": 0.0098,
214
+ "step": 10500
215
+ },
216
+ {
217
+ "epoch": 200.0,
218
+ "learning_rate": 6.666666666666667e-06,
219
+ "loss": 0.0095,
220
+ "step": 11000
221
+ },
222
+ {
223
+ "epoch": 200.0,
224
+ "eval_loss": 0.04372559115290642,
225
+ "eval_runtime": 0.7607,
226
+ "eval_samples_per_second": 344.421,
227
+ "eval_steps_per_second": 22.348,
228
+ "step": 11000
229
+ },
230
+ {
231
+ "epoch": 209.09,
232
+ "learning_rate": 6.060606060606061e-06,
233
+ "loss": 0.0096,
234
+ "step": 11500
235
+ },
236
+ {
237
+ "epoch": 218.18,
238
+ "learning_rate": 5.4545454545454545e-06,
239
+ "loss": 0.0095,
240
+ "step": 12000
241
+ },
242
+ {
243
+ "epoch": 218.18,
244
+ "eval_loss": 0.0709039568901062,
245
+ "eval_runtime": 0.7061,
246
+ "eval_samples_per_second": 371.075,
247
+ "eval_steps_per_second": 24.077,
248
+ "step": 12000
249
+ },
250
+ {
251
+ "epoch": 227.27,
252
+ "learning_rate": 4.848484848484849e-06,
253
+ "loss": 0.0092,
254
+ "step": 12500
255
+ },
256
+ {
257
+ "epoch": 236.36,
258
+ "learning_rate": 4.242424242424243e-06,
259
+ "loss": 0.0093,
260
+ "step": 13000
261
+ },
262
+ {
263
+ "epoch": 236.36,
264
+ "eval_loss": 0.06207394599914551,
265
+ "eval_runtime": 0.7614,
266
+ "eval_samples_per_second": 344.108,
267
+ "eval_steps_per_second": 22.328,
268
+ "step": 13000
269
+ },
270
+ {
271
+ "epoch": 245.45,
272
+ "learning_rate": 3.6363636363636366e-06,
273
+ "loss": 0.0092,
274
+ "step": 13500
275
+ },
276
+ {
277
+ "epoch": 254.55,
278
+ "learning_rate": 3.0303030303030305e-06,
279
+ "loss": 0.0095,
280
+ "step": 14000
281
+ },
282
+ {
283
+ "epoch": 254.55,
284
+ "eval_loss": 0.0763927549123764,
285
+ "eval_runtime": 0.7074,
286
+ "eval_samples_per_second": 370.363,
287
+ "eval_steps_per_second": 24.031,
288
+ "step": 14000
289
+ },
290
+ {
291
+ "epoch": 263.64,
292
+ "learning_rate": 2.4242424242424244e-06,
293
+ "loss": 0.0094,
294
+ "step": 14500
295
+ },
296
+ {
297
+ "epoch": 272.73,
298
+ "learning_rate": 1.8181818181818183e-06,
299
+ "loss": 0.0095,
300
+ "step": 15000
301
+ },
302
+ {
303
+ "epoch": 272.73,
304
+ "eval_loss": 0.0721823051571846,
305
+ "eval_runtime": 0.6582,
306
+ "eval_samples_per_second": 398.054,
307
+ "eval_steps_per_second": 25.828,
308
+ "step": 15000
309
+ },
310
+ {
311
+ "epoch": 281.82,
312
+ "learning_rate": 1.2121212121212122e-06,
313
+ "loss": 0.0091,
314
+ "step": 15500
315
+ },
316
+ {
317
+ "epoch": 290.91,
318
+ "learning_rate": 6.060606060606061e-07,
319
+ "loss": 0.0092,
320
+ "step": 16000
321
+ },
322
+ {
323
+ "epoch": 290.91,
324
+ "eval_loss": 0.05487630143761635,
325
+ "eval_runtime": 0.715,
326
+ "eval_samples_per_second": 366.453,
327
+ "eval_steps_per_second": 23.777,
328
+ "step": 16000
329
+ },
330
+ {
331
+ "epoch": 300.0,
332
+ "learning_rate": 0.0,
333
+ "loss": 0.0094,
334
+ "step": 16500
335
+ }
336
+ ],
337
+ "max_steps": 16500,
338
+ "num_train_epochs": 300,
339
+ "total_flos": 9.41486238830592e+16,
340
+ "trial_name": null,
341
+ "trial_params": null
342
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65a88c1736c18b0d6814ef4b725b9a940d9f2f91b95d1e02743efb975cf2d233
3
+ size 3311
vocab.json ADDED
The diff for this file is too large to render. See raw diff