Upload folder using huggingface_hub
Browse filesFiles changed (14)
- .ipynb_checkpoints/README-checkpoint.md+39-23
- .ipynb_checkpoints/eole-config-checkpoint.yamlAdded+110
- README.md+39-23
- eole-config.yaml+35-19
- eole-model/config.json+102-65
- eole-model/en.spm.model+2-2
- eole-model/ja.spm.model+2-2
- eole-model/model.00.safetensors+2-2
- eole-model/vocab.json
- model.bin+2-2
- source_vocabulary.json
- src.spm.model+2-2
- target_vocabulary.json
- tgt.spm.model+2-2
6 unmodified lines7891011121314151617181920212223242526272829303132331 unmodified line35363738394041424344454647486 unmodified lines5556575859606162634 unmodified lines68697071727374757677787980818283848586878889909192939495969798991006 unmodified lineslicense: cc-by-4.0datasets:- quickmt/quickmt-train.ja-enmodel-index:- name: quickmt-ja-enresults:- task:name: Translation jpn-engtype: translationargs: jpn-engdataset:name: flores101-devtesttype: flores_101args: jpn_Japn eng_Latn devtestmetrics:- name: CHRFtype: chrfvalue: 57.06- name: BLEUtype: bleuvalue: 27.91- name: COMETtype: cometvalue: 87.29---1 unmodified line`quickmt-ja-en` is a reasonably fast and reasonably accurate neural machine translation model for translation from `ja` into `en`.## Model Information* Trained using [`eole`](https://github.com/eole-nlp/eole)* 185M parameter transformer 'big' with 8 encoder layers and 2 decoder layers* 20k sentencepiece vocabularies* Exported for fast inference to [CTranslate2](https://github.com/OpenNMT/CTranslate2) format* Training data: https://huggingface.co/datasets/quickmt/quickmt-train.ja-en/tree/mainSee the `eole` model configuration in this repository for further details and the `eole-model` for the raw `eole` (pytorch) model.6 unmodified lines```bashgit clone https://github.com/quickmt/quickmt.gitpip install ./quickmt/quickmt-model-download quickmt/quickmt-ja-en ./quickmt-ja-en```Finally use the model in python:4 unmodified lines# Auto-detects GPU, set to "cpu" to force CPU inferencet = Translator("./quickmt-ja-en/", device="auto")# Translate - set beam size to 5 for higher quality (but slower speed)sample_text = 'ノバスコシア州ハリファックスにあるダルハウジー大学医学部教授でカナダ糖尿病協会の臨床・科学部門の責任者を務めるエフード・ウル博士は、この研究はまだ初期段階にあるとして注意を促しました。't(sample_text, beam_size=5)> 'Dr. Ehud Ulu, a professor of medicine at Dalhousie University in Halifax, Nova Scotia and head of the clinical and scientific division of the Canadian Diabetes Association, cautioned that the study is still in its early stages.'# Get alternative translations by sampling# You can pass any cTranslate2 `translate_batch` argumentst([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)> 'Dr Ehud Ul, professor of medicine at the University of Dalhousie’s Halifax, Nova Scotia and head of the clinical and scientific division of the Canadian Diabetes Society, noted the study is in its early stages.'```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`.## Metrics`bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores) ("jpn_Jpan"->"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).| | bleu | chrf2 | comet22 | Time (s) ||:---------------------------------|-------:|--------:|----------:|-----------:|| quickmt/quickmt-ja-en | 27.91 | 57.06 | 87.29 | 1.00 || Helsink-NLP/opus-mt-ja-en | 19.22 | 49.15 | 82.64 | 3.54 || facebook/nllb-200-distilled-600M | 24.05 | 53.39 | 85.84 | 22.5 || facebook/nllb-200-distilled-1.3B | 28.4 | 56.96 | 87.47 | 37.15 || facebook/m2m100_418M | 18.82 | 49.55 | 82.59 | 18.27 || facebook/m2m100_1.2B | 23.32 | 53.46 | 85.43 | 35.44 |`quickmt-ja-en` is the fastest and nearly as high-quality as facebook/nllb-200-distilled-1.3B.6 unmodified lines78910111213141516171819202122232425262728293031323334351 unmodified line37383940414243444546474849505152535455565758596061626 unmodified lines6970717273747576774 unmodified lines8283848586878889909192939495969798991001011021031041051061071081091101111121131141151166 unmodified lineslicense: cc-by-4.0datasets:- quickmt/quickmt-train.ja-en- quickmt/madlad400-en-backtranslated-ja- quickmt/newscrawl2024-en-backtranslated-jamodel-index:- name: quickmt-ja-enresults:- task:name: Translation jap-engtype: translationargs: jpn-engdataset:name: flores101-devtesttype: flores_101args: jpn_Jpan eng_Latn devtestmetrics:- name: BLEUtype: bleuvalue: 28.87- name: CHRFtype: chrfvalue: 58.56- name: COMETtype: cometvalue: 87.83---1 unmodified line`quickmt-ja-en` is a reasonably fast and reasonably accurate neural machine translation model for translation from `ja` into `en`.`quickmt` models are roughly 3 times faster for GPU inference than OpusMT models and roughly [40 times](https://huggingface.co/spaces/quickmt/quickmt-vs-libretranslate) faster than [LibreTranslate](https://huggingface.co/spaces/quickmt/quickmt-vs-libretranslate)/[ArgosTranslate](github.com/argosopentech/argos-translate).## *UPDATED!*This model was trained with back-translated data and a slightly different configuration and has improved translation quality!## Try it on our Huggingface SpaceGive it a try before downloading here: https://huggingface.co/spaces/quickmt/QuickMT-Demo## Model Information* Trained using [`eole`](https://github.com/eole-nlp/eole)* 200M parameter seq2seq transformer* 32k separate Sentencepiece vocabs* Exported for fast inference to [CTranslate2](https://github.com/OpenNMT/CTranslate2) format* The pytorch model (for use with [`eole`](https://github.com/eole-nlp/eole)) is available in this repository in the `eole-model` folderSee the `eole` model configuration in this repository for further details and the `eole-model` for the raw `eole` (pytorch) model.6 unmodified lines```bashgit clone https://github.com/quickmt/quickmt.gitpip install -e ./quickmt/quickmt-model-download quickmt/quickmt-zh-en ./quickmt-ja-en```Finally use the model in python:4 unmodified lines# Auto-detects GPU, set to "cpu" to force CPU inferencet = Translator("./quickmt-ja-en/", device="auto")# Translate - set beam size to 1 for faster speed (but lower quality)sample_text = 'ノバスコシア州ハリファックスにあるダルハウジー大学医学部教授でカナダ糖尿病協会の臨床・科学部門の責任者を務めるエフード・ウル博士は、この研究はまだ初期段階にあるとして注意を促しました。't(sample_text, beam_size=5)```> 'Dr Ehud Ulu, professor of medicine at Dalhousie University in Halifax, Nova Scotia and head of the clinical and scientific division of the Canadian Diabetes Association, urged caution as the study is still in its infancy.'```python# Get alternative translations by sampling# You can pass any cTranslate2 `translate_batch` argumentst([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)```> 'Dr Ehud Ulu, Professor of Medicine at Dalhousie University in Halifax, Nova Scotia and head of clinical and scientific departments for the Canadian Diabetes Society, urged caution, saying the research was still in its early stages.'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`. A model in safetensors format to be used with `eole` is also provided.## Metrics`bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores), `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 the flores-devtest dataset (1012 sentences) on an RTX 4070s GPU with batch size 32.| | bleu | chrf2 | comet22 | Time (s) ||:---------------------------------|-------:|--------:|----------:|-----------:|| quickmt/quickmt-ja-en | 28.87 | 58.56 | 87.83 | 1.10 || Helsink-NLP/opus-mt-ja-en | 19.22 | 49.15 | 82.64 | 3.54 || facebook/nllb-200-distilled-600M | 24.05 | 53.39 | 85.84 | 22.5 || facebook/nllb-200-distilled-1.3B | 28.4 | 56.96 | 87.47 | 37.15 || facebook/m2m100_418M | 18.82 | 49.55 | 82.59 | 18.27 || facebook/m2m100_1.2B | 23.32 | 53.46 | 85.43 | 35.44 |
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110## IOsave_data: dataoverwrite: Trueseed: 1234report_every: 100valid_metrics: ["BLEU"]tensorboard: truetensorboard_log_dir: tensorboard
### Vocabsrc_vocab: ja.eole.vocabtgt_vocab: en.eole.vocabsrc_vocab_size: 32000tgt_vocab_size: 32000vocab_size_multiple: 8share_vocab: falsen_sample: 0
data: corpus_1: path_src: hf://quickmt/quickmt-train.ja-en/ja path_tgt: hf://quickmt/quickmt-train.ja-en/en path_sco: hf://quickmt/quickmt-train.ja-en/sco weight: 2 corpus_2: path_src: hf://quickmt/newscrawl2024-en-backtranslated-ja/ja path_tgt: hf://quickmt/newscrawl2024-en-backtranslated-ja/en path_sco: hf://quickmt/newscrawl2024-en-backtranslated-ja/sco weight: 1 corpus_3: path_src: hf://quickmt/madlad400-en-backtranslated-ja/ja path_tgt: hf://quickmt/madlad400-en-backtranslated-ja/en path_sco: hf://quickmt/madlad400-en-backtranslated-ja/sco weight: 2 valid: path_src: valid.ja path_tgt: valid.en
transforms: [sentencepiece, filtertoolong]transforms_configs: sentencepiece: src_subword_model: "ja.spm.model" tgt_subword_model: "en.spm.model" filtertoolong: src_seq_length: 256 tgt_seq_length: 256
training: # Run configuration model_path: quickmt-ja-en-eole-model keep_checkpoint: 4 train_steps: 200000 save_checkpoint_steps: 5000 valid_steps: 5000
# Train on a single GPU world_size: 1 gpu_ranks: [0] batch_type: "tokens" batch_size: 15000 valid_batch_size: 2048 batch_size_multiple: 8 accum_count: [8] accum_steps: [0]
# Optimizer & Compute compute_dtype: "fp16" optim: "adamw" learning_rate: 3.0 warmup_steps: 5000 decay_method: "noam" adam_beta2: 0.998
# Data loading bucket_size: 256000 num_workers: 4 prefetch_factor: 64 # Hyperparams dropout_steps: [0] dropout: [0.1] attention_dropout: [0.1] max_grad_norm: 0 label_smoothing: 0.1 average_decay: 0.0001 param_init_method: xavier_uniform normalization: "tokens"
model: architecture: "transformer" share_embeddings: false share_decoder_embeddings: false add_estimator: false add_ffnbias: true add_qkvbias: false layer_norm: standard mlp_activation_fn: gelu hidden_size: 768 encoder: layers: 12 decoder: layers: 2 heads: 16 transformer_ff: 4096 embeddings: word_vec_size: 768 position_encoding_type: "SinusoidalInterleaved"
6 unmodified lines7891011121314151617181920212223242526272829303132331 unmodified line35363738394041424344454647486 unmodified lines5556575859606162634 unmodified lines68697071727374757677787980818283848586878889909192939495969798991006 unmodified lineslicense: cc-by-4.0datasets:- quickmt/quickmt-train.ja-enmodel-index:- name: quickmt-ja-enresults:- task:name: Translation jpn-engtype: translationargs: jpn-engdataset:name: flores101-devtesttype: flores_101args: jpn_Japn eng_Latn devtestmetrics:- name: CHRFtype: chrfvalue: 57.06- name: BLEUtype: bleuvalue: 27.91- name: COMETtype: cometvalue: 87.29---1 unmodified line`quickmt-ja-en` is a reasonably fast and reasonably accurate neural machine translation model for translation from `ja` into `en`.## Model Information* Trained using [`eole`](https://github.com/eole-nlp/eole)* 185M parameter transformer 'big' with 8 encoder layers and 2 decoder layers* 20k sentencepiece vocabularies* Exported for fast inference to [CTranslate2](https://github.com/OpenNMT/CTranslate2) format* Training data: https://huggingface.co/datasets/quickmt/quickmt-train.ja-en/tree/mainSee the `eole` model configuration in this repository for further details and the `eole-model` for the raw `eole` (pytorch) model.6 unmodified lines```bashgit clone https://github.com/quickmt/quickmt.gitpip install ./quickmt/quickmt-model-download quickmt/quickmt-ja-en ./quickmt-ja-en```Finally use the model in python:4 unmodified lines# Auto-detects GPU, set to "cpu" to force CPU inferencet = Translator("./quickmt-ja-en/", device="auto")# Translate - set beam size to 5 for higher quality (but slower speed)sample_text = 'ノバスコシア州ハリファックスにあるダルハウジー大学医学部教授でカナダ糖尿病協会の臨床・科学部門の責任者を務めるエフード・ウル博士は、この研究はまだ初期段階にあるとして注意を促しました。't(sample_text, beam_size=5)> 'Dr. Ehud Ulu, a professor of medicine at Dalhousie University in Halifax, Nova Scotia and head of the clinical and scientific division of the Canadian Diabetes Association, cautioned that the study is still in its early stages.'# Get alternative translations by sampling# You can pass any cTranslate2 `translate_batch` argumentst([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)> 'Dr Ehud Ul, professor of medicine at the University of Dalhousie’s Halifax, Nova Scotia and head of the clinical and scientific division of the Canadian Diabetes Society, noted the study is in its early stages.'```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`.## Metrics`bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores) ("jpn_Jpan"->"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).| | bleu | chrf2 | comet22 | Time (s) ||:---------------------------------|-------:|--------:|----------:|-----------:|| quickmt/quickmt-ja-en | 27.91 | 57.06 | 87.29 | 1.00 || Helsink-NLP/opus-mt-ja-en | 19.22 | 49.15 | 82.64 | 3.54 || facebook/nllb-200-distilled-600M | 24.05 | 53.39 | 85.84 | 22.5 || facebook/nllb-200-distilled-1.3B | 28.4 | 56.96 | 87.47 | 37.15 || facebook/m2m100_418M | 18.82 | 49.55 | 82.59 | 18.27 || facebook/m2m100_1.2B | 23.32 | 53.46 | 85.43 | 35.44 |`quickmt-ja-en` is the fastest and nearly as high-quality as facebook/nllb-200-distilled-1.3B.6 unmodified lines78910111213141516171819202122232425262728293031323334351 unmodified line37383940414243444546474849505152535455565758596061626 unmodified lines6970717273747576774 unmodified lines8283848586878889909192939495969798991001011021031041051061071081091101111121131141151166 unmodified lineslicense: cc-by-4.0datasets:- quickmt/quickmt-train.ja-en- quickmt/madlad400-en-backtranslated-ja- quickmt/newscrawl2024-en-backtranslated-jamodel-index:- name: quickmt-ja-enresults:- task:name: Translation jap-engtype: translationargs: jpn-engdataset:name: flores101-devtesttype: flores_101args: jpn_Jpan eng_Latn devtestmetrics:- name: BLEUtype: bleuvalue: 28.87- name: CHRFtype: chrfvalue: 58.56- name: COMETtype: cometvalue: 87.83---1 unmodified line`quickmt-ja-en` is a reasonably fast and reasonably accurate neural machine translation model for translation from `ja` into `en`.`quickmt` models are roughly 3 times faster for GPU inference than OpusMT models and roughly [40 times](https://huggingface.co/spaces/quickmt/quickmt-vs-libretranslate) faster than [LibreTranslate](https://huggingface.co/spaces/quickmt/quickmt-vs-libretranslate)/[ArgosTranslate](github.com/argosopentech/argos-translate).## *UPDATED!*This model was trained with back-translated data and a slightly different configuration and has improved translation quality!## Try it on our Huggingface SpaceGive it a try before downloading here: https://huggingface.co/spaces/quickmt/QuickMT-Demo## Model Information* Trained using [`eole`](https://github.com/eole-nlp/eole)* 200M parameter seq2seq transformer* 32k separate Sentencepiece vocabs* Exported for fast inference to [CTranslate2](https://github.com/OpenNMT/CTranslate2) format* The pytorch model (for use with [`eole`](https://github.com/eole-nlp/eole)) is available in this repository in the `eole-model` folderSee the `eole` model configuration in this repository for further details and the `eole-model` for the raw `eole` (pytorch) model.6 unmodified lines```bashgit clone https://github.com/quickmt/quickmt.gitpip install -e ./quickmt/quickmt-model-download quickmt/quickmt-zh-en ./quickmt-ja-en```Finally use the model in python:4 unmodified lines# Auto-detects GPU, set to "cpu" to force CPU inferencet = Translator("./quickmt-ja-en/", device="auto")# Translate - set beam size to 1 for faster speed (but lower quality)sample_text = 'ノバスコシア州ハリファックスにあるダルハウジー大学医学部教授でカナダ糖尿病協会の臨床・科学部門の責任者を務めるエフード・ウル博士は、この研究はまだ初期段階にあるとして注意を促しました。't(sample_text, beam_size=5)```> 'Dr Ehud Ulu, professor of medicine at Dalhousie University in Halifax, Nova Scotia and head of the clinical and scientific division of the Canadian Diabetes Association, urged caution as the study is still in its infancy.'```python# Get alternative translations by sampling# You can pass any cTranslate2 `translate_batch` argumentst([sample_text], sampling_temperature=1.2, beam_size=1, sampling_topk=50, sampling_topp=0.9)```> 'Dr Ehud Ulu, Professor of Medicine at Dalhousie University in Halifax, Nova Scotia and head of clinical and scientific departments for the Canadian Diabetes Society, urged caution, saying the research was still in its early stages.'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`. A model in safetensors format to be used with `eole` is also provided.## Metrics`bleu` and `chrf2` are calculated with [sacrebleu](https://github.com/mjpost/sacrebleu) on the [Flores200 `devtest` test set](https://huggingface.co/datasets/facebook/flores), `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 the flores-devtest dataset (1012 sentences) on an RTX 4070s GPU with batch size 32.| | bleu | chrf2 | comet22 | Time (s) ||:---------------------------------|-------:|--------:|----------:|-----------:|| quickmt/quickmt-ja-en | 28.87 | 58.56 | 87.83 | 1.10 || Helsink-NLP/opus-mt-ja-en | 19.22 | 49.15 | 82.64 | 3.54 || facebook/nllb-200-distilled-600M | 24.05 | 53.39 | 85.84 | 22.5 || facebook/nllb-200-distilled-1.3B | 28.4 | 56.96 | 87.47 | 37.15 || facebook/m2m100_418M | 18.82 | 49.55 | 82.59 | 18.27 || facebook/m2m100_1.2B | 23.32 | 53.46 | 85.43 | 35.44 |
9 unmodified lines10111213141516173 unmodified lines212223242526272829305 unmodified lines36373839404142434445464748495051525354551 unmodified line5758596061626364656667686970719 unmodified lines81828384858687888990919293949 unmodified lines### Vocabsrc_vocab: ja.eole.vocabtgt_vocab: en.eole.vocabsrc_vocab_size: 20000tgt_vocab_size: 20000vocab_size_multiple: 8share_vocab: falsen_sample: 03 unmodified linespath_src: hf://quickmt/quickmt-train.ja-en/japath_tgt: hf://quickmt/quickmt-train.ja-en/enpath_sco: hf://quickmt/quickmt-train.ja-en/scovalid:path_src: valid.japath_tgt: valid.entransforms: [sentencepiece, filtertoolong]transforms_configs:sentencepiece:5 unmodified linestraining:# Run configurationmodel_path: eole-modelkeep_checkpoint: 4train_steps: 108000save_checkpoint_steps: 2000valid_steps: 2000# Train on a single GPUworld_size: 1gpu_ranks: [0]# Batching 10240batch_type: "tokens"batch_size: 8000valid_batch_size: 4096batch_size_multiple: 8accum_count: [8]accum_steps: [0]1 unmodified line# Optimizer & Computecompute_dtype: "fp16"optim: "adamw"learning_rate: 2.0warmup_steps: 4000decay_method: "noam"adam_beta2: 0.998# Data loadingbucket_size: 128000num_workers: 4prefetch_factor: 32# Hyperparamsdropout_steps: [0]9 unmodified linesarchitecture: "transformer"share_embeddings: falseshare_decoder_embeddings: falsehidden_size: 1024encoder:layers: 8decoder:layers: 2heads: 8transformer_ff: 4096embeddings:word_vec_size: 1024position_encoding_type: "SinusoidalInterleaved"9 unmodified lines10111213141516173 unmodified lines21222324252627282930313233343536373839404142435 unmodified lines4950515253545556575859606162636465661 unmodified line6869707172737475767778798081829 unmodified lines92939495969798991001011021031041051061071081091109 unmodified lines### Vocabsrc_vocab: ja.eole.vocabtgt_vocab: en.eole.vocabsrc_vocab_size: 32000tgt_vocab_size: 32000vocab_size_multiple: 8share_vocab: falsen_sample: 03 unmodified linespath_src: hf://quickmt/quickmt-train.ja-en/japath_tgt: hf://quickmt/quickmt-train.ja-en/enpath_sco: hf://quickmt/quickmt-train.ja-en/scoweight: 2corpus_2:path_src: hf://quickmt/newscrawl2024-en-backtranslated-ja/japath_tgt: hf://quickmt/newscrawl2024-en-backtranslated-ja/enpath_sco: hf://quickmt/newscrawl2024-en-backtranslated-ja/scoweight: 1corpus_3:path_src: hf://quickmt/madlad400-en-backtranslated-ja/japath_tgt: hf://quickmt/madlad400-en-backtranslated-ja/enpath_sco: hf://quickmt/madlad400-en-backtranslated-ja/scoweight: 2valid:path_src: valid.japath_tgt: valid.entransforms: [sentencepiece, filtertoolong]transforms_configs:sentencepiece:5 unmodified linestraining:# Run configurationmodel_path: quickmt-ja-en-eole-modelkeep_checkpoint: 4train_steps: 200000save_checkpoint_steps: 5000valid_steps: 5000# Train on a single GPUworld_size: 1gpu_ranks: [0]batch_type: "tokens"batch_size: 15000valid_batch_size: 2048batch_size_multiple: 8accum_count: [8]accum_steps: [0]1 unmodified line# Optimizer & Computecompute_dtype: "fp16"optim: "adamw"learning_rate: 3.0warmup_steps: 5000decay_method: "noam"adam_beta2: 0.998# Data loadingbucket_size: 256000num_workers: 4prefetch_factor: 64# Hyperparamsdropout_steps: [0]9 unmodified linesarchitecture: "transformer"share_embeddings: falseshare_decoder_embeddings: falseadd_estimator: falseadd_ffnbias: trueadd_qkvbias: falselayer_norm: standardmlp_activation_fn: geluhidden_size: 768encoder:layers: 12decoder:layers: 2heads: 16transformer_ff: 4096embeddings:word_vec_size: 768position_encoding_type: "SinusoidalInterleaved"
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071082 unmodified lines111112113114115116117118119120121122123124125126127128129130131132{"n_sample": 0,"overwrite": true,"save_data": "data","tgt_vocab_size": 20000,"seed": 1234,"share_vocab": false,"tensorboard_log_dir": "tensorboard","report_every": 100,"tensorboard": true,"tgt_vocab": "en.eole.vocab","vocab_size_multiple": 8,"src_vocab": "ja.eole.vocab","src_vocab_size": 20000,"tensorboard_log_dir_dated": "tensorboard/Apr-15_05-55-59","transforms": ["sentencepiece","filtertoolong"],"valid_metrics": ["BLEU"],"training": {"save_checkpoint_steps": 2000,"max_grad_norm": 0.0,"dropout": [0.1],"dropout_steps": [0],"label_smoothing": 0.1,"keep_checkpoint": 4,"prefetch_factor": 32,"valid_steps": 2000,"optim": "adamw","gpu_ranks": [0],"bucket_size": 128000,"batch_size": 8000,"average_decay": 0.0001,"compute_dtype": "torch.float16","param_init_method": "xavier_uniform","decay_method": "noam","num_workers": 0,"warmup_steps": 4000,"attention_dropout": [0.1],"model_path": "quickmt-ja-en-eole-model","accum_count": [8],"batch_size_multiple": 8,"train_steps": 200000,"accum_steps": [0],"adam_beta2": 0.998,"learning_rate": 2.0,"normalization": "tokens","valid_batch_size": 4096,"world_size": 1,"batch_type": "tokens"},"model": {"transformer_ff": 4096,"share_decoder_embeddings": false,"architecture": "transformer","position_encoding_type": "SinusoidalInterleaved","share_embeddings": false,"heads": 8,"hidden_size": 1024,"encoder": {"layers": 8,"transformer_ff": 4096,"position_encoding_type": "SinusoidalInterleaved","src_word_vec_size": 1024,"n_positions": null,"encoder_type": "transformer","heads": 8,"hidden_size": 1024},"embeddings": {"tgt_word_vec_size": 1024,"position_encoding_type": "SinusoidalInterleaved","word_vec_size": 1024,"src_word_vec_size": 1024},"decoder": {"layers": 2,"transformer_ff": 4096,"position_encoding_type": "SinusoidalInterleaved","n_positions": null,"decoder_type": "transformer","tgt_word_vec_size": 1024,"heads": 8,"hidden_size": 1024}},"transforms_configs": {"sentencepiece": {"src_subword_model": "${MODEL_PATH}/ja.spm.model","tgt_subword_model": "${MODEL_PATH}/en.spm.model"},"filtertoolong": {"tgt_seq_length": 256,2 unmodified lines},"data": {"corpus_1": {"path_tgt": "en.txt","path_align": null,"transforms": ["sentencepiece","filtertoolong"],"path_src": "ja.txt"},"valid": {"path_tgt": "valid.en","path_align": null,"transforms": ["sentencepiece","filtertoolong"],"path_src": "valid.ja"}}}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201212 unmodified lines124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169{"src_vocab": "ja.eole.vocab","save_data": "data","valid_metrics": ["BLEU"],"tensorboard_log_dir": "tensorboard","report_every": 100,"vocab_size_multiple": 8,"seed": 1234,"transforms": ["sentencepiece","filtertoolong"],"overwrite": true,"src_vocab_size": 32000,"tgt_vocab": "en.eole.vocab","share_vocab": false,"tensorboard": true,"n_sample": 0,"tgt_vocab_size": 32000,"tensorboard_log_dir_dated": "tensorboard/Dec-24_20-29-50","training": {"batch_type": "tokens","param_init_method": "xavier_uniform","batch_size_multiple": 8,"learning_rate": 3.0,"attention_dropout": [0.1],"accum_steps": [0],"batch_size": 15000,"model_path": "quickmt-ja-en-eole-model","keep_checkpoint": 4,"adam_beta2": 0.998,"gpu_ranks": [0],"average_decay": 0.0001,"warmup_steps": 5000,"valid_steps": 5000,"dropout": [0.1],"dropout_steps": [0],"prefetch_factor": 64,"max_grad_norm": 0.0,"world_size": 1,"compute_dtype": "torch.float16","train_steps": 200000,"accum_count": [8],"num_workers": 0,"normalization": "tokens","decay_method": "noam","optim": "adamw","valid_batch_size": 2048,"bucket_size": 256000,"label_smoothing": 0.1,"save_checkpoint_steps": 5000},"model": {"layer_norm": "standard","hidden_size": 768,"add_estimator": false,"mlp_activation_fn": "gelu","share_embeddings": false,"heads": 16,"transformer_ff": 4096,"add_qkvbias": false,"share_decoder_embeddings": false,"position_encoding_type": "SinusoidalInterleaved","add_ffnbias": true,"architecture": "transformer","encoder": {"src_word_vec_size": 768,"n_positions": null,"layer_norm": "standard","encoder_type": "transformer","hidden_size": 768,"mlp_activation_fn": "gelu","heads": 16,"transformer_ff": 4096,"position_encoding_type": "SinusoidalInterleaved","add_ffnbias": true,"add_qkvbias": false,"layers": 12},"embeddings": {"word_vec_size": 768,"src_word_vec_size": 768,"tgt_word_vec_size": 768,"position_encoding_type": "SinusoidalInterleaved"},"decoder": {"n_positions": null,"layer_norm": "standard","hidden_size": 768,"mlp_activation_fn": "gelu","tgt_word_vec_size": 768,"layers": 2,"heads": 16,"transformer_ff": 4096,"position_encoding_type": "SinusoidalInterleaved","add_ffnbias": true,"add_qkvbias": false,"decoder_type": "transformer"}},"transforms_configs": {"sentencepiece": {"tgt_subword_model": "${MODEL_PATH}/en.spm.model","src_subword_model": "${MODEL_PATH}/ja.spm.model"},"filtertoolong": {"tgt_seq_length": 256,2 unmodified lines},"data": {"corpus_1": {"path_tgt": "hf://quickmt/quickmt-train.ja-en/en","path_align": null,"path_src": "hf://quickmt/quickmt-train.ja-en/ja","transforms": ["sentencepiece","filtertoolong"],"weight": 2,"path_sco": "hf://quickmt/quickmt-train.ja-en/sco"},"corpus_2": {"path_tgt": "hf://quickmt/newscrawl2024-en-backtranslated-ja/en","path_align": null,"path_src": "hf://quickmt/newscrawl2024-en-backtranslated-ja/ja","transforms": ["sentencepiece","filtertoolong"],"weight": 1,"path_sco": "hf://quickmt/newscrawl2024-en-backtranslated-ja/sco"},"corpus_3": {"path_tgt": "hf://quickmt/madlad400-en-backtranslated-ja/en","path_align": null,"path_src": "hf://quickmt/madlad400-en-backtranslated-ja/ja","transforms": ["sentencepiece","filtertoolong"],"weight": 2,"path_sco": "hf://quickmt/madlad400-en-backtranslated-ja/sco"},"valid": {"path_align": null,"path_src": "valid.ja","transforms": ["sentencepiece","filtertoolong"],"path_tgt": "valid.en"}}}
123version https://git-lfs.github.com/spec/v1oid sha256:01dc857df9df5987bec61812d1fbc2e78ad530346c09fe3ffaf27184358ab8fdsize 583983123version https://git-lfs.github.com/spec/v1oid sha256:d2e58f48c0d030d6b4e6b183ebca7068704ef9cce640f090abfea4ac9ea11da0size 797948
123version https://git-lfs.github.com/spec/v1oid sha256:cbd449d7e92d850f6d36efeafb40cea3a8468f55db0ca751ee4ece0ceb70d19bsize 583133123version https://git-lfs.github.com/spec/v1oid sha256:438e5f7fd498d76b057ca8b6759470b82eb3855b81a67718face917407b31ff5size 816774
123version https://git-lfs.github.com/spec/v1oid sha256:f226e709170b27c12510b5b186f305fcc9ddb3dbf4ae3ea1066f8ff4632f7de1size 823882912123version https://git-lfs.github.com/spec/v1oid sha256:850944f80d706c273021d0dc80a82d05536672532122dccccaeb63065d74ace3size 829569112
123version https://git-lfs.github.com/spec/v1oid sha256:4f9906f44709dab21e2bd168cb19e4379326d4b8e92513dc9b4e5ff4af6cf323size 401699775123version https://git-lfs.github.com/spec/v1oid sha256:d11276f68986d951edc1e5b4b634e00f1f9c493eb14519598be975630965eb47size 407101843
123version https://git-lfs.github.com/spec/v1oid sha256:cbd449d7e92d850f6d36efeafb40cea3a8468f55db0ca751ee4ece0ceb70d19bsize 583133123version https://git-lfs.github.com/spec/v1oid sha256:438e5f7fd498d76b057ca8b6759470b82eb3855b81a67718face917407b31ff5size 816774
123version https://git-lfs.github.com/spec/v1oid sha256:01dc857df9df5987bec61812d1fbc2e78ad530346c09fe3ffaf27184358ab8fdsize 583983123version https://git-lfs.github.com/spec/v1oid sha256:d2e58f48c0d030d6b4e6b183ebca7068704ef9cce640f090abfea4ac9ea11da0size 797948
.ipynb_checkpoints/README-checkpoint.md+39-23
.ipynb_checkpoints/eole-config-checkpoint.yamlAdded+110
README.md+39-23
eole-config.yaml+35-19
eole-model/config.json+102-65
eole-model/en.spm.model+2-2
eole-model/ja.spm.model+2-2
eole-model/model.00.safetensors+2-2
eole-model/vocab.json
model.bin+2-2
source_vocabulary.json
src.spm.model+2-2
target_vocabulary.json
tgt.spm.model+2-2