radinplaid commited on
Commit
9a1a9eb
·
verified ·
1 Parent(s): c8be292

Upload folder using huggingface_hub

Browse files
.ipynb_checkpoints/README-checkpoint.md ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ar
5
+ tags:
6
+ - translation
7
+ license: cc-by-4.0
8
+ datasets:
9
+ - quickmt/quickmt-train.ar-en
10
+ model-index:
11
+ - name: quickmt-en-ar
12
+ results:
13
+ - task:
14
+ name: Translation eng-ara
15
+ type: translation
16
+ args: eng-ara
17
+ dataset:
18
+ name: flores101-devtest
19
+ type: flores_101
20
+ args: eng_Latn ara_Arab devtest
21
+ metrics:
22
+ - name: CHRF
23
+ type: chrf
24
+ value: 61.59
25
+ - name: BLEU
26
+ type: bleu
27
+ value: 29.61
28
+ - name: COMET
29
+ type: comet
30
+ value: 86.28
31
+ ---
32
+
33
+
34
+ # `quickmt-en-ar` Neural Machine Translation Model
35
+
36
+ `quickmt-en-ar` is a reasonably fast and reasonably accurate neural machine translation model for translation from `en` into `ar`.
37
+
38
+
39
+ ## Model Information
40
+
41
+ * Trained using [`eole`](https://github.com/eole-nlp/eole)
42
+ * 185M parameter transformer 'big' with 8 encoder layers and 2 decoder layers
43
+ * 20k sentencepiece vocabularies
44
+ * Exported for fast inference to [CTranslate2](https://github.com/OpenNMT/CTranslate2) format
45
+ * Training data: https://huggingface.co/datasets/quickmt/quickmt-train.ar-en/tree/main
46
+
47
+ See the `eole` model configuration in this repository for further details and the `eole-model` for the raw `eole` (pytorch) model.
48
+
49
+
50
+ ## Usage with `quickmt`
51
+
52
+ You must install the Nvidia cuda toolkit first, if you want to do GPU inference.
53
+
54
+ Next, install the `quickmt` python library and download the model:
55
+
56
+ ```bash
57
+ git clone https://github.com/quickmt/quickmt.git
58
+ pip install ./quickmt/
59
+
60
+ quickmt-model-download quickmt/quickmt-en-ar ./quickmt-en-ar
61
+ ```
62
+
63
+ Finally use the model in python:
64
+
65
+ ```python
66
+ from quickmt import Translator
67
+
68
+ # Auto-detects GPU, set to "cpu" to force CPU inference
69
+ t = Translator("./quickmt-en-ar/", device="auto")
70
+
71
+ # Translate - set beam size to 5 for higher quality (but slower speed)
72
+ sample_text = 'Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days.'
73
+ t(sample_text, beam_size=5)
74
+
75
+ > 'حذر الدكتور إيهود أور ، أستاذ الطب في جامعة دالهوزي في هاليفاكس ، نوفا سكوتيا ورئيس القسم السريري والعلمي للجمعية الكندية للسكري من أن البحث لا يزال في أيامه الأولى.'
76
+
77
+ # Get alternative translations by sampling
78
+ # You can pass any cTranslate2 `translate_batch` arguments
79
+ t([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)
80
+
81
+ > 'وقال دكتور إيهود أور، استاذ الطب في جامعة دالهوزي في هاليفاكس، نوفا سكوشيا ورئيس القسم السريري والعلمي للجمعية الكندية للسكري، إن هذا البحث لا يزال في أيامه الأولى، وأضاف أن هذه المعلومات تعتبر دليلاً ضرورياً للإنجاز.'
82
+
83
+ ```
84
+
85
+ The model is in `ctranslate2` format, and the tokenizers are `sentencepiece`, so you can use `ctranslate2` directly instead of through `quickmt`. It is also possible to get this model to work with e.g. [LibreTranslate](https://libretranslate.com/) which also uses `ctranslate2` and `sentencepiece`.
86
+
87
+
88
+ ## Metrics
89
+
90
+ `bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores) ("kor_Hang"->"eng_Latn"). `comet22` with the [`comet`](https://github.com/Unbabel/COMET) library and the [default model](https://huggingface.co/Unbabel/wmt22-comet-da). "Time (s)" is the time in seconds to translate (using `ctranslate2`) the flores-devtest dataset (1012 sentences) on an RTX 4070s GPU with batch size 32 (faster speed is possible using a large batch size).
91
+
92
+
93
+ | | bleu | chrf2 | comet22 | Time (s) |
94
+ |:---------------------------------|-------:|--------:|----------:|-----------:|
95
+ | quickmt/quickmt-en-ar | 29.61 | 61.59 | 86.28 | 1 |
96
+ | Helsink-NLP/opus-mt-en-ar | 23.02 | 54.74 | 83.21 | 4.37 |
97
+ | facebook/nllb-200-distilled-600M | 23.03 | 55.13 | 84.84 | 28.4 |
98
+ | facebook/nllb-200-distilled-1.3B | 26.48 | 58.1 | 86.23 | 48.8 |
99
+ | facebook/m2m100_418M | 19.4 | 51.52 | 81.36 | 22.23 |
100
+ | facebook/m2m100_1.2B | 13.56 | 43.43 | 75.32 | 45.77 |
101
+
102
+ `quickmt-en-ar` is the fastest and highest quality.
.ipynb_checkpoints/config-checkpoint.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_source_bos": false,
3
+ "add_source_eos": false,
4
+ "bos_token": "<s>",
5
+ "decoder_start_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "layer_norm_epsilon": 1e-06,
8
+ "multi_query_attention": false,
9
+ "unk_token": "<unk>"
10
+ }
.ipynb_checkpoints/eole-config-checkpoint.yaml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## IO
2
+ save_data: en-ar/data
3
+ overwrite: True
4
+ seed: 1234
5
+ report_every: 100
6
+ valid_metrics: ["BLEU"]
7
+ tensorboard: true
8
+ tensorboard_log_dir: tensorboard
9
+
10
+ ### Vocab
11
+ src_vocab: en.eole.vocab
12
+ tgt_vocab: ar.eole.vocab
13
+ src_vocab_size: 20000
14
+ tgt_vocab_size: 20000
15
+ vocab_size_multiple: 8
16
+ share_vocab: false
17
+ n_sample: 0
18
+
19
+ data:
20
+ corpus_1:
21
+ path_src: hf://quickmt/quickmt-train.ar-en/en
22
+ path_tgt: hf://quickmt/quickmt-train.ar-en/ar
23
+ path_sco: hf://quickmt/quickmt-train.ar-en/sco
24
+ valid:
25
+ path_src: flores-dev.en
26
+ path_tgt: flores-dev.ar
27
+
28
+ transforms: [sentencepiece, filtertoolong]
29
+ transforms_configs:
30
+ sentencepiece:
31
+ src_subword_model: "en.spm.model"
32
+ tgt_subword_model: "ar.spm.model"
33
+ src_subword_alpha: 0.5
34
+ src_subword_nbest: -1
35
+ filtertoolong:
36
+ src_seq_length: 256
37
+ tgt_seq_length: 256
38
+
39
+ training:
40
+ # Run configuration
41
+ model_path: model
42
+ # train_from: model
43
+ keep_checkpoint: 4
44
+ save_checkpoint_steps: 1000
45
+ train_steps: 200000
46
+ valid_steps: 1000
47
+
48
+ # Train on a single GPU
49
+ world_size: 1
50
+ gpu_ranks: [0]
51
+
52
+ # Batching
53
+ batch_type: "tokens"
54
+ batch_size: 8192
55
+ valid_batch_size: 8192
56
+ batch_size_multiple: 8
57
+ accum_count: [16]
58
+ accum_steps: [0]
59
+
60
+ # Optimizer & Compute
61
+ compute_dtype: "fp16"
62
+ #use_amp: true
63
+ optim: "pagedadamw8bit"
64
+ learning_rate: 2.0
65
+ warmup_steps: 5000
66
+ decay_method: "noam"
67
+ adam_beta2: 0.998
68
+
69
+ # Data loading
70
+ bucket_size: 128000
71
+ num_workers: 4
72
+ prefetch_factor: 32
73
+
74
+ # Hyperparams
75
+ dropout_steps: [0]
76
+ dropout: [0.1]
77
+ attention_dropout: [0]
78
+ max_grad_norm: 2
79
+ label_smoothing: 0.1
80
+ average_decay: 0.0001
81
+ param_init_method: xavier_uniform
82
+ normalization: "tokens"
83
+
84
+ model:
85
+ architecture: "transformer"
86
+ layer_norm: standard
87
+ share_embeddings: false
88
+ share_decoder_embeddings: true
89
+ add_ffnbias: true
90
+ mlp_activation_fn: gelu
91
+ add_estimator: false
92
+ add_qkvbias: false
93
+ norm_eps: 1e-6
94
+ hidden_size: 1024
95
+ encoder:
96
+ layers: 8
97
+ decoder:
98
+ layers: 2
99
+ heads: 8
100
+ transformer_ff: 4096
101
+ embeddings:
102
+ word_vec_size: 1024
103
+ position_encoding_type: "SinusoidalInterleaved"
104
+
README.md CHANGED
@@ -1,3 +1,102 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ar
5
+ tags:
6
+ - translation
7
+ license: cc-by-4.0
8
+ datasets:
9
+ - quickmt/quickmt-train.ar-en
10
+ model-index:
11
+ - name: quickmt-en-ar
12
+ results:
13
+ - task:
14
+ name: Translation eng-ara
15
+ type: translation
16
+ args: eng-ara
17
+ dataset:
18
+ name: flores101-devtest
19
+ type: flores_101
20
+ args: eng_Latn ara_Arab devtest
21
+ metrics:
22
+ - name: CHRF
23
+ type: chrf
24
+ value: 61.59
25
+ - name: BLEU
26
+ type: bleu
27
+ value: 29.61
28
+ - name: COMET
29
+ type: comet
30
+ value: 86.28
31
+ ---
32
+
33
+
34
+ # `quickmt-en-ar` Neural Machine Translation Model
35
+
36
+ `quickmt-en-ar` is a reasonably fast and reasonably accurate neural machine translation model for translation from `en` into `ar`.
37
+
38
+
39
+ ## Model Information
40
+
41
+ * Trained using [`eole`](https://github.com/eole-nlp/eole)
42
+ * 185M parameter transformer 'big' with 8 encoder layers and 2 decoder layers
43
+ * 20k sentencepiece vocabularies
44
+ * Exported for fast inference to [CTranslate2](https://github.com/OpenNMT/CTranslate2) format
45
+ * Training data: https://huggingface.co/datasets/quickmt/quickmt-train.ar-en/tree/main
46
+
47
+ See the `eole` model configuration in this repository for further details and the `eole-model` for the raw `eole` (pytorch) model.
48
+
49
+
50
+ ## Usage with `quickmt`
51
+
52
+ You must install the Nvidia cuda toolkit first, if you want to do GPU inference.
53
+
54
+ Next, install the `quickmt` python library and download the model:
55
+
56
+ ```bash
57
+ git clone https://github.com/quickmt/quickmt.git
58
+ pip install ./quickmt/
59
+
60
+ quickmt-model-download quickmt/quickmt-en-ar ./quickmt-en-ar
61
+ ```
62
+
63
+ Finally use the model in python:
64
+
65
+ ```python
66
+ from quickmt import Translator
67
+
68
+ # Auto-detects GPU, set to "cpu" to force CPU inference
69
+ t = Translator("./quickmt-en-ar/", device="auto")
70
+
71
+ # Translate - set beam size to 5 for higher quality (but slower speed)
72
+ sample_text = 'Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days.'
73
+ t(sample_text, beam_size=5)
74
+
75
+ > 'حذر الدكتور إيهود أور ، أستاذ الطب في جامعة دالهوزي في هاليفاكس ، نوفا سكوتيا ورئيس القسم السريري والعلمي للجمعية الكندية للسكري من أن البحث لا يزال في أيامه الأولى.'
76
+
77
+ # Get alternative translations by sampling
78
+ # You can pass any cTranslate2 `translate_batch` arguments
79
+ t([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)
80
+
81
+ > 'وقال دكتور إيهود أور، استاذ الطب في جامعة دالهوزي في هاليفاكس، نوفا سكوشيا ورئيس القسم السريري والعلمي للجمعية الكندية للسكري، إن هذا البحث لا يزال في أيامه الأولى، وأضاف أن هذه المعلومات تعتبر دليلاً ضرورياً للإنجاز.'
82
+
83
+ ```
84
+
85
+ The model is in `ctranslate2` format, and the tokenizers are `sentencepiece`, so you can use `ctranslate2` directly instead of through `quickmt`. It is also possible to get this model to work with e.g. [LibreTranslate](https://libretranslate.com/) which also uses `ctranslate2` and `sentencepiece`.
86
+
87
+
88
+ ## Metrics
89
+
90
+ `bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores) ("kor_Hang"->"eng_Latn"). `comet22` with the [`comet`](https://github.com/Unbabel/COMET) library and the [default model](https://huggingface.co/Unbabel/wmt22-comet-da). "Time (s)" is the time in seconds to translate (using `ctranslate2`) the flores-devtest dataset (1012 sentences) on an RTX 4070s GPU with batch size 32 (faster speed is possible using a large batch size).
91
+
92
+
93
+ | | bleu | chrf2 | comet22 | Time (s) |
94
+ |:---------------------------------|-------:|--------:|----------:|-----------:|
95
+ | quickmt/quickmt-en-ar | 29.61 | 61.59 | 86.28 | 1 |
96
+ | Helsink-NLP/opus-mt-en-ar | 23.02 | 54.74 | 83.21 | 4.37 |
97
+ | facebook/nllb-200-distilled-600M | 23.03 | 55.13 | 84.84 | 28.4 |
98
+ | facebook/nllb-200-distilled-1.3B | 26.48 | 58.1 | 86.23 | 48.8 |
99
+ | facebook/m2m100_418M | 19.4 | 51.52 | 81.36 | 22.23 |
100
+ | facebook/m2m100_1.2B | 13.56 | 43.43 | 75.32 | 45.77 |
101
+
102
+ `quickmt-en-ar` is the fastest and highest quality.
config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_source_bos": false,
3
+ "add_source_eos": false,
4
+ "bos_token": "<s>",
5
+ "decoder_start_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "layer_norm_epsilon": 1e-06,
8
+ "multi_query_attention": false,
9
+ "unk_token": "<unk>"
10
+ }
eole-config.yaml ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## IO
2
+ save_data: en-ar/data
3
+ overwrite: True
4
+ seed: 1234
5
+ report_every: 100
6
+ valid_metrics: ["BLEU"]
7
+ tensorboard: true
8
+ tensorboard_log_dir: tensorboard
9
+
10
+ ### Vocab
11
+ src_vocab: en.eole.vocab
12
+ tgt_vocab: ar.eole.vocab
13
+ src_vocab_size: 20000
14
+ tgt_vocab_size: 20000
15
+ vocab_size_multiple: 8
16
+ share_vocab: false
17
+ n_sample: 0
18
+
19
+ data:
20
+ corpus_1:
21
+ path_src: hf://quickmt/quickmt-train.ar-en/en
22
+ path_tgt: hf://quickmt/quickmt-train.ar-en/ar
23
+ path_sco: hf://quickmt/quickmt-train.ar-en/sco
24
+ valid:
25
+ path_src: flores-dev.en
26
+ path_tgt: flores-dev.ar
27
+
28
+ transforms: [sentencepiece, filtertoolong]
29
+ transforms_configs:
30
+ sentencepiece:
31
+ src_subword_model: "en.spm.model"
32
+ tgt_subword_model: "ar.spm.model"
33
+ src_subword_alpha: 0.5
34
+ src_subword_nbest: -1
35
+ filtertoolong:
36
+ src_seq_length: 256
37
+ tgt_seq_length: 256
38
+
39
+ training:
40
+ # Run configuration
41
+ model_path: model
42
+ # train_from: model
43
+ keep_checkpoint: 4
44
+ save_checkpoint_steps: 1000
45
+ train_steps: 200000
46
+ valid_steps: 1000
47
+
48
+ # Train on a single GPU
49
+ world_size: 1
50
+ gpu_ranks: [0]
51
+
52
+ # Batching
53
+ batch_type: "tokens"
54
+ batch_size: 8192
55
+ valid_batch_size: 8192
56
+ batch_size_multiple: 8
57
+ accum_count: [16]
58
+ accum_steps: [0]
59
+
60
+ # Optimizer & Compute
61
+ compute_dtype: "fp16"
62
+ #use_amp: true
63
+ optim: "pagedadamw8bit"
64
+ learning_rate: 2.0
65
+ warmup_steps: 5000
66
+ decay_method: "noam"
67
+ adam_beta2: 0.998
68
+
69
+ # Data loading
70
+ bucket_size: 128000
71
+ num_workers: 4
72
+ prefetch_factor: 32
73
+
74
+ # Hyperparams
75
+ dropout_steps: [0]
76
+ dropout: [0.1]
77
+ attention_dropout: [0]
78
+ max_grad_norm: 2
79
+ label_smoothing: 0.1
80
+ average_decay: 0.0001
81
+ param_init_method: xavier_uniform
82
+ normalization: "tokens"
83
+
84
+ model:
85
+ architecture: "transformer"
86
+ layer_norm: standard
87
+ share_embeddings: false
88
+ share_decoder_embeddings: true
89
+ add_ffnbias: true
90
+ mlp_activation_fn: gelu
91
+ add_estimator: false
92
+ add_qkvbias: false
93
+ norm_eps: 1e-6
94
+ hidden_size: 1024
95
+ encoder:
96
+ layers: 8
97
+ decoder:
98
+ layers: 2
99
+ heads: 8
100
+ transformer_ff: 4096
101
+ embeddings:
102
+ word_vec_size: 1024
103
+ position_encoding_type: "SinusoidalInterleaved"
104
+
eole-model/ar.spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7b8bf117088a901628696f60ddd15e047057ccbdcf9b0996ca19e2779a234c7
3
+ size 642429
eole-model/config.json ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tensorboard_log_dir": "tensorboard",
3
+ "transforms": [
4
+ "sentencepiece",
5
+ "filtertoolong"
6
+ ],
7
+ "report_every": 100,
8
+ "tensorboard_log_dir_dated": "tensorboard/Mar-22_13-21-16",
9
+ "src_vocab_size": 20000,
10
+ "seed": 1234,
11
+ "tgt_vocab_size": 20000,
12
+ "overwrite": true,
13
+ "tgt_vocab": "ar.eole.vocab",
14
+ "tensorboard": true,
15
+ "src_vocab": "en.eole.vocab",
16
+ "valid_metrics": [
17
+ "BLEU"
18
+ ],
19
+ "share_vocab": false,
20
+ "save_data": "en-ar/data",
21
+ "vocab_size_multiple": 8,
22
+ "n_sample": 0,
23
+ "training": {
24
+ "dropout": [
25
+ 0.1
26
+ ],
27
+ "bucket_size": 128000,
28
+ "prefetch_factor": 200,
29
+ "warmup_steps": 5000,
30
+ "accum_steps": [
31
+ 0
32
+ ],
33
+ "accum_count": [
34
+ 8
35
+ ],
36
+ "adam_beta2": 0.998,
37
+ "normalization": "tokens",
38
+ "batch_type": "tokens",
39
+ "attention_dropout": [
40
+ 0.0
41
+ ],
42
+ "batch_size": 16384,
43
+ "learning_rate": 2.0,
44
+ "keep_checkpoint": 4,
45
+ "world_size": 1,
46
+ "optim": "pagedadamw8bit",
47
+ "average_decay": 0.0001,
48
+ "param_init_method": "xavier_uniform",
49
+ "decay_method": "noam",
50
+ "gpu_ranks": [
51
+ 0
52
+ ],
53
+ "max_grad_norm": 2.0,
54
+ "valid_steps": 1000,
55
+ "train_steps": 200000,
56
+ "num_workers": 0,
57
+ "valid_batch_size": 16384,
58
+ "dropout_steps": [
59
+ 0
60
+ ],
61
+ "model_path": "model",
62
+ "batch_size_multiple": 8,
63
+ "label_smoothing": 0.1,
64
+ "compute_dtype": "torch.float16",
65
+ "save_checkpoint_steps": 1000
66
+ },
67
+ "transforms_configs": {
68
+ "sentencepiece": {
69
+ "src_subword_nbest": -1,
70
+ "src_subword_alpha": 0.5,
71
+ "tgt_subword_model": "${MODEL_PATH}/ar.spm.model",
72
+ "src_subword_model": "${MODEL_PATH}/en.spm.model"
73
+ },
74
+ "filtertoolong": {
75
+ "src_seq_length": 256,
76
+ "tgt_seq_length": 256
77
+ }
78
+ },
79
+ "model": {
80
+ "add_ffnbias": true,
81
+ "hidden_size": 1024,
82
+ "heads": 8,
83
+ "share_embeddings": false,
84
+ "transformer_ff": 4096,
85
+ "share_decoder_embeddings": true,
86
+ "add_qkvbias": false,
87
+ "add_estimator": false,
88
+ "norm_eps": 1e-06,
89
+ "layer_norm": "standard",
90
+ "architecture": "transformer",
91
+ "mlp_activation_fn": "gelu",
92
+ "position_encoding_type": "SinusoidalInterleaved",
93
+ "embeddings": {
94
+ "position_encoding_type": "SinusoidalInterleaved",
95
+ "src_word_vec_size": 1024,
96
+ "word_vec_size": 1024,
97
+ "tgt_word_vec_size": 1024
98
+ },
99
+ "decoder": {
100
+ "norm_eps": 1e-06,
101
+ "add_ffnbias": true,
102
+ "layer_norm": "standard",
103
+ "hidden_size": 1024,
104
+ "decoder_type": "transformer",
105
+ "heads": 8,
106
+ "n_positions": null,
107
+ "transformer_ff": 4096,
108
+ "layers": 2,
109
+ "mlp_activation_fn": "gelu",
110
+ "position_encoding_type": "SinusoidalInterleaved",
111
+ "add_qkvbias": false,
112
+ "tgt_word_vec_size": 1024
113
+ },
114
+ "encoder": {
115
+ "encoder_type": "transformer",
116
+ "norm_eps": 1e-06,
117
+ "add_ffnbias": true,
118
+ "layer_norm": "standard",
119
+ "hidden_size": 1024,
120
+ "src_word_vec_size": 1024,
121
+ "heads": 8,
122
+ "n_positions": null,
123
+ "transformer_ff": 4096,
124
+ "layers": 8,
125
+ "mlp_activation_fn": "gelu",
126
+ "position_encoding_type": "SinusoidalInterleaved",
127
+ "add_qkvbias": false
128
+ }
129
+ },
130
+ "data": {
131
+ "corpus_1": {
132
+ "transforms": [
133
+ "sentencepiece",
134
+ "filtertoolong"
135
+ ],
136
+ "path_sco": "hf://quickmt/quickmt-train.ar-en/sco",
137
+ "path_src": "hf://quickmt/quickmt-train.ar-en/en",
138
+ "path_tgt": "hf://quickmt/quickmt-train.ar-en/ar",
139
+ "path_align": null
140
+ },
141
+ "valid": {
142
+ "transforms": [
143
+ "sentencepiece",
144
+ "filtertoolong"
145
+ ],
146
+ "path_src": "flores-dev.en",
147
+ "path_align": null,
148
+ "path_tgt": "flores-dev.ar"
149
+ }
150
+ }
151
+ }
eole-model/en.spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acf054421b5ed52bd6aee14564fb8595b9a6b492df669e971d43fba9edb33c16
3
+ size 589684
eole-model/model.00.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6706542318bbb3f68b0245ec435c90f6b89d62b6320b62c0955aa61242eded3b
3
+ size 742170000
eole-model/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b053bf9e989a3685f902eafac1d8128f8fcf833b90fdd142254f08bd73ca5af
3
+ size 360843109
source_vocabulary.json ADDED
The diff for this file is too large to render. See raw diff
 
src.spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acf054421b5ed52bd6aee14564fb8595b9a6b492df669e971d43fba9edb33c16
3
+ size 589684
target_vocabulary.json ADDED
The diff for this file is too large to render. See raw diff
 
tgt.spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7b8bf117088a901628696f60ddd15e047057ccbdcf9b0996ca19e2779a234c7
3
+ size 642429