alt.freeweights.vision / tinyroberta-squad2-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

tinyroberta-squad2-ONNX

Date: 2026-11-15Commit: 7c9f69bSigned: 2DC28CC7B26A283B ✓

Question answering model. Onnx weights, 1.21 GB in all. Published by onnx-community under CC-BY-4.0.

vision1.21GBtinyroberta-squad2-ONNXonnxpermissive
FactsParamsnot statedSize1.21 GBFormatsonnxTaskquestion answeringLicenseCC-BY-4.0From sourcepermissive
$ fw get onnx-community/tinyroberta-squad2-ONNX
# manifest sha256 ad0d3eecf826… · 1.21 GB · 17 files
$ fw verify ./tinyroberta-squad2-ONNX onnx-community/tinyroberta-squad2-ONNX
From sourceHosted (signed)onnx-community/tinyroberta-squad2-ONNXLast check: 2026-11-15 05:22 UTC

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

Quantized of tinyroberta-squad2.

Works with

Runs with

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

Convert with

Scan with

Overview

Size
1.21 GB
Weights
82.1 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
question answering
License
CC-BY-4.0 (permissive)
Files
17, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: deepset/tinyroberta-squad2

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 05:22 UTCpassed

Model card

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

tinyroberta-squad2 (ONNX)#

This is an ONNX version of deepset/tinyroberta-squad2. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for question-answering: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.QuestionAnsweringPipeline


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

17 files · 1.21 GBWeights 82.1 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 17 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md9.94 KB4c4170cf8b9fdcc4496915461b83069500f9365f6eea949869c47cd369209744
config.json815 Bc2321a2d8d4945ef0f26abfbb4aa9dded2a7ce14aa35bb8daa2eb94765629538
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
onnx/model.onnx326 MB58255873e66f7b160ea74632a8270dde1772976cb3888fa0ee09d660191ed8b2
onnx/model_bnb4.onnx180 MBc45281682843fcd23dddf53ac2c11e2db38fbf4ad3351ee5b87bc4d187bb8b88
onnx/model_fp16.onnx163 MBe8a51309d4931e60ac98e29bff8eb95579e82088673f68c5f735db1cc6facf28
onnx/model_int8.onnx82.1 MB4db70e7a019e32bf652fb9d30a5c24d18b6949fae2f1dd00d9fe6d43052b77cd
onnx/model_q4.onnx183 MB22e174863b2c499ec4a2cf7ee32f16aaa799c0bf94ff1c3073c917c66fb3e3da
onnx/model_q4f16.onnx102 MBb69addf05ae4579dac9462ddd33eb62979ea460d330506e3c4978f62e6104d1f
onnx/model_quantized.onnx82.1 MB4db70e7a019e32bf652fb9d30a5c24d18b6949fae2f1dd00d9fe6d43052b77cd
onnx/model_uint8.onnx82.1 MB8dd81c7a3b31fb6e53760e75ea057adaf8eaca7424fdecf4d35c4d2f4a0365ca
quantize_config.json310 B9b60b5877b9a1687b5cddbc06124a974cb7536af9dbf5295279bf73c3823170c
special_tokens_map.json964 B8c785abebea9ae3257b61681b4e6fd8365ceafde980c21970d001e834cf10835
tokenizer.json3.56 MB7b62d797c95d1563d3467f48daad0eca3e150f2d587e7e687b557c9ef1b25473
tokenizer_config.json1.25 KB84a7845eb414a991a292bc75b709f5996589620e022188839e6a1362d1190c4d
vocab.json798 KBed19656ea1707df69134c4af35c8ceda2cc9860bf2c3495026153a133670ab5e
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7c9f69b7e6 pinned now2026-11-15 05:22 UTC17 files · 1.21 GB

Use it

$ fw get onnx-community/tinyroberta-squad2-ONNX
# manifest sha256 ad0d3eecf826… · 1.21 GB · 17 files
$ fw verify ./tinyroberta-squad2-ONNX onnx-community/tinyroberta-squad2-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/tinyroberta-squad2-ONNX.json --dir ./tinyroberta-squad2-ONNX $ python3 fw.py verify ./tinyroberta-squad2-ONNX ./onnx-community__tinyroberta-squad2-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/tinyroberta-squad2-ONNX --revision 7c9f69b7e6228375169a4553bcfa6639152e3a69 --local-dir ./tinyroberta-squad2-ONNX

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
4c4170cf8b9fdcc4496915461b83069500f9365f6eea949869c47cd369209744
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: tinyroberta-squad2-ONNXDate: 2026-11-15Commit: 7c9f69bSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/tinyroberta-squad2-ONNX
Pinned commit
7c9f69b7e6228375169a4553bcfa6639152e3a69
Manifest
tinyroberta-squad2-ONNX.json · .minisig
Manifest sha256
ad0d3eecf8261b240015e720596b1531a5f6084aab401bdce4df941cda68c718
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:22 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/tinyroberta-squad2-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/tinyroberta-squad2-ONNX.json.minisig $ minisign -Vm tinyroberta-squad2-ONNX.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

deepset/tinyroberta-squad2 · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/tinyroberta-squad2-ONNX
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. tinyroberta-squad2-ONNX.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