/ Модель

Характеристики

Контекст
1 024 токена
Параметры
164 млн
Лицензия
Apache 2.0
Архитектура
marian · dense
Библиотека
transformers
Опубликована
7 окт 2024

opus-mt-tc-bible-big-bnt-deu_eng_fra_por_spa

ПереводТекст → текст3 профессии
90скачиваний за 30 дней0лайковвеса обновлены7 окт 2024

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Модель OPUS-MT переводит тексты с языков банту на немецкий, английский, французский, португальский и испанский.

Это модель машинного перевода OPUS-MT, разработанная Language Technology Research Group Хельсинкского университета в рамках проекта OPUS-MT. Она переводит тексты с языков банту на немецкий, английский, французский, португальский и испанский. Модель основана на архитектуре Marian Transformer-big и содержит 163,8 млн параметров; для запуска доступны веса PyTorch и Safetensors, а библиотека — Transformers.

Модель предназначена для перевода текстов с поддерживаемых языков банту, в том числе низкоресурсных, на один из пяти целевых европейских языков. Контекст ограничен 1024 токенами. Лицензия Apache-2.0 разрешает использование и распространение модели на её условиях. README предупреждает о возможных рисках и ограничениях перевода, но не приводит их подробностей.

Сценарии применения

  • перевод текста с языков банту на немецкий
  • перевод текста с языков банту на английский
  • перевод текста с языков банту на французский
  • перевод текста с языков банту на португальский
  • перевод текста с языков банту на испанский

Ограничения

Контекст модели ограничен 1024 токенами. Качество перевода может быть ограничено для низкоресурсных языков и текстов, отличающихся от обучающих данных OPUS.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

opus-mt-tc-bible-big-bnt-deu_eng_fra_por_spa

Table of Contents

Model Details

Neural machine translation model for translating from Bantu languages (bnt) to unknown (deu+eng+fra+por+spa).

This model is part of the OPUS-MT project, an effort to make neural machine translation models widely available and accessible for many languages in the world. All models are originally trained using the amazing framework of Marian NMT, an efficient NMT implementation written in pure C++. The models have been converted to pyTorch using the transformers library by huggingface. Training data is taken from OPUS and training pipelines use the procedures of OPUS-MT-train. Model Description:

This is a multilingual translation model with multiple target languages. A sentence initial language token is required in the form of >>id<< (id = valid target language ID), e.g. >>deu<<

Uses

This model can be used for translation and text-to-text generation.

Risks, Limitations and Biases

CONTENT WARNING: Readers should be aware that the model is trained on various public data sets that may contain content that is disturbing, offensive, and can propagate historical and current stereotypes.

Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).

How to Get Started With the Model

A short example code:

from transformers import MarianMTModel, MarianTokenizer

src_text = [
    ">>deu<< Replace this with text in an accepted source language.",
    ">>spa<< This is the second sentence."
]

model_name = "pytorch-models/opus-mt-tc-bible-big-bnt-deu_eng_fra_por_spa"
tokenizer = MarianTokenizer.from_pretrained(model_name)
model = MarianMTModel.from_pretrained(model_name)
translated = model.generate(**tokenizer(src_text, return_tensors="pt", padding=True))

for t in translated:
    print( tokenizer.decode(t, skip_special_tokens=True) )

You can also use OPUS-MT models with the transformers pipelines, for example:

from transformers import pipeline
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-bible-big-bnt-deu_eng_fra_por_spa")
print(pipe(">>deu<< Replace this with text in an accepted source language."))

Training

Evaluation

langpairtestsetchr-FBLEU#sent#words
run-deutatoeba-test-v2021-08-070.4383626.1175210562
run-engtatoeba-test-v2021-08-070.5408939.4170310041
run-fratatoeba-test-v2021-08-070.4624026.112747479
run-spatatoeba-test-v2021-08-070.4649625.89635167
swa-engtatoeba-test-v2021-08-070.5994745.93872508
lin-engflores101-devtest0.4085816.9101224721
nso-engflores101-devtest0.4986626.5101224721
sna-fraflores101-devtest0.4013414.3101228343
swh-deuflores101-devtest0.4307314.2101225094
zul-fraflores101-devtest0.4372317.4101228343
zul-porflores101-devtest0.4188615.9101226519
bem-engflores200-devtest0.4235018.1101224721
kin-engflores200-devtest0.4618321.9101224721
kin-fraflores200-devtest0.4013914.7101228343
lin-engflores200-devtest0.4207318.1101224721
nso-engflores200-devtest0.5145328.4101224721
nso-fraflores200-devtest0.4106516.1101228343
nya-engflores200-devtest0.4439820.2101224721
run-engflores200-devtest0.4298718.9101224721
sna-engflores200-devtest0.4591721.1101224721
sna-fraflores200-devtest0.4115315.2101228343
sot-engflores200-devtest0.5185426.9101224721
sot-fraflores200-devtest0.4134015.8101228343
ssw-engflores200-devtest0.4492520.7101224721
swh-deuflores200-devtest0.4493715.6101225094
swh-engflores200-devtest0.6010737.0101224721
swh-fraflores200-devtest0.5025723.5101228343
swh-porflores200-devtest0.4947522.8101226519
swh-spaflores200-devtest0.4286615.3101229199
tsn-engflores200-devtest0.4536519.9101224721
tso-engflores200-devtest0.4688222.8101224721
xho-engflores200-devtest0.5250028.8101224721
xho-fraflores200-devtest0.4464218.7101228343
xho-porflores200-devtest0.4251716.8101226519
zul-engflores200-devtest0.5342829.5101224721
zul-fraflores200-devtest0.4538319.0101228343
zul-porflores200-devtest0.4353717.4101226519
bem-engntrex1280.4316819.1199747673
kin-engntrex1280.4699620.8199747673
kin-frantrex1280.4076514.7199753481
kin-spantrex1280.4155215.9199754107
nde-engntrex1280.4274417.1199747673
nso-engntrex1280.4723121.5199747673
nso-spantrex1280.4013515.2199754107
nya-engntrex1280.4707223.3199747673
nya-spantrex1280.4100616.2199754107
ssw-engntrex1280.4868223.5199747673
ssw-spantrex1280.4083915.9199754107
swa-deuntrex1280.4388014.1199748761
swa-engntrex1280.5852735.4199747673
swa-frantrex1280.4734419.7199753481
swa-porntrex1280.4629219.1199751631
swa-spantrex1280.4878022.9199754107
tsn-engntrex1280.5041325.3199747673
tsn-frantrex1280.4191215.8199753481
tsn-porntrex1280.4109015.3199751631
tsn-spantrex1280.4297917.7199754107
ven-engntrex1280.4336418.4199747673
xho-engntrex1280.5077826.5199747673
xho-frantrex1280.4106615.1199753481
xho-spantrex1280.4212916.7199754107
zul-engntrex1280.5036126.9199747673
zul-frantrex1280.4077915.0199753481
zul-spantrex1280.4183616.9199754107
kin-engtico19-test0.4228018.8210056323
lin-engtico19-test0.4149518.4210056323
lug-engtico19-test0.4394822.2210056323
swa-engtico19-test0.5812634.5210056315
swa-fratico19-test0.4647020.5210064661
swa-portico19-test0.4937422.8210062729
swa-spatico19-test0.5021424.5210066563
zul-engtico19-test0.5567832.2210056804
zul-fratico19-test0.4379718.6210064661
zul-portico19-test0.4556019.9210062729
zul-spatico19-test0.4650521.4210066563

Citation Information

@article{tiedemann2023democratizing,
  title={Democratizing neural machine translation with {OPUS-MT}},
  author={Tiedemann, J{\"o}rg and Aulamo, Mikko and Bakshandaeva, Daria and Boggia, Michele and Gr{\"o}nroos, Stig-Arne and Nieminen, Tommi and Raganato, Alessandro and Scherrer, Yves and Vazquez, Raul and Virpioja, Sami},
  journal={Language Resources and Evaluation},
  number={58},
  pages={713--755},
  year={2023},
  publisher={Springer Nature},
  issn={1574-0218},
  doi={10.1007/s10579-023-09704-w}
}

@inproceedings{tiedemann-thottingal-2020-opus,
    title = "{OPUS}-{MT} {--} Building open translation services for the World",
    author = {Tiedemann, J{\"o}rg  and Thottingal, Santhosh},
    booktitle = "Proceedings of the 22nd Annual Conference of the European Association for Machine Translation",
    month = nov,
    year = "2020",
    address = "Lisboa, Portugal",
    publisher = "European Association for Machine Translation",
    url = "https://aclanthology.org/2020.eamt-1.61",
    pages = "479--480",
}

@inproceedings{tiedemann-2020-tatoeba,
    title = "The Tatoeba Translation Challenge {--} Realistic Data Sets for Low Resource and Multilingual {MT}",
    author = {Tiedemann, J{\"o}rg},
    booktitle = "Proceedings of the Fifth Conference on Machine Translation",
    month = nov,
    year = "2020",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2020.wmt-1.139",
    pages = "1174--1182",
}

Acknowledgements

The work is supported by the HPLT project, funded by the European Union’s Horizon Europe research and innovation programme under grant agreement No 101070350. We are also grateful for the generous computational resources and IT infrastructure provided by CSC -- IT Center for Science, Finland, and the EuroHPC supercomputer LUMI.

Model conversion info

  • transformers version: 4.45.1
  • OPUS-MT git hash: a0ea3b3
  • port time: Mon Oct 7 21:44:56 EEST 2024
  • port machine: LM0-400-22516.local

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
MarianMTModel
Ревизия весов
12fae15

0 моделей