Davlan commited on
Commit
7bc9ac0
1 Parent(s): 3b7dc61

add MT model

Browse files
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "predict_bleu": 29.283,
4
+ "predict_gen_len": 31.4311,
5
+ "predict_loss": 3.1916561126708984,
6
+ "predict_runtime": 649.2349,
7
+ "predict_samples": 1835,
8
+ "predict_samples_per_second": 2.826,
9
+ "predict_steps_per_second": 0.283,
10
+ "train_loss": 0.5166526954256896,
11
+ "train_runtime": 10734.5111,
12
+ "train_samples": 30782,
13
+ "train_samples_per_second": 28.676,
14
+ "train_steps_per_second": 2.868
15
+ }
config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/data/users/didelani/afribart/afrimbart",
3
+ "_num_labels": 3,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "gelu",
6
+ "adapters": {
7
+ "adapters": {},
8
+ "config_map": {},
9
+ "fusion_config_map": {},
10
+ "fusions": {}
11
+ },
12
+ "add_bias_logits": false,
13
+ "add_final_layer_norm": true,
14
+ "architectures": [
15
+ "MBartForConditionalGeneration"
16
+ ],
17
+ "attention_dropout": 0.0,
18
+ "bos_token_id": 0,
19
+ "classif_dropout": 0.0,
20
+ "classifier_dropout": 0.0,
21
+ "d_model": 1024,
22
+ "decoder_attention_heads": 16,
23
+ "decoder_ffn_dim": 4096,
24
+ "decoder_layerdrop": 0.0,
25
+ "decoder_layers": 12,
26
+ "decoder_start_token_id": 250020,
27
+ "dropout": 0.1,
28
+ "encoder_attention_heads": 16,
29
+ "encoder_ffn_dim": 4096,
30
+ "encoder_layerdrop": 0.0,
31
+ "encoder_layers": 12,
32
+ "eos_token_id": 2,
33
+ "forced_bos_token_id": 250004,
34
+ "forced_eos_token_id": 2,
35
+ "gradient_checkpointing": false,
36
+ "id2label": {
37
+ "0": "LABEL_0",
38
+ "1": "LABEL_1",
39
+ "2": "LABEL_2"
40
+ },
41
+ "init_std": 0.02,
42
+ "is_encoder_decoder": true,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1,
46
+ "LABEL_2": 2
47
+ },
48
+ "max_length": 1024,
49
+ "max_position_embeddings": 1024,
50
+ "model_type": "mbart",
51
+ "normalize_before": true,
52
+ "normalize_embedding": true,
53
+ "num_beams": 5,
54
+ "num_hidden_layers": 12,
55
+ "output_past": true,
56
+ "pad_token_id": 1,
57
+ "scale_embedding": true,
58
+ "static_position_embeddings": false,
59
+ "torch_dtype": "float32",
60
+ "transformers_version": "4.10.3",
61
+ "use_cache": true,
62
+ "vocab_size": 250054
63
+ }
generated_predictions.txt ADDED
The diff for this file is too large to render. See raw diff
 
predict_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "predict_bleu": 29.283,
3
+ "predict_gen_len": 31.4311,
4
+ "predict_loss": 3.1916561126708984,
5
+ "predict_runtime": 649.2349,
6
+ "predict_samples": 1835,
7
+ "predict_samples_per_second": 2.826,
8
+ "predict_steps_per_second": 0.283
9
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e41050d313c02c661de97356324ba5d185010c1d3d6a968b9980c465a21909c
3
+ size 2444723641
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": "<mask>", "additional_special_tokens": ["ar_AR", "cs_CZ", "de_DE", "en_XX", "es_XX", "et_EE", "fi_FI", "fr_XX", "gu_IN", "hi_IN", "it_IT", "ja_XX", "kk_KZ", "ko_KR", "lt_LT", "lv_LV", "my_MM", "ne_NP", "nl_XX", "ro_RO", "ru_RU", "si_LK", "tr_TR", "vi_VN", "zh_CN", "af_ZA", "az_AZ", "bn_IN", "fa_IR", "he_IL", "hr_HR", "id_ID", "ka_GE", "km_KH", "mk_MK", "ml_IN", "mn_MN", "mr_IN", "pl_PL", "ps_AF", "pt_XX", "sv_SE", "sw_KE", "ta_IN", "te_IN", "th_TH", "tl_XX", "uk_UA", "ur_PK", "xh_ZA", "gl_ES", "sl_SI"]}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"src_lang": null, "tgt_lang": null, "eos_token": "</s>", "sep_token": "</s>", "cls_token": "<s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": "<s>", "model_max_length": 1024, "name_or_path": "/data/users/didelani/afribart/afrimbart", "special_tokens_map_file": "/home/suraj/projects/mbart-50/hf_models/mbart-50-large/special_tokens_map.json", "additional_special_tokens": ["ar_AR", "cs_CZ", "de_DE", "en_XX", "es_XX", "et_EE", "fi_FI", "fr_XX", "gu_IN", "hi_IN", "it_IT", "ja_XX", "kk_KZ", "ko_KR", "lt_LT", "lv_LV", "my_MM", "ne_NP", "nl_XX", "ro_RO", "ru_RU", "si_LK", "tr_TR", "vi_VN", "zh_CN", "af_ZA", "az_AZ", "bn_IN", "fa_IR", "he_IL", "hr_HR", "id_ID", "ka_GE", "km_KH", "mk_MK", "ml_IN", "mn_MN", "mr_IN", "pl_PL", "ps_AF", "pt_XX", "sv_SE", "sw_KE", "ta_IN", "te_IN", "th_TH", "tl_XX", "uk_UA", "ur_PK", "xh_ZA", "gl_ES", "sl_SI"], "sp_model_kwargs": {}, "tokenizer_class": "MBart50Tokenizer"}
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "train_loss": 0.5166526954256896,
4
+ "train_runtime": 10734.5111,
5
+ "train_samples": 30782,
6
+ "train_samples_per_second": 28.676,
7
+ "train_steps_per_second": 2.868
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 10.0,
5
+ "global_step": 30790,
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.16,
12
+ "learning_rate": 4.91880480675544e-05,
13
+ "loss": 2.5859,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 0.32,
18
+ "learning_rate": 4.8376096135108804e-05,
19
+ "loss": 2.0293,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.49,
24
+ "learning_rate": 4.7564144202663205e-05,
25
+ "loss": 1.8726,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.65,
30
+ "learning_rate": 4.6752192270217606e-05,
31
+ "loss": 1.8068,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.81,
36
+ "learning_rate": 4.5940240337772006e-05,
37
+ "loss": 1.7605,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.97,
42
+ "learning_rate": 4.512828840532641e-05,
43
+ "loss": 1.9469,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 1.14,
48
+ "learning_rate": 4.431633647288081e-05,
49
+ "loss": 1.2935,
50
+ "step": 3500
51
+ },
52
+ {
53
+ "epoch": 1.3,
54
+ "learning_rate": 4.350438454043521e-05,
55
+ "loss": 1.2342,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 1.46,
60
+ "learning_rate": 4.269243260798961e-05,
61
+ "loss": 1.2234,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 1.62,
66
+ "learning_rate": 4.188048067554401e-05,
67
+ "loss": 1.2641,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 1.79,
72
+ "learning_rate": 4.106852874309841e-05,
73
+ "loss": 1.2556,
74
+ "step": 5500
75
+ },
76
+ {
77
+ "epoch": 1.95,
78
+ "learning_rate": 4.025657681065281e-05,
79
+ "loss": 1.2404,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 2.11,
84
+ "learning_rate": 3.944462487820721e-05,
85
+ "loss": 1.0196,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 2.27,
90
+ "learning_rate": 3.8632672945761614e-05,
91
+ "loss": 0.8039,
92
+ "step": 7000
93
+ },
94
+ {
95
+ "epoch": 2.44,
96
+ "learning_rate": 3.7820721013316015e-05,
97
+ "loss": 0.8155,
98
+ "step": 7500
99
+ },
100
+ {
101
+ "epoch": 2.6,
102
+ "learning_rate": 3.7008769080870415e-05,
103
+ "loss": 0.8213,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 2.76,
108
+ "learning_rate": 3.6196817148424816e-05,
109
+ "loss": 0.8316,
110
+ "step": 8500
111
+ },
112
+ {
113
+ "epoch": 2.92,
114
+ "learning_rate": 3.538486521597922e-05,
115
+ "loss": 0.8499,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 3.09,
120
+ "learning_rate": 3.457291328353362e-05,
121
+ "loss": 0.64,
122
+ "step": 9500
123
+ },
124
+ {
125
+ "epoch": 3.25,
126
+ "learning_rate": 3.376096135108802e-05,
127
+ "loss": 0.4628,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 3.41,
132
+ "learning_rate": 3.294900941864242e-05,
133
+ "loss": 0.4861,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 3.57,
138
+ "learning_rate": 3.213705748619682e-05,
139
+ "loss": 0.4887,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 3.73,
144
+ "learning_rate": 3.132510555375122e-05,
145
+ "loss": 0.5098,
146
+ "step": 11500
147
+ },
148
+ {
149
+ "epoch": 3.9,
150
+ "learning_rate": 3.051315362130562e-05,
151
+ "loss": 0.4998,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 4.06,
156
+ "learning_rate": 2.970120168886002e-05,
157
+ "loss": 0.4177,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 4.22,
162
+ "learning_rate": 2.888924975641442e-05,
163
+ "loss": 0.257,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 4.38,
168
+ "learning_rate": 2.8077297823968824e-05,
169
+ "loss": 0.264,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 4.55,
174
+ "learning_rate": 2.7265345891523225e-05,
175
+ "loss": 0.278,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 4.71,
180
+ "learning_rate": 2.6453393959077623e-05,
181
+ "loss": 0.2836,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 4.87,
186
+ "learning_rate": 2.5641442026632023e-05,
187
+ "loss": 0.2851,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 5.03,
192
+ "learning_rate": 2.4829490094186424e-05,
193
+ "loss": 0.2511,
194
+ "step": 15500
195
+ },
196
+ {
197
+ "epoch": 5.2,
198
+ "learning_rate": 2.401753816174083e-05,
199
+ "loss": 0.1468,
200
+ "step": 16000
201
+ },
202
+ {
203
+ "epoch": 5.36,
204
+ "learning_rate": 2.3205586229295226e-05,
205
+ "loss": 0.1497,
206
+ "step": 16500
207
+ },
208
+ {
209
+ "epoch": 5.52,
210
+ "learning_rate": 2.2393634296849627e-05,
211
+ "loss": 0.1519,
212
+ "step": 17000
213
+ },
214
+ {
215
+ "epoch": 5.68,
216
+ "learning_rate": 2.158168236440403e-05,
217
+ "loss": 0.15,
218
+ "step": 17500
219
+ },
220
+ {
221
+ "epoch": 5.85,
222
+ "learning_rate": 2.0769730431958428e-05,
223
+ "loss": 0.1559,
224
+ "step": 18000
225
+ },
226
+ {
227
+ "epoch": 6.01,
228
+ "learning_rate": 1.995777849951283e-05,
229
+ "loss": 0.1542,
230
+ "step": 18500
231
+ },
232
+ {
233
+ "epoch": 6.17,
234
+ "learning_rate": 1.914582656706723e-05,
235
+ "loss": 0.0818,
236
+ "step": 19000
237
+ },
238
+ {
239
+ "epoch": 6.33,
240
+ "learning_rate": 1.833387463462163e-05,
241
+ "loss": 0.0873,
242
+ "step": 19500
243
+ },
244
+ {
245
+ "epoch": 6.5,
246
+ "learning_rate": 1.752192270217603e-05,
247
+ "loss": 0.0857,
248
+ "step": 20000
249
+ },
250
+ {
251
+ "epoch": 6.66,
252
+ "learning_rate": 1.6709970769730432e-05,
253
+ "loss": 0.0888,
254
+ "step": 20500
255
+ },
256
+ {
257
+ "epoch": 6.82,
258
+ "learning_rate": 1.5898018837284833e-05,
259
+ "loss": 0.0853,
260
+ "step": 21000
261
+ },
262
+ {
263
+ "epoch": 6.98,
264
+ "learning_rate": 1.5086066904839236e-05,
265
+ "loss": 0.0862,
266
+ "step": 21500
267
+ },
268
+ {
269
+ "epoch": 7.15,
270
+ "learning_rate": 1.4274114972393635e-05,
271
+ "loss": 0.0554,
272
+ "step": 22000
273
+ },
274
+ {
275
+ "epoch": 7.31,
276
+ "learning_rate": 1.3462163039948036e-05,
277
+ "loss": 0.0507,
278
+ "step": 22500
279
+ },
280
+ {
281
+ "epoch": 7.47,
282
+ "learning_rate": 1.2650211107502435e-05,
283
+ "loss": 0.0506,
284
+ "step": 23000
285
+ },
286
+ {
287
+ "epoch": 7.63,
288
+ "learning_rate": 1.1838259175056837e-05,
289
+ "loss": 0.0507,
290
+ "step": 23500
291
+ },
292
+ {
293
+ "epoch": 7.79,
294
+ "learning_rate": 1.1026307242611238e-05,
295
+ "loss": 0.0509,
296
+ "step": 24000
297
+ },
298
+ {
299
+ "epoch": 7.96,
300
+ "learning_rate": 1.0214355310165639e-05,
301
+ "loss": 0.0487,
302
+ "step": 24500
303
+ },
304
+ {
305
+ "epoch": 8.12,
306
+ "learning_rate": 9.40240337772004e-06,
307
+ "loss": 0.0351,
308
+ "step": 25000
309
+ },
310
+ {
311
+ "epoch": 8.28,
312
+ "learning_rate": 8.59045144527444e-06,
313
+ "loss": 0.0304,
314
+ "step": 25500
315
+ },
316
+ {
317
+ "epoch": 8.44,
318
+ "learning_rate": 7.778499512828841e-06,
319
+ "loss": 0.0306,
320
+ "step": 26000
321
+ },
322
+ {
323
+ "epoch": 8.61,
324
+ "learning_rate": 6.966547580383241e-06,
325
+ "loss": 0.0297,
326
+ "step": 26500
327
+ },
328
+ {
329
+ "epoch": 8.77,
330
+ "learning_rate": 6.154595647937642e-06,
331
+ "loss": 0.0292,
332
+ "step": 27000
333
+ },
334
+ {
335
+ "epoch": 8.93,
336
+ "learning_rate": 5.342643715492044e-06,
337
+ "loss": 0.0285,
338
+ "step": 27500
339
+ },
340
+ {
341
+ "epoch": 9.09,
342
+ "learning_rate": 4.530691783046444e-06,
343
+ "loss": 0.0224,
344
+ "step": 28000
345
+ },
346
+ {
347
+ "epoch": 9.26,
348
+ "learning_rate": 3.718739850600845e-06,
349
+ "loss": 0.0188,
350
+ "step": 28500
351
+ },
352
+ {
353
+ "epoch": 9.42,
354
+ "learning_rate": 2.9067879181552453e-06,
355
+ "loss": 0.0183,
356
+ "step": 29000
357
+ },
358
+ {
359
+ "epoch": 9.58,
360
+ "learning_rate": 2.094835985709646e-06,
361
+ "loss": 0.018,
362
+ "step": 29500
363
+ },
364
+ {
365
+ "epoch": 9.74,
366
+ "learning_rate": 1.2828840532640467e-06,
367
+ "loss": 0.0172,
368
+ "step": 30000
369
+ },
370
+ {
371
+ "epoch": 9.91,
372
+ "learning_rate": 4.7093212081844755e-07,
373
+ "loss": 0.0171,
374
+ "step": 30500
375
+ },
376
+ {
377
+ "epoch": 10.0,
378
+ "step": 30790,
379
+ "total_flos": 8.428451462293094e+16,
380
+ "train_loss": 0.5166526954256896,
381
+ "train_runtime": 10734.5111,
382
+ "train_samples_per_second": 28.676,
383
+ "train_steps_per_second": 2.868
384
+ }
385
+ ],
386
+ "max_steps": 30790,
387
+ "num_train_epochs": 10,
388
+ "total_flos": 8.428451462293094e+16,
389
+ "trial_name": null,
390
+ "trial_params": null
391
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a5785d08a7fae86b44a39783cf9d95e7702ee0287d60fa9cf9d86ff2fc401c1
3
+ size 2799