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

roberta-base-squad2

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

Question answering model with 124M parameters. Safetensors weights, 2.49 GB in all. Published by deepset under CC-BY-4.0.

124M params2.49GBroberta-base-squad2safetensorspermissive
FactsParams124MSize2.49 GBFormatssafetensorsTaskquestion answeringLicenseCC-BY-4.0From sourcepermissive
$ fw get deepset/roberta-base-squad2
# manifest sha256 c42dc25b3f84… · 2.49 GB · 12 files
$ fw verify ./roberta-base-squad2 deepset/roberta-base-squad2
From sourceHosted (signed)deepset/roberta-base-squad2Last check: 2026-11-15 02:27 UTC

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

Fine-tune of roberta-base.

Overview

Size
2.49 GB
Weights
496 MB (safetensors)
Parameters
124M
Formats
safetensors
Task
question answering
License
CC-BY-4.0 (permissive)
Files
12, each with a sha256
Publisher
deepset
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: FacebookAI/roberta-base

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:27 UTCpassed

Model card

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

roberta-base for Extractive QA#

This is the roberta-base model, fine-tuned using the SQuAD2.0 dataset. It's been trained on question-answer pairs, including unanswerable questions, for the task of Extractive Question Answering. We have also released a distilled version of this model called deepset/tinyroberta-squad2. It has a comparable prediction quality and runs at twice the speed of deepset/roberta-base-squad2.

Overview#

Language model: roberta-base Language: English 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: 4x Tesla v100

Hyperparameters#

batch_size = 96
n_epochs = 2
base_LM_model = "roberta-base"
max_seq_len = 386
learning_rate = 3e-5
lr_schedule = LinearWarmup
warmup_proportion = 0.2
doc_stride=128
max_query_length=64

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/roberta-base-squad2")
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/roberta-base-squad2"

# 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 with the official eval script.

"exact": 79.87029394424324,
"f1": 82.91251169582613,

"total": 11873,
"HasAns_exact": 77.93522267206478,
"HasAns_f1": 84.02838248389763,
"HasAns_total": 5928,
"NoAns_exact": 81.79983179142137,
"NoAns_f1": 81.79983179142137,
"NoAns_total": 5945

Authors#

Branden Chan: branden.chan@deepset.ai Timo Möller: timo.moeller@deepset.ai Malte Pietsch: malte.pietsch@deepset.ai Tanay Soni: tanay.soni@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

12 files · 2.49 GBWeights 496 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 12 files with their sha256
FileSizesha256
.gitattributes445 B98c91dabef4df27b2fc7c8454d220aba47476f73593cbd034d961fe4927304c1
README.md9.18 KB04834cd9007b2cdd1b1bdd501b571579577331e467be6e24e47d40f060558a29
config.json571 B64fa58495a722d57609c22f199824bfe98c19be068136a70c268214a08cb8060
flax_model.msgpack496 MB6a8d759d881d9c1b39dbf4ee451fb8a8c2d43ccbd180218863a54ffd9b4d2447
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
model.safetensors496 MBac5db66fdcfecb400345d09787b71009d60805ef9883451071669cf951b5e2c7
pytorch_model.bin496 MBe0b64ccefc1bcb569b604baea27eb873e5482fdf6eb3ceff1fb5368397db5aed
rust_model.ot499 MB5a16ed126bbc8c4cf794406bac0c7946f62d0f175c02dc54d77a00a6255597ed
special_tokens_map.json772 Bc611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00
tf_model.h5497 MB9b672dd16f09f6f805d407800278e60217b9d7c040df1dde5098765a40cdc88a
tokenizer_config.json79 B7a33226d4265e3989cc6341666af179d0cc710136f4059aae0dd8c0797cba556
vocab.json899 KB06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
adc3b06f79 pinned now2026-11-15 02:27 UTC12 files · 2.49 GB

Use it

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

License

Name
Creative Commons Attribution 4.0
Id
CC-BY-4.0
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
04834cd9007b2cdd1b1bdd501b571579577331e467be6e24e47d40f060558a29
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: roberta-base-squad2Date: 2026-11-15Commit: adc3b06Signed: 2DC28CC7B26A283B ✓
Upstream
deepset/roberta-base-squad2
Pinned commit
adc3b06f79f797d1c575d5479d6f5efe54a9e3b4
Manifest
roberta-base-squad2.json · .minisig
Manifest sha256
c42dc25b3f840e9f3c61d1d777b0611361e8ecf0a7d4114000d7667138600c20
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:27 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

Parent

FacebookAI/roberta-base · this model is a finetune of it

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/roberta-base-squad2
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. roberta-base-squad2.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of roberta-base-squad2. 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