DiaBLaBitextMining
0,2467−0,65 до лидера
Один прогон
Поднаборы
- Общий результат 0,2117
- Общий результат 0,2015
Составлено на русском по карточке модели и метаданным Hugging Face
Многоязычная базовая модель XLM-RoBERTa для восстановления замаскированных слов и построения представлений текста для последующих NLP-задач.
XLM-RoBERTa base — многоязычная трансформерная модель FacebookAI, впервые выпущенная в этом репозитории. Она предварительно обучена на 2,5 ТБ отфильтрованных данных CommonCrawl на 100 языках с целью masked language modeling: модель восстанавливает замаскированные слова, используя контекст с обеих сторон. Это базовая модель архитектуры XLM-RoBERTa с 305,2 млн параметров и контекстом до 514 токенов.
Модель подходит для предсказания пропущенных слов и получения текстовых представлений для последующей настройки на классификацию последовательностей и токенов, а также ответы на вопросы. Она поддерживает множество языков; метаданные перечисляют коды языков, среди которых английский, арабский, китайский здесь не указан, французский, немецкий, японский, корейский, русский также не указан. Для генерации связного текста модель не предназначена. Лицензия — MIT.
Сырая модель в основном предназначена для дообучения на целевых задачах и не подходит для генерации текста. Перечень языков в доступных метаданных ограничен, хотя README указывает предобучение на 100 языках.
Результаты из открытых лидербордов в сравнении с лидерами каталога на 3 декабря 2026
Цвет сравнивает модели внутри строки: чем темнее ячейка, тем лучше результат в этом тесте. Таблица листается вправо
| Тест | xlm-roberta-baseэта модель | sentence-t5-xxl | sentence-t5-base | gtr-t5-xl | nb-bert-large | LaBSE | sentence-t5-xl | sentence-t5-large | udever-bloom-1b1 | gtr-t5-large |
|---|---|---|---|---|---|---|---|---|---|---|
| DiaBLaBitextMiningfr-en.recall | 0,2467 | 0,8582 | 0,5945 | — | — | 0,8944 — лучший результат | 0,7886 | 0,7462 | 0,0341 | — |
| AmazonReviewsClassificationfr.f1 | 0,2403 | 0,4264 — лучший результат | 0,3482 | 0,3465 | — | — | 0,4086 | 0,3833 | 0,3458 | 0,3247 |
| MTOPDomainClassificationfr.f1 | 0,4091 | 0,8612 — лучший результат | 0,7639 | 0,8508 | — | — | 0,8499 | 0,8005 | 0,6927 | 0,8273 |
| MTOPIntentClassificationfr.accuracy | 0,1938 | 0,5833 — лучший результат | 0,4524 | 0,5107 | — | — | 0,5439 | 0,4773 | 0,5125 | 0,4639 |
| STS22fr.euclidean.pearson | 0,2405 | 0,7473 | 0,7303 | 0,7883 — лучший результат | — | — | 0,7365 | 0,7002 | 0,7537 | 0,7707 |
| MasakhaNEWSClassificationfra.f1 | 0,5573 | 0,7519 | 0,7722 — лучший результат | — | — | — | 0,7627 | 0,7689 | 0,7696 | — |
| AlloprofRerankingmap | 0,2558 | 0,6836 — лучший результат | 0,5012 | — | — | — | 0,633 | 0,5799 | — | — |
| AlloprofRetrievalprecision_at_3 | 0,0003 | 0,1529 — лучший результат | 0,09 | — | — | — | 0,1367 | 0,1144 | — | — |
| BSARDRetrievalndcg_at_10 | 0 | 0,0333 — лучший результат | 0,0016 | — | — | — | 0,0014 | 0 | — | — |
| FloresBitextMiningeng_Latn-fra_Latn.f1 | 0,5329 | 0,9987 — лучший результат | 0,9616 | — | — | — | 0,992 | 0,9866 | — | — |
| MintakaRetrievalfr.ndcg_at_10 | 0,0088 | 0,3493 — лучший результат | 0,2104 | — | — | — | 0,3154 | 0,2392 | — | — |
| NorwegianParliamentaccuracy | 0,5683 | — | — | — | 0,6268 — лучший результат | — | — | — | — | — |
Место — среди моделей каталога с результатом этого теста
0,2467−0,65 до лидера
Один прогон
Поднаборы
0,2403−0,19 до лидера
Один прогон
Поднаборы
0,4091−0,45 до лидера
Один прогон
Поднаборы
0,1938−0,39 до лидера
Один прогон
Поднаборы
0,2405−0,55 до лидера
Один прогон
Поднаборы
0,5573−0,21 до лидера
Один прогон
Поднаборы
Разделы каталога профессий, в задачах которых используется эта модель
README от автора на Hugging Face, как он его опубликовал
XLM-RoBERTa model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Unsupervised Cross-lingual Representation Learning at Scale by Conneau et al. and first released in this repository.
Disclaimer: The team releasing XLM-RoBERTa did not write a model card for this model so this model card has been written by the Hugging Face team.
XLM-RoBERTa is a multilingual version of RoBERTa. It is pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages.
RoBERTa is a transformers model pretrained on a large corpus in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts.
More precisely, it was pretrained with the Masked language modeling (MLM) objective. Taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence.
This way, the model learns an inner representation of 100 languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the XLM-RoBERTa model as inputs.
You can use the raw model for masked language modeling, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.
Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation, you should look at models like GPT2.
You can use this model directly with a pipeline for masked language modeling:
>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='xlm-roberta-base')
>>> unmasker("Hello I'm a <mask> model.")
[{'score': 0.10563907772302628,
'sequence': "Hello I'm a fashion model.",
'token': 54543,
'token_str': 'fashion'},
{'score': 0.08015287667512894,
'sequence': "Hello I'm a new model.",
'token': 3525,
'token_str': 'new'},
{'score': 0.033413201570510864,
'sequence': "Hello I'm a model model.",
'token': 3299,
'token_str': 'model'},
{'score': 0.030217764899134636,
'sequence': "Hello I'm a French model.",
'token': 92265,
'token_str': 'French'},
{'score': 0.026436051353812218,
'sequence': "Hello I'm a sexy model.",
'token': 17473,
'token_str': 'sexy'}]
Here is how to use this model to get the features of a given text in PyTorch:
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-base')
model = AutoModelForMaskedLM.from_pretrained("xlm-roberta-base")
# prepare input
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
# forward pass
output = model(**encoded_input)
@article{DBLP:journals/corr/abs-1911-02116,
author = {Alexis Conneau and
Kartikay Khandelwal and
Naman Goyal and
Vishrav Chaudhary and
Guillaume Wenzek and
Francisco Guzm{\'{a}}n and
Edouard Grave and
Myle Ott and
Luke Zettlemoyer and
Veselin Stoyanov},
title = {Unsupervised Cross-lingual Representation Learning at Scale},
journal = {CoRR},
volume = {abs/1911.02116},
year = {2019},
url = {http://arxiv.org/abs/1911.02116},
eprinttype = {arXiv},
eprint = {1911.02116},
timestamp = {Mon, 11 Nov 2019 18:38:09 +0100},
biburl = {https://dblp.org/rec/journals/corr/abs-1911-02116.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
На своей GPU в ailist. Цена — по текущим предложениям провайдеров
GPU в ailist
Универсальный рантайм · fill-mask
Подбираем GPU…