Model Card for NLLB-with-myv-v2024 (a translation model for Erzya)
0
4 commits
2 linked in READMEs
updated Sep 12, 2024
This is a version of the nllb-200-distilled-600M machine translation model
with one added language: Erzya (the new language code is myv_Cyrl).
It can probably translate from all 202 NLLB languages, but it fine-tuned with the focus on Erzya, Russian, and, to a lesser extent,
on Arabic, English, Estonian, Finnish, French, German, Kazakh, Mandarin, Mongolian, Spanish, Turkish, Ukrainian, and Uzbek.
Translation between Erzya, Russian, and potentially other languages. The model seems to be SOTA for translating into Erzya.
Translation between other NLLB languages, not inclusing Erzya as source or target.
The model is not producing the most fluent translations into Russian and other high-resourced languages.
Its translations into Erzya seem to be better than anything else, but may still include inaccurate or ungrammatical translations, so they should be always manually reviewed before any high-responsibility use.
Please contact the authors for any substantial recommendation.
See the NLLB generation code: https://huggingface.co/docs/transformers/v4.44.2/en/model_doc/nllb#generating-with-nllb.
The preprocessing code is adapted from the Stopes repo of the NLLB team: https://github.com/facebookresearch/stopes/blob/main/stopes/pipelines/monolingual/monolingual_line_processor.py#L214
It performs punctuation normalization, nonprintable character removal and Unicode normalization.
The tokenizer of the model was updated with 6209 new Erzya tokens. They were initialized with the average embeddings of the old tokens from which they are combined.
fp32A standard encoder-decoder translation model with cross-entropy loss.
Google Colab with a T4 GPU.
pip install --upgrade sentencepiece transformers==4.40 datasets sacremoses editdistance sacrebleu razdel ctranslate2
@cointegrated
Model Card for NLLB-with-myv-v2024 (a translation model for Erzya)
0
4 commits
2 linked in READMEs
updated Sep 12, 2024
This is a version of the nllb-200-distilled-600M machine translation model
with one added language: Erzya (the new language code is myv_Cyrl).
It can probably translate from all 202 NLLB languages, but it fine-tuned with the focus on Erzya, Russian, and, to a lesser extent,
on Arabic, English, Estonian, Finnish, French, German, Kazakh, Mandarin, Mongolian, Spanish, Turkish, Ukrainian, and Uzbek.
Translation between Erzya, Russian, and potentially other languages. The model seems to be SOTA for translating into Erzya.
Translation between other NLLB languages, not inclusing Erzya as source or target.
The model is not producing the most fluent translations into Russian and other high-resourced languages.
Its translations into Erzya seem to be better than anything else, but may still include inaccurate or ungrammatical translations, so they should be always manually reviewed before any high-responsibility use.
Please contact the authors for any substantial recommendation.
See the NLLB generation code: https://huggingface.co/docs/transformers/v4.44.2/en/model_doc/nllb#generating-with-nllb.
The preprocessing code is adapted from the Stopes repo of the NLLB team: https://github.com/facebookresearch/stopes/blob/main/stopes/pipelines/monolingual/monolingual_line_processor.py#L214
It performs punctuation normalization, nonprintable character removal and Unicode normalization.
The tokenizer of the model was updated with 6209 new Erzya tokens. They were initialized with the average embeddings of the old tokens from which they are combined.
fp32A standard encoder-decoder translation model with cross-entropy loss.
Google Colab with a T4 GPU.
pip install --upgrade sentencepiece transformers==4.40 datasets sacremoses editdistance sacrebleu razdel ctranslate2
@cointegrated