Help preserve open and free AI for humanity's future

← All models

FacebookAI_xlm-roberta-large

FacebookAI · View on Hugging Face ↗

Multilingual XLM-RoBERTa large encoder for highest-accuracy multilingual understanding.

✓ verified · rehash-vs-hf-metadata at 2026-08-24T06:02:41Z

mit6.30 GB (6,761,366,974 bytes)transformerspytorchjaxonnxsafetensorsxlm-robertafill-maskexbertmultilingualendpoints_compatible94 languages (tf, af, am …)paper: 1911.02116

Get this model

Download FacebookAI_xlm-roberta-large.torrent

Recommended — the .torrent carries the webseed url-list, so your client can fall back to plain HTTPS if the swarm is thin. See/verify for the full download + verification walkthrough.

Model card

The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.


tags:

  • exbert language:
  • multilingual
  • af
  • am
  • ar
  • as
  • az
  • be
  • bg
  • bn
  • br
  • bs
  • ca
  • cs
  • cy
  • da
  • de
  • el
  • en
  • eo
  • es
  • et
  • eu
  • fa
  • fi
  • fr
  • fy
  • ga
  • gd
  • gl
  • gu
  • ha
  • he
  • hi
  • hr
  • hu
  • hy
  • id
  • is
  • it
  • ja
  • jv
  • ka
  • kk
  • km
  • kn
  • ko
  • ku
  • ky
  • la
  • lo
  • lt
  • lv
  • mg
  • mk
  • ml
  • mn
  • mr
  • ms
  • my
  • ne
  • nl
  • no
  • om
  • or
  • pa
  • pl
  • ps
  • pt
  • ro
  • ru
  • sa
  • sd
  • si
  • sk
  • sl
  • so
  • sq
  • sr
  • su
  • sv
  • sw
  • ta
  • te
  • th
  • tl
  • tr
  • ug
  • uk
  • ur
  • uz
  • vi
  • xh
  • yi
  • zh license: mit

XLM-RoBERTa (large-sized model)

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.

Model description

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.

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

# 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-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}
}

Magnet link (secondary — no webseeds)

Opens the swarm directly, but carries no webseed url-list. Prefer the.torrent download above — HTTP fallback seeds ride inside it.

magnet:?xt=urn:btih:6e3001c23fc12966cc23b1b8d60190205fe770da&dn=FacebookAI_xlm-roberta-large

Open magnet in torrent client · infohash 6e3001c23fc12966cc23b1b8d60190205fe770da

Files & hashes

PathSizeMethodHash
README.md5.1 KB (5,241 B)sha1-git-blob353e24dd8962783166f4ffc9841b57c62c3a9849
config.json616 B (616 B)sha1-git-blob8e5fb14e1352fd8fc678a7b293b63cfb5cf091f6
model.safetensors2.09 GB (2,244,817,354 B)sha256-lfs2dfa19f172412917cab174da04b46e2134811b723666965fd0aabd97caa6e23b
onnx/config.json681 B (681 B)sha1-git-blobebc8438f4984c23fe41d3459c8d1ab75ba2f5fcb
onnx/model.onnx_data2.08 GB (2,235,363,328 B)sha256-lfs1798dab29db9d3fe4193ffa091512730369bd1c1c2041de430e09394d4f57df1
onnx/sentencepiece.bpe.model4.8 MB (5,069,051 B)sha256-lfscfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
onnx/special_tokens_map.json280 B (280 B)sha1-git-blobd5698132694f4f1bcff08fa7d937b1701812598e
onnx/tokenizer.json16.3 MB (17,082,660 B)sha256-lfs62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626
onnx/tokenizer_config.json418 B (418 B)sha1-git-blob6de1940d16d38be9877bf7cc228c9377841b311f
pytorch_model.bin2.09 GB (2,244,861,551 B)sha256-lfs01e55aa45dbb9164fee19aef60007a1c91d175051c01be1fb15056cfa60f3e53
sentencepiece.bpe.model4.8 MB (5,069,051 B)sha1-git-blobdb9af13bf09fd3028ca32be90d3fb66d5e470399
tokenizer.json8.7 MB (9,096,718 B)sha1-git-blob463f3414782c1c9405828c9b31bfa36dda1f45c5
tokenizer_config.json25 B (25 B)sha1-git-blob34ddbd64a4cd3f2d9d8a9120d3662d0bf91baead

Provenance

Upstream repositoryFacebookAI/xlm-roberta-large
Revision (pinned)c23d21b0620b635a76227c604d44e43a9f0ee389
Fetched at2026-08-24T05:58:42Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

Webseeds