radinplaid commited on
Commit
f88d04b
·
verified ·
1 Parent(s): 9a82197

Upload folder using huggingface_hub

Browse files
.ipynb_checkpoints/README-checkpoint.md ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ur
5
+ tags:
6
+ - translation
7
+ license: cc-by-4.0
8
+ datasets:
9
+ - quickmt/quickmt-train.ur-en
10
+ model-index:
11
+ - name: quickmt-en-ur
12
+ results:
13
+ - task:
14
+ name: Translation eng-urd
15
+ type: translation
16
+ args: eng-urd
17
+ dataset:
18
+ name: flores101-devtest
19
+ type: flores_101
20
+ args: eng_Latn urd_Arab devtest
21
+ metrics:
22
+ - name: BLEU
23
+ type: bleu
24
+ value: 20.79
25
+ - name: CHRF
26
+ type: chrf
27
+ value: 48.53
28
+ - name: COMET
29
+ type: comet
30
+ value: 77.69
31
+ ---
32
+
33
+
34
+ # `quickmt-en-ur` Neural Machine Translation Model
35
+
36
+ `quickmt-en-ur` is a reasonably fast and reasonably accurate neural machine translation model for translation from `en` into `ur`.
37
+
38
+
39
+ ## Model Information
40
+
41
+ * Trained using [`eole`](https://github.com/eole-nlp/eole)
42
+ * 195M 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.fa-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-ur ./quickmt-en-ur
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-ur/", 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
+
78
+ ```python
79
+ # Get alternative translations by sampling
80
+ # You can pass any cTranslate2 `translate_batch` arguments
81
+ t([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)
82
+ ```
83
+
84
+ > 'ہیلیفیکس ، نووا سکوشیا میں ڈلہوزی یونیورسٹی میں میڈیسن کے پروفیسر اور کینیڈا کے ذیابیطس ایسوسی ایشن کے طبی اور سائنسی تقسیم کے چیئرڈاکٹر اھود ار نے متنبہ کیا ہے کہ یہ ابھی ابتدائی دنوں میں تحقیقی کام جاری ہے۔'
85
+
86
+
87
+ 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`.
88
+
89
+
90
+ ## Metrics
91
+
92
+ `bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores) ("eng_Latn"->"urd_Arab"). `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 with a larger batch size).
93
+
94
+ | | bleu | chrf2 | comet22 | Time (s) |
95
+ |:---------------------------------|-------:|--------:|----------:|-----------:|
96
+ | quickmt/quickmt-en-ur | 20.79 | 48.53 | 77.69 | 1.44 |
97
+ | Helsinki-NLP/opus-mt-en-ur | 6.74 | 28.66 | 58.99 | 4.43 |
98
+ | facebook/nllb-200-distilled-600M | 21.02 | 48.71 | 81.12 | 27.58 |
99
+ | facebook/nllb-200-distilled-1.3B | 22.41 | 49.92 | 81.94 | 46.79 |
100
+ | facebook/m2m100_418M | 13.89 | 40.14 | 71.48 | 24.21 |
101
+ | facebook/m2m100_1.2B | 13.74 | 39.45 | 71.01 | 47.14 |
.ipynb_checkpoints/eole-config-checkpoint.yaml ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## IO
2
+ save_data: 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: ur.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.ur-en/en
22
+ path_tgt: hf://quickmt/quickmt-train.ur-en/ur
23
+ path_sco: hf://quickmt/quickmt-train.ur-en/sco
24
+ valid:
25
+ path_src: valid.en
26
+ path_tgt: valid.ur
27
+
28
+ transforms: [sentencepiece, filtertoolong]
29
+ transforms_configs:
30
+ sentencepiece:
31
+ src_subword_model: "en.spm.model"
32
+ tgt_subword_model: "ur.spm.model"
33
+ filtertoolong:
34
+ src_seq_length: 256
35
+ tgt_seq_length: 256
36
+
37
+ training:
38
+ # Run configuration
39
+ model_path: quickmt-en-ur-eole-model
40
+ #train_from: model
41
+ keep_checkpoint: 4
42
+ train_steps: 100000
43
+ save_checkpoint_steps: 5000
44
+ valid_steps: 5000
45
+
46
+ # Train on a single GPU
47
+ world_size: 1
48
+ gpu_ranks: [0]
49
+
50
+ # Batching 10240
51
+ batch_type: "tokens"
52
+ batch_size: 8000
53
+ valid_batch_size: 4096
54
+ batch_size_multiple: 8
55
+ accum_count: [10]
56
+ accum_steps: [0]
57
+
58
+ # Optimizer & Compute
59
+ compute_dtype: "fp16"
60
+ optim: "adamw"
61
+ #use_amp: False
62
+ learning_rate: 2.0
63
+ warmup_steps: 4000
64
+ decay_method: "noam"
65
+ adam_beta2: 0.998
66
+
67
+ # Data loading
68
+ bucket_size: 128000
69
+ num_workers: 4
70
+ prefetch_factor: 32
71
+
72
+ # Hyperparams
73
+ dropout_steps: [0]
74
+ dropout: [0.1]
75
+ attention_dropout: [0.1]
76
+ max_grad_norm: 0
77
+ label_smoothing: 0.1
78
+ average_decay: 0.0001
79
+ param_init_method: xavier_uniform
80
+ normalization: "tokens"
81
+
82
+ model:
83
+ architecture: "transformer"
84
+ share_embeddings: false
85
+ share_decoder_embeddings: false
86
+ hidden_size: 1024
87
+ encoder:
88
+ layers: 8
89
+ decoder:
90
+ layers: 2
91
+ heads: 8
92
+ transformer_ff: 4096
93
+ embeddings:
94
+ word_vec_size: 1024
95
+ position_encoding_type: "SinusoidalInterleaved"
96
+
README.md CHANGED
@@ -1,3 +1,101 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ur
5
+ tags:
6
+ - translation
7
+ license: cc-by-4.0
8
+ datasets:
9
+ - quickmt/quickmt-train.ur-en
10
+ model-index:
11
+ - name: quickmt-en-ur
12
+ results:
13
+ - task:
14
+ name: Translation eng-urd
15
+ type: translation
16
+ args: eng-urd
17
+ dataset:
18
+ name: flores101-devtest
19
+ type: flores_101
20
+ args: eng_Latn urd_Arab devtest
21
+ metrics:
22
+ - name: BLEU
23
+ type: bleu
24
+ value: 20.79
25
+ - name: CHRF
26
+ type: chrf
27
+ value: 48.53
28
+ - name: COMET
29
+ type: comet
30
+ value: 77.69
31
+ ---
32
+
33
+
34
+ # `quickmt-en-ur` Neural Machine Translation Model
35
+
36
+ `quickmt-en-ur` is a reasonably fast and reasonably accurate neural machine translation model for translation from `en` into `ur`.
37
+
38
+
39
+ ## Model Information
40
+
41
+ * Trained using [`eole`](https://github.com/eole-nlp/eole)
42
+ * 195M 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.fa-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-ur ./quickmt-en-ur
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-ur/", 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
+
78
+ ```python
79
+ # Get alternative translations by sampling
80
+ # You can pass any cTranslate2 `translate_batch` arguments
81
+ t([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)
82
+ ```
83
+
84
+ > 'ہیلیفیکس ، نووا سکوشیا میں ڈلہوزی یونیورسٹی میں میڈیسن کے پروفیسر اور کینیڈا کے ذیابیطس ایسوسی ایشن کے طبی اور سائنسی تقسیم کے چیئرڈاکٹر اھود ار نے متنبہ کیا ہے کہ یہ ابھی ابتدائی دنوں میں تحقیقی کام جاری ہے۔'
85
+
86
+
87
+ 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`.
88
+
89
+
90
+ ## Metrics
91
+
92
+ `bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores) ("eng_Latn"->"urd_Arab"). `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 with a larger batch size).
93
+
94
+ | | bleu | chrf2 | comet22 | Time (s) |
95
+ |:---------------------------------|-------:|--------:|----------:|-----------:|
96
+ | quickmt/quickmt-en-ur | 20.79 | 48.53 | 77.69 | 1.44 |
97
+ | Helsinki-NLP/opus-mt-en-ur | 6.74 | 28.66 | 58.99 | 4.43 |
98
+ | facebook/nllb-200-distilled-600M | 21.02 | 48.71 | 81.12 | 27.58 |
99
+ | facebook/nllb-200-distilled-1.3B | 22.41 | 49.92 | 81.94 | 46.79 |
100
+ | facebook/m2m100_418M | 13.89 | 40.14 | 71.48 | 24.21 |
101
+ | facebook/m2m100_1.2B | 13.74 | 39.45 | 71.01 | 47.14 |
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,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## IO
2
+ save_data: 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: ur.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.ur-en/en
22
+ path_tgt: hf://quickmt/quickmt-train.ur-en/ur
23
+ path_sco: hf://quickmt/quickmt-train.ur-en/sco
24
+ valid:
25
+ path_src: valid.en
26
+ path_tgt: valid.ur
27
+
28
+ transforms: [sentencepiece, filtertoolong]
29
+ transforms_configs:
30
+ sentencepiece:
31
+ src_subword_model: "en.spm.model"
32
+ tgt_subword_model: "ur.spm.model"
33
+ filtertoolong:
34
+ src_seq_length: 256
35
+ tgt_seq_length: 256
36
+
37
+ training:
38
+ # Run configuration
39
+ model_path: quickmt-en-ur-eole-model
40
+ #train_from: model
41
+ keep_checkpoint: 4
42
+ train_steps: 100000
43
+ save_checkpoint_steps: 5000
44
+ valid_steps: 5000
45
+
46
+ # Train on a single GPU
47
+ world_size: 1
48
+ gpu_ranks: [0]
49
+
50
+ # Batching 10240
51
+ batch_type: "tokens"
52
+ batch_size: 8000
53
+ valid_batch_size: 4096
54
+ batch_size_multiple: 8
55
+ accum_count: [10]
56
+ accum_steps: [0]
57
+
58
+ # Optimizer & Compute
59
+ compute_dtype: "fp16"
60
+ optim: "adamw"
61
+ #use_amp: False
62
+ learning_rate: 2.0
63
+ warmup_steps: 4000
64
+ decay_method: "noam"
65
+ adam_beta2: 0.998
66
+
67
+ # Data loading
68
+ bucket_size: 128000
69
+ num_workers: 4
70
+ prefetch_factor: 32
71
+
72
+ # Hyperparams
73
+ dropout_steps: [0]
74
+ dropout: [0.1]
75
+ attention_dropout: [0.1]
76
+ max_grad_norm: 0
77
+ label_smoothing: 0.1
78
+ average_decay: 0.0001
79
+ param_init_method: xavier_uniform
80
+ normalization: "tokens"
81
+
82
+ model:
83
+ architecture: "transformer"
84
+ share_embeddings: false
85
+ share_decoder_embeddings: false
86
+ hidden_size: 1024
87
+ encoder:
88
+ layers: 8
89
+ decoder:
90
+ layers: 2
91
+ heads: 8
92
+ transformer_ff: 4096
93
+ embeddings:
94
+ word_vec_size: 1024
95
+ position_encoding_type: "SinusoidalInterleaved"
96
+
eole-model/config.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "src_vocab": "en.eole.vocab",
3
+ "tgt_vocab_size": 20000,
4
+ "n_sample": 0,
5
+ "tensorboard_log_dir_dated": "tensorboard/Aug-20_10-00-36",
6
+ "tgt_vocab": "ur.eole.vocab",
7
+ "tensorboard_log_dir": "tensorboard",
8
+ "tensorboard": true,
9
+ "overwrite": true,
10
+ "report_every": 100,
11
+ "transforms": [
12
+ "sentencepiece",
13
+ "filtertoolong"
14
+ ],
15
+ "src_vocab_size": 20000,
16
+ "vocab_size_multiple": 8,
17
+ "valid_metrics": [
18
+ "BLEU"
19
+ ],
20
+ "save_data": "data",
21
+ "share_vocab": false,
22
+ "seed": 1234,
23
+ "training": {
24
+ "dropout": [
25
+ 0.1
26
+ ],
27
+ "dropout_steps": [
28
+ 0
29
+ ],
30
+ "max_grad_norm": 0.0,
31
+ "label_smoothing": 0.1,
32
+ "learning_rate": 2.0,
33
+ "keep_checkpoint": 4,
34
+ "batch_size": 8000,
35
+ "num_workers": 0,
36
+ "accum_steps": [
37
+ 0
38
+ ],
39
+ "attention_dropout": [
40
+ 0.1
41
+ ],
42
+ "save_checkpoint_steps": 5000,
43
+ "bucket_size": 128000,
44
+ "compute_dtype": "torch.float16",
45
+ "adam_beta2": 0.998,
46
+ "accum_count": [
47
+ 10
48
+ ],
49
+ "valid_steps": 5000,
50
+ "decay_method": "noam",
51
+ "model_path": "quickmt-en-ur-eole-model",
52
+ "valid_batch_size": 4096,
53
+ "world_size": 1,
54
+ "batch_size_multiple": 8,
55
+ "gpu_ranks": [
56
+ 0
57
+ ],
58
+ "param_init_method": "xavier_uniform",
59
+ "warmup_steps": 4000,
60
+ "normalization": "tokens",
61
+ "average_decay": 0.0001,
62
+ "optim": "adamw",
63
+ "train_steps": 100000,
64
+ "prefetch_factor": 32,
65
+ "batch_type": "tokens"
66
+ },
67
+ "data": {
68
+ "corpus_1": {
69
+ "transforms": [
70
+ "sentencepiece",
71
+ "filtertoolong"
72
+ ],
73
+ "path_tgt": "train.ur",
74
+ "path_align": null,
75
+ "path_src": "train.en"
76
+ },
77
+ "valid": {
78
+ "transforms": [
79
+ "sentencepiece",
80
+ "filtertoolong"
81
+ ],
82
+ "path_tgt": "valid.ur",
83
+ "path_align": null,
84
+ "path_src": "valid.en"
85
+ }
86
+ },
87
+ "model": {
88
+ "position_encoding_type": "SinusoidalInterleaved",
89
+ "share_embeddings": false,
90
+ "share_decoder_embeddings": false,
91
+ "heads": 8,
92
+ "transformer_ff": 4096,
93
+ "hidden_size": 1024,
94
+ "architecture": "transformer",
95
+ "embeddings": {
96
+ "src_word_vec_size": 1024,
97
+ "tgt_word_vec_size": 1024,
98
+ "position_encoding_type": "SinusoidalInterleaved",
99
+ "word_vec_size": 1024
100
+ },
101
+ "encoder": {
102
+ "position_encoding_type": "SinusoidalInterleaved",
103
+ "heads": 8,
104
+ "transformer_ff": 4096,
105
+ "encoder_type": "transformer",
106
+ "layers": 8,
107
+ "hidden_size": 1024,
108
+ "n_positions": null,
109
+ "src_word_vec_size": 1024
110
+ },
111
+ "decoder": {
112
+ "position_encoding_type": "SinusoidalInterleaved",
113
+ "heads": 8,
114
+ "transformer_ff": 4096,
115
+ "decoder_type": "transformer",
116
+ "layers": 2,
117
+ "hidden_size": 1024,
118
+ "n_positions": null,
119
+ "tgt_word_vec_size": 1024
120
+ }
121
+ },
122
+ "transforms_configs": {
123
+ "filtertoolong": {
124
+ "src_seq_length": 256,
125
+ "tgt_seq_length": 256
126
+ },
127
+ "sentencepiece": {
128
+ "tgt_subword_model": "${MODEL_PATH}/ur.spm.model",
129
+ "src_subword_model": "${MODEL_PATH}/en.spm.model"
130
+ }
131
+ }
132
+ }
eole-model/en.spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27f59c3dc803ba0fc30ac42666969bbf9ea2316c4e3bfc2ac9456127a0c745ee
3
+ size 587475
eole-model/model.00.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bbb82cbd23199101b9714af74360742c28acfcc09ceb944f45c6e9c8f7fa0e89
3
+ size 823882912
eole-model/ur.spm.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a9592d23b51ae0fafbdd8b1ee171039731ebaa1689b31164384d17bc7d3af2d
3
+ size 624096
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:3babbe991e86faaad2c413f22be78f12a8e5e34fb30acef3014d6eb3b7e98022
3
+ size 401699775
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:27f59c3dc803ba0fc30ac42666969bbf9ea2316c4e3bfc2ac9456127a0c745ee
3
+ size 587475
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:5a9592d23b51ae0fafbdd8b1ee171039731ebaa1689b31164384d17bc7d3af2d
3
+ size 624096