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

xlm-roberta-base-squad2-distilled

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

Question answering model with 277M parameters. Safetensors weights, 2.23 GB in all. Published by deepset under MIT.

277M params2.23GBxlm-roberta-base-squad2-distilledsafetensorspermissive
FactsParams277MSize2.23 GBFormatssafetensorsTaskquestion answeringLicenseMITFrom sourcepermissive
$ fw get deepset/xlm-roberta-base-squad2-distilled
# manifest sha256 00c1a44d12ea… · 2.23 GB · 9 files
$ fw verify ./xlm-roberta-base-squad2-distilled deepset/xlm-roberta-base-squad2-distilled
From sourceHosted (signed)deepset/xlm-roberta-base-squad2-distilledLast check: 2026-11-15 03:32 UTC

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

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
2.23 GB
Weights
1.11 GB (safetensors)
Parameters
277M
Formats
safetensors
Task
question answering
License
MIT (permissive)
Files
9, each with a sha256
Publisher
deepset
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 03:32 UTCpassed

Model card

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

Multilingual XLM-RoBERTa base distilled for Extractive QA on various languages#

  • Haystack's distillation feature was used for training. deepset/xlm-roberta-large-squad2 was used as the teacher model.

Overview#

Language model: deepset/xlm-roberta-base-squad2-distilled Language: Multilingual Downstream-task: Extractive QA Training data: SQuAD 2.0 Eval data: SQuAD 2.0 Code: See an example extractive QA pipeline built with Haystack Infrastructure: 1x Tesla v100

Hyperparameters#

batch_size = 56
n_epochs = 4
max_seq_len = 384
learning_rate = 3e-5
lr_schedule = LinearWarmup
embeds_dropout_prob = 0.1
temperature = 3
distillation_loss_weight = 0.75

Usage#

In Haystack#

Haystack is an AI orchestration framework to build customizable, production-ready LLM applications. You can use this model in Haystack to do extractive question answering on documents. To load and run the model with Haystack:

# After running pip install haystack-ai "transformers[torch,sentencepiece]"

from haystack import Document
from haystack.components.readers import ExtractiveReader

docs = [
    Document(content="Python is a popular programming language"),
    Document(content="python ist eine beliebte Programmiersprache"),
]

reader = ExtractiveReader(model="deepset/xlm-roberta-base-squad2-distilled")
reader.warm_up()

question = "What is a popular programming language?"
result = reader.run(query=question, documents=docs)
# {'answers': [ExtractedAnswer(query='What is a popular programming language?', score=0.5740374326705933, data='python', document=Document(id=..., content: '...'), context=None, document_offset=ExtractedAnswer.Span(start=0, end=6),...)]}

For a complete example with an extractive question answering pipeline that scales over many documents, check out the corresponding Haystack tutorial.

In Transformers#
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline

model_name = "deepset/xlm-roberta-base-squad2-distilled"

# a) Get predictions
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
QA_input = {
    'question': 'Why is model conversion important?',
    'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.'
}
res = nlp(QA_input)

# b) Load model & tokenizer
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

Performance#

Evaluated on the SQuAD 2.0 dev set

"exact": 74.06721131980123%
"f1": 76.39919553344667%

Authors#

Timo Möller: timo.moeller@deepset.ai Julian Risch: julian.risch@deepset.ai Malte Pietsch: malte.pietsch@deepset.ai Michel Bartels: michel.bartels@deepset.ai

About us#

Image: image

Image: image

deepset is the company behind the production-ready open-source AI framework Haystack.

Some of our other work:

Get in touch and join the Haystack community#

For more info on Haystack, visit our GitHub repo and Documentation.

We also have a Discord community open to everyone!

Twitter | LinkedIn | Discord | GitHub Discussions | Website | YouTube

By the way: we're hiring!

Files

9 files · 2.23 GBWeights 1.11 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes1.23 KB98ccb431c012ebfe976280fbd45aea4cec7409935868ccecf3954370f96732a1
README.md5.13 KB6b3042b628e40ec49bb990fe30cde4d8a58a7bd64cde095ab676359cec635ced
config.json767 B757c1cbde49074d71e2039c8ecbf87fb6fbbe48aec2f8e6b9f2b5838c8d0529c
model.safetensors1.11 GB167806fd25d372590fb5247e27205182a270ddd7be2499b8894beb4fe916b8e8
pytorch_model.bin1.11 GBa570d4f09042f78f8f7839062cdcd3bab6973906056b62d233ae338b034822c7
sentencepiece.bpe.model5.07 MBcfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
special_tokens_map.json239 B378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d
tokenizer.json9.08 MB2a0d7366dd7780ea36cc42431dd74cd79289b783ab01acd33013fcc96865a8e9
tokenizer_config.json363 B4707c7bf531aa1c48c47d10961806d20abf7f6b5718dc6921321f05d3c09dd58
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
c1bbfe57bc pinned now2026-11-15 03:32 UTC9 files · 2.23 GB

Use it

$ fw get deepset/xlm-roberta-base-squad2-distilled
# manifest sha256 00c1a44d12ea… · 2.23 GB · 9 files
$ fw verify ./xlm-roberta-base-squad2-distilled deepset/xlm-roberta-base-squad2-distilled
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/deepset/xlm-roberta-base-squad2-distilled.json --dir ./xlm-roberta-base-squad2-distilled $ python3 fw.py verify ./xlm-roberta-base-squad2-distilled ./deepset__xlm-roberta-base-squad2-distilled.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download deepset/xlm-roberta-base-squad2-distilled --revision c1bbfe57bc3335c37960a48c5628ba26d7e9e3b7 --local-dir ./xlm-roberta-base-squad2-distilled

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
6b3042b628e40ec49bb990fe30cde4d8a58a7bd64cde095ab676359cec635ced
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: deepset <huggingface.co/deepset>Newsgroups: alt.freeweights.visionSubject: xlm-roberta-base-squad2-distilledDate: 2026-11-15Commit: c1bbfe5Signed: 2DC28CC7B26A283B ✓
Upstream
deepset/xlm-roberta-base-squad2-distilled
Pinned commit
c1bbfe57bc3335c37960a48c5628ba26d7e9e3b7
Manifest
xlm-roberta-base-squad2-distilled.json · .minisig
Manifest sha256
00c1a44d12ea927df749706bcfc984fb7bf374a03dc6f7d88832f380fcf63236
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:32 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/deepset/xlm-roberta-base-squad2-distilled.json $ curl -O https://freeweights.allternit.com/manifests/deepset/xlm-roberta-base-squad2-distilled.json.minisig $ minisign -Vm xlm-roberta-base-squad2-distilled.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

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download deepset/xlm-roberta-base-squad2-distilled
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-squad2-distilled.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of xlm-roberta-base-squad2-distilled. Each has its own license check and page.

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