/ Модель

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

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

opus-mt-tc-bible-big-deu_eng_fra_por_spa-gmq

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

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

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

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

Модель машинного перевода OPUS-MT, разработанная Language Technology Research Group Хельсинкского университета. Она переводит с немецкого, английского, французского, португальского и испанского на северогерманские языки: датский, фарерский, исландский, норвежский букмол и нюнорск, норвежский, шведский и несколько малоресурсных языковых вариантов, перечисленных в карточке.

Это модель архитектуры Marian Transformer-big на 158,3 млн параметров с контекстом до 1024 токенов. Обучена на данных OPUS с использованием конвейеров OPUS-MT-train; исходные веса Marian NMT преобразованы в PyTorch для библиотеки Transformers. Подходит для перевода текстов между указанными языками, в том числе для малоресурсных северогерманских языковых вариантов.

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

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

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

Ограничения

Качество может различаться в зависимости от языковой пары и тематики. Для выбора целевого языка требуется корректная языковая метка; карточка также указывает, что исходный язык может быть неизвестен модели.

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

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

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

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

Источники: 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-deu_eng_fra_por_spa-gmq

Table of Contents

Model Details

Neural machine translation model for translating from unknown (deu+eng+fra+por+spa) to North Germanic languages (gmq).

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. >>dan<<

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 = [
    ">>dan<< Replace this with text in an accepted source language.",
    ">>swe<< This is the second sentence."
]

model_name = "pytorch-models/opus-mt-tc-bible-big-deu_eng_fra_por_spa-gmq"
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-deu_eng_fra_por_spa-gmq")
print(pipe(">>dan<< Replace this with text in an accepted source language."))

Training

Evaluation

langpairtestsetchr-FBLEU#sent#words
deu-dantatoeba-test-v2021-08-070.7405157.8999874644
deu-isltatoeba-test-v2021-08-070.6125631.79695951
deu-nobtatoeba-test-v2021-08-070.7141352.9352531978
deu-nortatoeba-test-v2021-08-070.7125352.7365132928
deu-swetatoeba-test-v2021-08-070.7265058.2341022701
eng-dantatoeba-test-v2021-08-070.7470860.61079579385
eng-faotatoeba-test-v2021-08-070.4830429.02941933
eng-isltatoeba-test-v2021-08-070.5831233.2250319023
eng-nnotatoeba-test-v2021-08-070.6260642.74603428
eng-nobtatoeba-test-v2021-08-070.7234057.4453936119
eng-nortatoeba-test-v2021-08-070.7151456.2500039552
eng-swetatoeba-test-v2021-08-070.7372060.51036268067
fra-dantatoeba-test-v2021-08-070.7801864.1173111312
fra-nobtatoeba-test-v2021-08-070.7425259.13232175
fra-nortatoeba-test-v2021-08-070.7440760.34773097
fra-swetatoeba-test-v2021-08-070.7564462.114079170
por-dantatoeba-test-v2021-08-070.7952865.68735258
por-nortatoeba-test-v2021-08-070.7355958.04814030
por-swetatoeba-test-v2021-08-070.7556660.23201938
spa-dantatoeba-test-v2021-08-070.7331057.7500035937
spa-isltatoeba-test-v2021-08-070.5216918.72381220
spa-nobtatoeba-test-v2021-08-070.7650160.98856762
spa-nortatoeba-test-v2021-08-070.7581560.19607217
spa-swetatoeba-test-v2021-08-070.7422260.713518357
deu-danflores101-devtest0.6200634.8101224638
deu-islflores101-devtest0.4823618.8101222834
deu-sweflores101-devtest0.6177833.7101223121
eng-sweflores101-devtest0.6943545.5101223121
fra-danflores101-devtest0.6101934.0101224638
fra-islflores101-devtest0.4764718.1101222834
fra-sweflores101-devtest0.6035432.2101223121
por-islflores101-devtest0.4793719.1101222834
por-sweflores101-devtest0.6085733.1101223121
spa-danflores101-devtest0.5489024.4101224638
spa-nobflores101-devtest0.5061018.3101223873
spa-sweflores101-devtest0.5401122.4101223121
deu-danflores200-devtest0.6215235.1101224638
deu-islflores200-devtest0.4864819.1101222834
deu-nnoflores200-devtest0.5353024.0101224316
deu-nobflores200-devtest0.5574825.1101223873
deu-sweflores200-devtest0.6213834.2101223121
eng-danflores200-devtest0.7032147.0101224638
eng-islflores200-devtest0.5258524.4101222834
eng-nnoflores200-devtest0.6137233.8101224316
eng-nobflores200-devtest0.6250834.4101223873
eng-sweflores200-devtest0.6970346.0101223121
fra-danflores200-devtest0.6102534.1101224638
fra-islflores200-devtest0.4827318.8101222834
fra-nnoflores200-devtest0.5303224.3101224316
fra-nobflores200-devtest0.5493325.0101223873
fra-sweflores200-devtest0.6061232.8101223121
por-danflores200-devtest0.6222136.2101224638
por-islflores200-devtest0.4835719.6101222834
por-nnoflores200-devtest0.5436926.3101224316
por-nobflores200-devtest0.5605426.4101223873
por-sweflores200-devtest0.6138834.1101223121
spa-danflores200-devtest0.5509124.7101224638
spa-islflores200-devtest0.4446914.2101222834
spa-nnoflores200-devtest0.4889818.6101224316
spa-nobflores200-devtest0.5090118.8101223873
spa-sweflores200-devtest0.5418222.7101223121
eng-islnewstest20210.5119621.9100025233
deu-danntrex1280.5641229.1199747643
deu-islntrex1280.4830918.8199746643
deu-nnontrex1280.5153522.0199746512
deu-nobntrex1280.5615227.6199745501
deu-swentrex1280.5806129.6199744889
eng-danntrex1280.6189437.6199747643
eng-islntrex1280.5202723.9199746643
eng-nnontrex1280.6075434.0199746512
eng-nobntrex1280.6232736.9199745501
eng-swentrex1280.6612941.3199744889
fra-danntrex1280.5410227.1199747643
fra-islntrex1280.4729618.4199746643
fra-nnontrex1280.5053221.6199746512
fra-nobntrex1280.5402625.7199745501
fra-swentrex1280.5627827.9199744889
por-danntrex1280.5628830.0199747643
por-islntrex1280.4757717.8199746643
por-nnontrex1280.5215823.0199746512
por-nobntrex1280.5578827.4199745501
por-swentrex1280.5779029.3199744889
spa-danntrex1280.5560727.5199747643
spa-islntrex1280.4856618.4199746643
spa-nnontrex1280.5174122.2199746512
spa-nobntrex1280.5582426.8199745501
spa-swentrex1280.5785128.8199744889

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: 0882077
  • port time: Tue Oct 8 10:03:29 EEST 2024
  • port machine: LM0-400-22516.local

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей