alt.freeweights.vision / xlm-roberta-base
From: FacebookAI <huggingface.co/FacebookAI>Newsgroups: alt.freeweights.visionSubject:

xlm-roberta-base

Date: 2026-11-15Commit: e73636dSigned: 2DC28CC7B26A283B ✓

Fill mask model with 279M parameters. Onnx and safetensors weights, 6.35 GB in all. Published by FacebookAI under MIT.

279M params6.35GBxlm-roberta-baseonnx safetensorspermissive
FactsParams279MSize6.35 GBFormatsonnx, safetensorsTaskfill maskLicenseMITFrom sourcepermissive
$ fw get FacebookAI/xlm-roberta-base
# manifest sha256 127692c81768… · 6.35 GB · 11 files
$ fw verify ./xlm-roberta-base FacebookAI/xlm-roberta-base
From sourceHosted (signed)FacebookAI/xlm-roberta-baseLast check: 2026-11-15 02:25 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
6.35 GB
Weights
1.12 GB (safetensors)
Parameters
279M
Formats
onnx, safetensors
Task
fill mask
License
MIT (permissive)
Files
11, each with a sha256
Publisher
FacebookAI
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:25 UTCpassed

Model card

From the publisher at commit e73636d. Shown as plain text with links; images open at the publisher.

XLM-RoBERTa (base-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-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)
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}
}

https://huggingface.co/exbert/?model=xlm-roberta-base

Files

11 files · 6.35 GBWeights 1.12 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes445 B98c91dabef4df27b2fc7c8454d220aba47476f73593cbd034d961fe4927304c1
README.md5.24 KBbec9f2cd81f7396a64ee474145117d81139906443a21480cbe4993c97cb499aa
config.json615 Bd66ed8cd4f2a93b358c245e50736fa389ed4f35c0bae7aad0b32abb20c62b579
flax_model.msgpack1.11 GB311b6941e02128b01c6a429f55b47b351a86fe53e6802774d87696bcbc465992
model.onnx1.88 GBa76bfe6a405f1a9ace42b2dbd8fbd284dd8127a732ddcf2145b0fc9413b30d40
model.safetensors1.12 GB6fd4797bc397c3b8b55d6bb5740366b57e6a3ce91c04c77f22aafc0c128e6feb
pytorch_model.bin1.12 GB9d83baaafea92d36de26002c8135a427d55ee6fdc4faaa6e400be4c47724a07e
sentencepiece.bpe.model5.07 MBcfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
tf_model.h51.11 GBd1232fb4018ab3a236c29f10aefd190ef844ad994ac74820d9532637bd87b3f4
tokenizer.json9.10 MBa898ea75433890f6610f4e470b8ebeb0c21dce5c8dd61f892eb09eb5919d2e2c
tokenizer_config.json25 B994f46754c5bf4014f1aa92d34b1374319c3a6b3f702105cd5b742beaecd18ce
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e73636d4f7 pinned now2026-11-15 02:25 UTC11 files · 6.35 GB

Use it

$ fw get FacebookAI/xlm-roberta-base
# manifest sha256 127692c81768… · 6.35 GB · 11 files
$ fw verify ./xlm-roberta-base FacebookAI/xlm-roberta-base
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/FacebookAI/xlm-roberta-base.json --dir ./xlm-roberta-base $ python3 fw.py verify ./xlm-roberta-base ./FacebookAI__xlm-roberta-base.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download FacebookAI/xlm-roberta-base --revision e73636d4f797dec63c3081bb6ed5c7b0bb3f2089 --local-dir ./xlm-roberta-base

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
bec9f2cd81f7396a64ee474145117d81139906443a21480cbe4993c97cb499aa
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: FacebookAI <huggingface.co/FacebookAI>Newsgroups: alt.freeweights.visionSubject: xlm-roberta-baseDate: 2026-11-15Commit: e73636dSigned: 2DC28CC7B26A283B ✓
Upstream
FacebookAI/xlm-roberta-base
Pinned commit
e73636d4f797dec63c3081bb6ed5c7b0bb3f2089
Manifest
xlm-roberta-base.json · .minisig
Manifest sha256
127692c81768bcda77d3510ae4a28ca541f48959aeba92557161c856c63a603c
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:25 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/FacebookAI/xlm-roberta-base.json $ curl -O https://freeweights.allternit.com/manifests/FacebookAI/xlm-roberta-base.json.minisig $ minisign -Vm xlm-roberta-base.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

2 models in the catalog name this one as their parent.

Fine-tunes
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download FacebookAI/xlm-roberta-base
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. xlm-roberta-base.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX