Downloads · 30 days
12
3% of all-time downloads
slone/nllb-with-myv-v2024
nllb-with-myv-v2024 is a translation model from slone. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
This is a version of the nllb-200-distilled-600M machine translation model with one added language: Erzya (the new language code is myvCyrl). It can probably translate from all 202 NLLB languages, but it fine-tuned wi…
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
371
Public
Parameters
621M
2.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 100%
From the Hugging Face model README
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