facebook / xlm-roberta-xl

huggingface.co
Total runs: 60.6K
24-hour runs: 0
7-day runs: 2.5K
30-day runs: 601
Model's Last Updated: March 28 2024
fill-mask

Introduction of xlm-roberta-xl

Model Details of xlm-roberta-xl

XLM-RoBERTa-XL (xlarge-sized model)

XLM-RoBERTa-XL model pre-trained on 2.5TB of filtered CommonCrawl data containing 100 languages. It was introduced in the paper Larger-Scale Transformers for Multilingual Masked Language Modeling by Naman Goyal, Jingfei Du, Myle Ott, Giri Anantharaman, Alexis Conneau and first released in this repository .

Disclaimer: The team releasing XLM-RoBERTa-XL did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

XLM-RoBERTa-XL is a extra large 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 labeling 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-XL model as inputs.

Intended uses & limitations

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.

Usage

You can use this model directly with a pipeline for masked language modeling:

>>> from transformers import pipeline
>>> unmasker = pipeline('fill-mask', model='facebook/xlm-roberta-xl')
>>> unmasker("Europe is a <mask> continent.")

[{'score': 0.08562745153903961,
  'token': 38043,
  'token_str': 'living',
  'sequence': 'Europe is a living continent.'},
 {'score': 0.0799778401851654,
  'token': 103494,
  'token_str': 'dead',
  'sequence': 'Europe is a dead continent.'},
 {'score': 0.046154674142599106,
  'token': 72856,
  'token_str': 'lost',
  'sequence': 'Europe is a lost continent.'},
 {'score': 0.04358183592557907,
  'token': 19336,
  'token_str': 'small',
  'sequence': 'Europe is a small continent.'},
 {'score': 0.040570393204689026,
  'token': 34923,
  'token_str': 'beautiful',
  'sequence': 'Europe is a beautiful continent.'}]

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('facebook/xlm-roberta-xl')
model = AutoModelForMaskedLM.from_pretrained("facebook/xlm-roberta-xl")

# prepare input
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')

