add MT model
Browse files- all_results.json +22 -0
- config.json +59 -0
- eval_results.json +10 -0
- generated_predictions.txt +0 -0
- predict_results.json +9 -0
- pytorch_model.bin +3 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- train_results.json +8 -0
- trainer_state.json +73 -0
- training_args.bin +3 -0
all_results.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"eval_bleu": 14.7308,
|
4 |
+
"eval_gen_len": 27.9893,
|
5 |
+
"eval_loss": 3.4240899085998535,
|
6 |
+
"eval_runtime": 478.2556,
|
7 |
+
"eval_samples": 1500,
|
8 |
+
"eval_samples_per_second": 3.136,
|
9 |
+
"eval_steps_per_second": 0.314,
|
10 |
+
"predict_bleu": 13.9919,
|
11 |
+
"predict_gen_len": 26.9367,
|
12 |
+
"predict_loss": 3.4365780353546143,
|
13 |
+
"predict_runtime": 414.7523,
|
14 |
+
"predict_samples": 1500,
|
15 |
+
"predict_samples_per_second": 3.617,
|
16 |
+
"predict_steps_per_second": 0.362,
|
17 |
+
"train_loss": 1.1262757545592739,
|
18 |
+
"train_runtime": 1490.6185,
|
19 |
+
"train_samples": 4075,
|
20 |
+
"train_samples_per_second": 27.338,
|
21 |
+
"train_steps_per_second": 2.737
|
22 |
+
}
|
config.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "facebook/mbart-large-50",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "gelu",
|
6 |
+
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": true,
|
8 |
+
"architectures": [
|
9 |
+
"MBartForConditionalGeneration"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.0,
|
12 |
+
"bos_token_id": 0,
|
13 |
+
"classif_dropout": 0.0,
|
14 |
+
"classifier_dropout": 0.0,
|
15 |
+
"d_model": 1024,
|
16 |
+
"decoder_attention_heads": 16,
|
17 |
+
"decoder_ffn_dim": 4096,
|
18 |
+
"decoder_layerdrop": 0.0,
|
19 |
+
"decoder_layers": 12,
|
20 |
+
"decoder_start_token_id": 2,
|
21 |
+
"dropout": 0.1,
|
22 |
+
"early_stopping": true,
|
23 |
+
"encoder_attention_heads": 16,
|
24 |
+
"encoder_ffn_dim": 4096,
|
25 |
+
"encoder_layerdrop": 0.0,
|
26 |
+
"encoder_layers": 12,
|
27 |
+
"eos_token_id": 2,
|
28 |
+
"forced_bos_token_id": 250004,
|
29 |
+
"forced_eos_token_id": 2,
|
30 |
+
"gradient_checkpointing": false,
|
31 |
+
"id2label": {
|
32 |
+
"0": "LABEL_0",
|
33 |
+
"1": "LABEL_1",
|
34 |
+
"2": "LABEL_2"
|
35 |
+
},
|
36 |
+
"init_std": 0.02,
|
37 |
+
"is_encoder_decoder": true,
|
38 |
+
"label2id": {
|
39 |
+
"LABEL_0": 0,
|
40 |
+
"LABEL_1": 1,
|
41 |
+
"LABEL_2": 2
|
42 |
+
},
|
43 |
+
"max_length": 200,
|
44 |
+
"max_position_embeddings": 1024,
|
45 |
+
"model_type": "mbart",
|
46 |
+
"normalize_before": true,
|
47 |
+
"normalize_embedding": true,
|
48 |
+
"num_beams": 5,
|
49 |
+
"num_hidden_layers": 12,
|
50 |
+
"output_past": true,
|
51 |
+
"pad_token_id": 1,
|
52 |
+
"scale_embedding": true,
|
53 |
+
"static_position_embeddings": false,
|
54 |
+
"tokenizer_class": "MBart50Tokenizer",
|
55 |
+
"torch_dtype": "float32",
|
56 |
+
"transformers_version": "4.12.0",
|
57 |
+
"use_cache": true,
|
58 |
+
"vocab_size": 250054
|
59 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 10.0,
|
3 |
+
"eval_bleu": 14.7308,
|
4 |
+
"eval_gen_len": 27.9893,
|
5 |
+
"eval_loss": 3.4240899085998535,
|
6 |
+
"eval_runtime": 478.2556,
|
7 |
+
"eval_samples": 1500,
|
8 |
+
"eval_samples_per_second": 3.136,
|
9 |
+
"eval_steps_per_second": 0.314
|
10 |
+
}
|
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": 13.9919,
|
3 |
+
"predict_gen_len": 26.9367,
|
4 |
+
"predict_loss": 3.4365780353546143,
|
5 |
+
"predict_runtime": 414.7523,
|
6 |
+
"predict_samples": 1500,
|
7 |
+
"predict_samples_per_second": 3.617,
|
8 |
+
"predict_steps_per_second": 0.362
|
9 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9cb364aac8f1754a46cbff2b952a328e122da22cc07538b76a8860d3513ce089
|
3 |
+
size 2444722195
|
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": "facebook/mbart-large-50", "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": 1.1262757545592739,
|
4 |
+
"train_runtime": 1490.6185,
|
5 |
+
"train_samples": 4075,
|
6 |
+
"train_samples_per_second": 27.338,
|
7 |
+
"train_steps_per_second": 2.737
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 10.0,
|
5 |
+
"global_step": 4080,
|
6 |
+
"is_hyper_param_search": false,
|
7 |
+
"is_local_process_zero": true,
|
8 |
+
"is_world_process_zero": true,
|
9 |
+
"log_history": [
|
10 |
+
{
|
11 |
+
"epoch": 1.23,
|
12 |
+
"learning_rate": 4.387254901960784e-05,
|
13 |
+
"loss": 4.5039,
|
14 |
+
"step": 500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 2.45,
|
18 |
+
"learning_rate": 3.774509803921569e-05,
|
19 |
+
"loss": 2.0857,
|
20 |
+
"step": 1000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 3.68,
|
24 |
+
"learning_rate": 3.161764705882353e-05,
|
25 |
+
"loss": 1.0478,
|
26 |
+
"step": 1500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 4.9,
|
30 |
+
"learning_rate": 2.5490196078431373e-05,
|
31 |
+
"loss": 0.5243,
|
32 |
+
"step": 2000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 6.13,
|
36 |
+
"learning_rate": 1.936274509803922e-05,
|
37 |
+
"loss": 0.8203,
|
38 |
+
"step": 2500
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 7.35,
|
42 |
+
"learning_rate": 1.323529411764706e-05,
|
43 |
+
"loss": 0.1136,
|
44 |
+
"step": 3000
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 8.58,
|
48 |
+
"learning_rate": 7.107843137254902e-06,
|
49 |
+
"loss": 0.0563,
|
50 |
+
"step": 3500
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"epoch": 9.8,
|
54 |
+
"learning_rate": 9.80392156862745e-07,
|
55 |
+
"loss": 0.0339,
|
56 |
+
"step": 4000
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"epoch": 10.0,
|
60 |
+
"step": 4080,
|
61 |
+
"total_flos": 1.103279627476992e+16,
|
62 |
+
"train_loss": 1.1262757545592739,
|
63 |
+
"train_runtime": 1490.6185,
|
64 |
+
"train_samples_per_second": 27.338,
|
65 |
+
"train_steps_per_second": 2.737
|
66 |
+
}
|
67 |
+
],
|
68 |
+
"max_steps": 4080,
|
69 |
+
"num_train_epochs": 10,
|
70 |
+
"total_flos": 1.103279627476992e+16,
|
71 |
+
"trial_name": null,
|
72 |
+
"trial_params": null
|
73 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b439fc43b884d74fe1eb2dd8132d1259b5f2e8271ca2bae6f55ad1c0fb93365
|
3 |
+
size 2927
|