AI SeedbankHelp preserve open and free AI for humanity's future

← All models

deepset_roberta-base-squad2

deepset · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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.


language: en license: cc-by-4.0 datasets:

  • squad_v2 model-index:
  • name: deepset/roberta-base-squad2 results:
    • task: type: question-answering name: Question Answering dataset: name: squad_v2 type: squad_v2 config: squad_v2 split: validation metrics:
      • type: exact_match value: 79.9309 name: Exact Match verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMDhhNjg5YzNiZGQ1YTIyYTAwZGUwOWEzZTRiYzdjM2QzYjA3ZTUxNDM1NjE1MTUyMjE1MGY1YzEzMjRjYzVjYiIsInZlcnNpb24iOjF9.EH5JJo8EEFwU7osPz3s7qanw_tigeCFhCXjSfyN0Y1nWVnSfulSxIk_DbAEI5iE80V4EKLyp5-mYFodWvL2KDA
      • type: f1 value: 82.9501 name: F1 verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMjk5ZDYwOGQyNjNkMWI0OTE4YzRmOTlkY2JjNjQ0YTZkNTMzMzNkYTA0MDFmNmI3NjA3NjNlMjhiMDQ2ZjJjNSIsInZlcnNpb24iOjF9.DDm0LNTkdLbGsue58bg1aH_s67KfbcmkvL-6ZiI2s8IoxhHJMSf29H_uV2YLyevwx900t-MwTVOW3qfFnMMEAQ
      • type: total value: 11869 name: total verified: true verifyToken: >- eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiMGFkMmI2ODM0NmY5NGNkNmUxYWViOWYxZDNkY2EzYWFmOWI4N2VhYzY5MGEzMTVhOTU4Zjc4YWViOGNjOWJjMCIsInZlcnNpb24iOjF9.fexrU1icJK5_MiifBtZWkeUvpmFISqBLDXSQJ8E6UnrRof-7cU0s4tX_dIsauHWtUpIHMPZCf5dlMWQKXZuAAA
    • task: type: question-answering name: Question Answering dataset: name: squad type: squad config: plain_text split: validation metrics:
      • type: exact_match value: 85.289 name: Exact Match
      • type: f1 value: 91.841 name: F1
    • task: type: question-answering name: Question Answering dataset: name: adversarial_qa type: adversarial_qa config: adversarialQA split: validation metrics:
      • type: exact_match value: 29.5 name: Exact Match
      • type: f1 value: 40.367 name: F1
    • task: type: question-answering name: Question Answering dataset: name: squad_adversarial type: squad_adversarial config: AddOneSent split: validation metrics:
      • type: exact_match value: 78.567 name: Exact Match
      • type: f1 value: 84.469 name: F1
    • task: type: question-answering name: Question Answering dataset: name: squadshifts amazon type: squadshifts config: amazon split: test metrics:
      • type: exact_match value: 69.924 name: Exact Match
      • type: f1 value: 83.284 name: F1
    • task: type: question-answering name: Question Answering dataset: name: squadshifts new_wiki type: squadshifts config: new_wiki split: test metrics:
      • type: exact_match value: 81.204 name: Exact Match
      • type: f1 value: 90.595 name: F1
    • task: type: question-answering name: Question Answering dataset: name: squadshifts nyt type: squadshifts config: nyt split: test metrics:
      • type: exact_match value: 82.931 name: Exact Match
      • type: f1 value: 90.756 name: F1
    • task: type: question-answering name: Question Answering dataset: name: squadshifts reddit type: squadshifts config: reddit split: test metrics:
      • type: exact_match value: 71.55 name: Exact Match
      • type: f1 value: 82.939 name: F1

base_model:

  • FacebookAI/roberta-base

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: [email protected]
Timo Möller: [email protected]
Malte Pietsch: [email protected]
Tanay Soni: [email protected]

About us

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!

Magnet link

Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:

magnet:?xt=urn:btih:a5ec7977527ff5c5ecbb6d870d9b9cb3c88485f0&dn=deepset_roberta-base-squad2

Open magnet in torrent client · infohash a5ec7977527ff5c5ecbb6d870d9b9cb3c88485f0

Files & hashes

PathSizesha1sha256
README.md9.0 KB (9,181 B)a47791b5d3b0403ed63df4ce82999334d27249ec04834cd9007b2cdd1b1bdd501b571579577331e467be6e24e47d40f060558a29
config.json571 B (571 B)a1f66a8df792b74eb796ed468eb1fcb1d739d55864fa58495a722d57609c22f199824bfe98c19be068136a70c268214a08cb8060
merges.txt445.6 KB (456,318 B)226b0752cac7789c48f0cb3ec53eda48b7be36cc1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
model.safetensors473.3 MB (496,254,442 B)e416cea83be9bbe0ef414b73ec8024a849b62f4fac5db66fdcfecb400345d09787b71009d60805ef9883451071669cf951b5e2c7
pytorch_model.bin473.3 MB (496,313,727 B)80bfa64e3a4166f3a404c1caa72f463c1667291ae0b64ccefc1bcb569b604baea27eb873e5482fdf6eb3ceff1fb5368397db5aed
rust_model.ot475.5 MB (498,638,704 B)3ff44882cf4f0f69c2a4785756912a1e3a0aa3605a16ed126bbc8c4cf794406bac0c7946f62d0f175c02dc54d77a00a6255597ed
special_tokens_map.json772 B (772 B)e97d1993365bb21c88f390e8703e4c1af564821fc611b1f7d416eb001ee4f293d903ea8c88e703463f1d403f1866a0352743fd00
tokenizer_config.json79 B (79 B)716c99719ef143bc426aac25d0c843c52a1bac8f7a33226d4265e3989cc6341666af179d0cc710136f4059aae0dd8c0797cba556
vocab.json877.8 KB (898,822 B)0a39732b2d8be8e493cab3da68b68cc3e28221de06b4d46c8e752d410213d9548eb27a54db70fda0319b6271fb8d59dead5e1cab

Cite this release

Canonical URL
https://aiseedbank.org/models/deepset_roberta-base-squad2/
Slug
deepset_roberta-base-squad2
Infohash
a5ec7977527ff5c5ecbb6d870d9b9cb3c88485f0
License
cc-by-4.0
Signing key fingerprint
85a3b32c3712427b

Every file carries a locally computed sha256 — verify a download against the signed sums: deepset_roberta-base-squad2.SHA256SUMS (+ minisign signature).

Provenance

Upstream repositorydeepset/roberta-base-squad2
Revision (pinned)adc3b06f79f797d1c575d5479d6f5efe54a9e3b4
Fetched at2026-09-03T22:17:20Z
License at fetchcc-by-4.0
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ verified · rehash-vs-hf-metadata at 2026-09-03T22:17:41Z

cc-by-4.01.39 GB (1,492,572,616 bytes)transformerspytorchjaxrustsafetensorsrobertaquestion-answeringmodel-indexendpoints_compatible2 languages (tf, en)