# forward pass
output = model(**encoded_input)
BibTeX entry and citation info
@article{DBLP:journals/corr/abs-2105-00572,
  author    = {Naman Goyal and
               Jingfei Du and
               Myle Ott and
               Giri Anantharaman and
               Alexis Conneau},
  title     = {Larger-Scale Transformers for Multilingual Masked Language Modeling},
  journal   = {CoRR},
  volume    = {abs/2105.00572},
  year      = {2021},
  url       = {https://arxiv.org/abs/2105.00572},
  eprinttype = {arXiv},
  eprint    = {2105.00572},
  timestamp = {Wed, 12 May 2021 15:54:31 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2105-00572.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Runs of facebook xlm-roberta-xl on huggingface.co

60.6K
Total runs
0
24-hour runs
-100
3-day runs
2.5K
7-day runs
601
30-day runs

More Information About xlm-roberta-xl huggingface.co Model

More xlm-roberta-xl license Visit here:

https://choosealicense.com/licenses/mit

xlm-roberta-xl huggingface.co

xlm-roberta-xl huggingface.co is an AI model on huggingface.co that provides xlm-roberta-xl's model effect (), which can be used instantly with this facebook xlm-roberta-xl model. huggingface.co supports a free trial of the xlm-roberta-xl model, and also provides paid use of the xlm-roberta-xl. Support call xlm-roberta-xl model through api, including Node.js, Python, http.

xlm-roberta-xl huggingface.co Url

https://huggingface.co/facebook/xlm-roberta-xl

facebook xlm-roberta-xl online free

xlm-roberta-xl huggingface.co is an online trial and call api platform, which integrates xlm-roberta-xl's modeling effects, including api services, and provides a free online trial of xlm-roberta-xl, you can try xlm-roberta-xl online for free by clicking the link below.

facebook xlm-roberta-xl online free url in huggingface.co:

https://huggingface.co/facebook/xlm-roberta-xl

xlm-roberta-xl install

xlm-roberta-xl is an open source model from GitHub that offers a free installation service, and any user can find xlm-roberta-xl on GitHub to install. At the same time, huggingface.co provides the effect of xlm-roberta-xl install, users can directly use xlm-roberta-xl installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

xlm-roberta-xl install url in huggingface.co:

https://huggingface.co/facebook/xlm-roberta-xl

Url of xlm-roberta-xl

xlm-roberta-xl huggingface.co Url

Provider of xlm-roberta-xl huggingface.co

facebook
ORGANIZATIONS

Other API from facebook

huggingface.co

Total runs: 8.0M
Run Growth: 26.1K
Growth Rate: 0.33%
Updated:January 20 2022
huggingface.co

Total runs: 8.0M
Run Growth: -8.9M
Growth Rate: -110.38%
Updated:September 15 2023
huggingface.co

Total runs: 3.7M
Run Growth: -840.3K
Growth Rate: -21.97%
Updated:September 06 2023
huggingface.co

Total runs: 3.2M
Run Growth: 876.4K
Growth Rate: 27.17%
Updated:January 17 2024
huggingface.co

Total runs: 2.7M
Run Growth: -574.4K
Growth Rate: -20.96%
Updated:December 28 2021
huggingface.co

Total runs: 2.2M
Run Growth: 468.9K
Growth Rate: 20.87%
Updated:January 25 2024
huggingface.co

Total runs: 2.2M
Run Growth: 159.7K
Growth Rate: 7.39%
Updated:March 23 2023
huggingface.co

Total runs: 1.9M
Run Growth: -434.9K
Growth Rate: -23.25%
Updated:November 21 2025
huggingface.co

Total runs: 738.2K
Run Growth: -201.5K
Growth Rate: -27.91%
Updated:September 06 2023
huggingface.co

Total runs: 475.3K
Run Growth: -136.5K
Growth Rate: -28.37%
Updated:May 22 2023
huggingface.co

Total runs: 442.3K
Run Growth: 74.9K
Growth Rate: 16.95%
Updated:February 29 2024
huggingface.co

Total runs: 429.4K
Run Growth: -69.0K
Growth Rate: -16.06%
Updated:March 17 2025
huggingface.co

Total runs: 383.6K
Run Growth: -200.9K
Growth Rate: -51.66%
Updated:January 12 2024
huggingface.co

Total runs: 330.5K
Run Growth: -60.2K
Growth Rate: -17.53%
Updated:January 12 2024
huggingface.co

Total runs: 308.7K
Run Growth: 35.7K
Growth Rate: 11.47%
Updated:September 15 2023
huggingface.co

Total runs: 307.7K
Run Growth: -66.3K
Growth Rate: -21.68%
Updated:September 06 2023
huggingface.co

Total runs: 281.7K
Run Growth: -26.8K
Growth Rate: -9.17%
Updated:November 17 2022
huggingface.co

Total runs: 280.9K
Run Growth: 61.9K
Growth Rate: 21.40%
Updated:June 15 2023
huggingface.co

Total runs: 260.0K
Run Growth: 167.8K
Growth Rate: 63.90%
Updated:May 22 2023
huggingface.co

Total runs: 236.9K
Run Growth: 14.3K
Growth Rate: 6.02%
Updated:July 23 2024
huggingface.co

Total runs: 210.0K
Run Growth: -142.4K
Growth Rate: -65.85%
Updated:July 25 2023
huggingface.co

Total runs: 187.6K
Run Growth: 79.9K
Growth Rate: 42.35%
Updated:February 12 2023
huggingface.co

Total runs: 176.4K
Run Growth: 74.8K
Growth Rate: 42.40%
Updated:September 06 2023
huggingface.co

Total runs: 169.5K
Run Growth: -205.2K
Growth Rate: -119.47%
Updated:November 17 2023
huggingface.co

Total runs: 162.8K
Run Growth: -734
Growth Rate: -0.45%
Updated:September 01 2023
huggingface.co

Total runs: 147.1K
Run Growth: 108.3K
Growth Rate: 73.09%
Updated:November 16 2023
huggingface.co

Total runs: 120.4K
Run Growth: -3.4K
Growth Rate: -2.72%
Updated:June 03 2022
huggingface.co

Total runs: 109.8K
Run Growth: 26.2K
Growth Rate: 23.91%
Updated:November 20 2023
huggingface.co

Total runs: 109.5K
Run Growth: 25.9K
Growth Rate: 23.71%
Updated:January 25 2023
huggingface.co

Total runs: 107.8K
Run Growth: -8.5K
Growth Rate: -7.79%
Updated:September 15 2023
huggingface.co

Total runs: 104.7K
Run Growth: -8.1K
Growth Rate: -7.35%
Updated:June 13 2023
huggingface.co

Total runs: 100.3K
Run Growth: -210.0K
Growth Rate: -215.14%
Updated:June 13 2023
huggingface.co

Total runs: 86.7K
Run Growth: 59.4K
Growth Rate: 69.67%
Updated:February 12 2023
huggingface.co

Total runs: 61.6K
Run Growth: -17.6K
Growth Rate: -28.52%
Updated:March 28 2026
huggingface.co

Total runs: 59.2K
Run Growth: 16.3K
Growth Rate: 27.79%
Updated:January 25 2023
huggingface.co

Total runs: 50.1K
Run Growth: -19.8K
Growth Rate: -39.48%
Updated:January 29 2026