omarmomen commited on
Commit
184237e
1 Parent(s): e2100e8

init commit

Browse files
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ __pycache__/
2
+ .vscode/
3
+ env/
4
+ .ipynb_checkpoints/
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "de_SI": 34850
3
+ }
best_checkpoint.ckpt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4ac1dcb92f84aeb2699916bef8ecb11768ce6502cc299e111645470aeeaa0e1
3
+ size 5153031134
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "pretrained_models/trimmed_longmbart",
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
+ "MLongformerEncoderDecoderForConditionalGeneration"
10
+ ],
11
+ "attention_dilation": [
12
+ 1,
13
+ 1,
14
+ 1,
15
+ 1,
16
+ 1,
17
+ 1,
18
+ 1,
19
+ 1,
20
+ 1,
21
+ 1,
22
+ 1,
23
+ 1
24
+ ],
25
+ "attention_dropout": 0.1,
26
+ "attention_mode": "sliding_chunks",
27
+ "attention_probs_dropout_prob": 0.0,
28
+ "attention_window": [
29
+ 512,
30
+ 512,
31
+ 512,
32
+ 512,
33
+ 512,
34
+ 512,
35
+ 512,
36
+ 512,
37
+ 512,
38
+ 512,
39
+ 512,
40
+ 512
41
+ ],
42
+ "autoregressive": false,
43
+ "bos_token_id": 0,
44
+ "classif_dropout": 0.0,
45
+ "classifier_dropout": 0.0,
46
+ "d_model": 1024,
47
+ "decoder_attention_heads": 16,
48
+ "decoder_ffn_dim": 4096,
49
+ "decoder_layerdrop": 0.0,
50
+ "decoder_layers": 12,
51
+ "dropout": 0.3,
52
+ "encoder_attention_heads": 16,
53
+ "encoder_ffn_dim": 4096,
54
+ "encoder_layerdrop": 0.0,
55
+ "encoder_layers": 12,
56
+ "eos_token_id": 2,
57
+ "forced_eos_token_id": 2,
58
+ "global_attention_indices": [
59
+ -1
60
+ ],
61
+ "id2label": {
62
+ "0": "LABEL_0",
63
+ "1": "LABEL_1",
64
+ "2": "LABEL_2"
65
+ },
66
+ "init_std": 0.02,
67
+ "is_encoder_decoder": true,
68
+ "label2id": {
69
+ "LABEL_0": 0,
70
+ "LABEL_1": 1,
71
+ "LABEL_2": 2
72
+ },
73
+ "max_decoder_position_embeddings": 1024,
74
+ "max_encoder_position_embeddings": 2048,
75
+ "max_length": 1024,
76
+ "max_position_embeddings": 1024,
77
+ "model_type": "mbart",
78
+ "normalize_before": true,
79
+ "normalize_embedding": true,
80
+ "num_beams": 5,
81
+ "num_hidden_layers": 12,
82
+ "output_past": true,
83
+ "pad_token_id": 1,
84
+ "scale_embedding": true,
85
+ "static_position_embeddings": false,
86
+ "task_specific_params": {
87
+ "translation_en_to_ro": {
88
+ "decoder_start_token_id": 250020
89
+ }
90
+ },
91
+ "torch_dtype": "float32",
92
+ "transformers_version": "4.26.1",
93
+ "use_cache": true,
94
+ "vocab_size": 34851
95
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 2,
5
+ "forced_eos_token_id": 2,
6
+ "max_length": 1024,
7
+ "num_beams": 5,
8
+ "pad_token_id": 1,
9
+ "transformers_version": "4.26.1"
10
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ae59312135b5b347a26f502da7f784118f62c79e0550121461f13e41a229022
3
+ size 1717718141
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f4ef78efd0bb3aafbc049950f82ec7c94507b225e81a6c35695109ac5590f63
3
+ size 779353
special_tokens_map.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "de_SI"
4
+ ],
5
+ "bos_token": "<s>",
6
+ "cls_token": "<s>",
7
+ "eos_token": "</s>",
8
+ "mask_token": {
9
+ "content": "<mask>",
10
+ "lstrip": true,
11
+ "normalized": true,
12
+ "rstrip": false,
13
+ "single_word": false
14
+ },
15
+ "pad_token": "<pad>",
16
+ "sep_token": "</s>",
17
+ "unk_token": "<unk>"
18
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": null,
3
+ "bos_token": "<s>",
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "mask_token": {
7
+ "__type": "AddedToken",
8
+ "content": "<mask>",
9
+ "lstrip": true,
10
+ "normalized": true,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "model_max_length": 2048,
15
+ "name_or_path": "pretrained_models/trimmed_longmbart",
16
+ "pad_token": "<pad>",
17
+ "sep_token": "</s>",
18
+ "sp_model_kwargs": {},
19
+ "special_tokens_map_file": null,
20
+ "src_lang": null,
21
+ "tgt_lang": null,
22
+ "tokenizer_class": "MBartTokenizer",
23
+ "tokenizer_file": null,
24
+ "unk_token": "<unk>",
25
+ "use_fast": true
26
+ }
training_logs ADDED
The diff for this file is too large to render. See raw diff