deepset_tinyroberta-squad2
deepset · View on Hugging Face ↗
Get this model
Seeders: 1 · Leechers: 0
Observed 2026-09-02T13:56:39Z via announce.aitorrent.org:7070.
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/tinyroberta-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: 78.8627 name: Exact Match verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiNDNlZDU4ODAxMzY5NGFiMTMyZmQ1M2ZhZjMyODA1NmFlOGMxNzYxNTA4OGE5YTBkZWViZjBkNGQ2ZmMxZjVlMCIsInZlcnNpb24iOjF9.Wgu599r6TvgMLTrHlLMVAbUtKD_3b70iJ5QSeDQ-bRfUsVk6Sz9OsJCp47riHJVlmSYzcDj_z_3jTcUjCFFXBg
- type: f1 value: 82.0355 name: F1 verified: true verifyToken: eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJoYXNoIjoiOTFkMzEzMWNiZDRhMGZlODhkYzcwZTZiMDFjZDg2YjllZmUzYWM5NTgwNGQ2NGYyMDk2ZGQwN2JmMTE5NTc3YiIsInZlcnNpb24iOjF9.ChgaYpuRHd5WeDFjtiAHUyczxtoOD_M5WR8834jtbf7wXhdGOnZKdZ1KclmhoI5NuAGc1NptX-G0zQ5FTHEcBA
- task:
type: question-answering
name: Question Answering
dataset:
name: squad
type: squad
config: plain_text
split: validation
metrics:
- type: exact_match value: 83.860 name: Exact Match
- type: f1 value: 90.752 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: 25.967 name: Exact Match
- type: f1 value: 37.006 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: 76.329 name: Exact Match
- type: f1 value: 83.292 name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squadshifts amazon
type: squadshifts
config: amazon
split: test
metrics:
- type: exact_match value: 63.915 name: Exact Match
- type: f1 value: 78.395 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: 80.297 name: Exact Match
- type: f1 value: 89.808 name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squadshifts nyt
type: squadshifts
config: nyt
split: test
metrics:
- type: exact_match value: 80.149 name: Exact Match
- type: f1 value: 88.321 name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squadshifts reddit
type: squadshifts
config: reddit
split: test
metrics:
- type: exact_match value: 66.959 name: Exact Match
- type: f1 value: 79.300 name: F1
- task:
type: question-answering
name: Question Answering
dataset:
name: squad_v2
type: squad_v2
config: squad_v2
split: validation
metrics:
tinyroberta for Extractive QA
This is the distilled version of the deepset/roberta-base-squad2 model. This model has a comparable prediction quality and runs at twice the speed of the base model.
Overview
Language model: tinyroberta-squad2
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 = 4
base_LM_model = "deepset/tinyroberta-squad2-step1"
max_seq_len = 384
learning_rate = 3e-5
lr_schedule = LinearWarmup
warmup_proportion = 0.2
doc_stride = 128
max_query_length = 64
distillation_loss_weight = 0.75
temperature = 1.5
teacher = "deepset/robert-large-squad2"
Distillation
This model was distilled using the TinyBERT approach described in this paper and implemented in haystack. Firstly, we have performed intermediate layer distillation with roberta-base as the teacher which resulted in deepset/tinyroberta-6l-768d. Secondly, we have performed task-specific distillation with deepset/roberta-base-squad2 as the teacher for further intermediate layer distillation on an augmented version of SQuADv2 and then with deepset/roberta-large-squad2 as the teacher for prediction layer distillation.
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/tinyroberta-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/tinyroberta-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": 78.69114798281817,
"f1": 81.9198998536977,
"total": 11873,
"HasAns_exact": 76.19770580296895,
"HasAns_f1": 82.66446878592329,
"HasAns_total": 5928,
"NoAns_exact": 81.17746005046257,
"NoAns_f1": 81.17746005046257,
"NoAns_total": 5945
Authors
Branden Chan: [email protected]
Timo Möller: [email protected]
Malte Pietsch: [email protected]
Tanay Soni: [email protected]
Michel Bartels: [email protected]
About us
deepset is the company behind the production-ready open-source AI framework Haystack.
Some of our other work:
- Distilled roberta-base-squad2 (aka "tinyroberta-squad2")
- German BERT, GermanQuAD and GermanDPR, German embedding model
- deepset Cloud, deepset Studio
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:575812a291cb0fba9e4a9fcb8c106418ce4c37a4&dn=deepset_tinyroberta-squad2Open magnet in torrent client · infohash 575812a291cb0fba9e4a9fcb8c106418ce4c37a4
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| README.md | 9.1 KB (9,363 B) | 1399c9dff0eac301e14d2827ed46908929c38f42 | 2cd55504a4280ed9492272f1a2b28c704e9e45289dcb2489cda8534e12fa5925 |
| config.json | 835 B (835 B) | 9f355b9ad53dd4a461c905ee61c1a7eb2eb29673 | 7ce4cd7a367750fda5a31ac623632463a07f853fc65b1079c27ff4e8bb52ad67 |
| merges.txt | 445.7 KB (456,356 B) | 6636bda4a1fd7a63653dffb22683b8162c8de956 | fe36cab26d4f4421ed725e10a2e9ddb7f799449c603a96e7f29b5a3c82a95862 |
| model.safetensors | 311.0 MB (326,133,904 B) | 78bb5dcfe4fa6cd65f5e98f176bbdad127f7378a | 39955cbf5f636762a2ef642b718c8c6e172d153c94a13de40b37efd00822cd80 |
| pytorch_model.bin | 311.1 MB (326,162,801 B) | c4e156c1e85c26a0c7dda04f3def05423dd68dbb | 20d4e188516befd95769e0e85bd84fcae68bc6b8a1888d4d19268990f66e00ac |
| special_tokens_map.json | 239 B (239 B) | 2ea7ad0e45a9d1d1591782ba7e29a703d0758831 | 378eb3bf733eb16e65792d7e3fda5b8a4631387ca04d2015199c4d4f22ae554d |
| tokenizer.json | 1.3 MB (1,355,881 B) | 75801df688e89a96f642b98cbdd97288f5207518 | 33465117406b9007673e8ba283f7f1383d9b5094df947481af60eec94ed7d7bd |
| tokenizer_config.json | 383 B (383 B) | aac38a7e77d26ab014535f08e19d6b98023a7c71 | 3b77521115e4231e4f4c7f7786ddc1e14710c90aae66ca2d8c92f5e1b0ca516c |
| vocab.json | 779.6 KB (798,293 B) | 4ebe4bb3f3114daf2e4cc349f24873a1175a35d7 | ed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/deepset_tinyroberta-squad2/
- Slug
- deepset_tinyroberta-squad2
- Infohash
- 575812a291cb0fba9e4a9fcb8c106418ce4c37a4
- License
- cc-by-4.0
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: deepset_tinyroberta-squad2.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | deepset/tinyroberta-squad2 |
|---|---|
| Revision (pinned) | 12b287c9df677e28b07f0a023850dba68c997dbf |
| Fetched at | 2026-09-02T04:30:52Z |
| License at fetch | cc-by-4.0 |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-02T04:31:01Z
cc-by-4.0624.6 MB (654,918,055 bytes)transformerspytorchsafetensorsrobertaquestion-answeringmodel-indexendpoints_compatible1 language (en)paper: 1909.10351