Skip to content
WebAI

text / question-answering

Extractive QA

Locate the answer span inside a passage; the answer is always quoted from the source text.

2 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

DistilBERT (SQuAD)

DistilBERT fine-tuned on SQuAD v1.1 for extractive QA. The answer is always a span of the passage, never newly written text. The cased build keeps letter case.

Tasks: Extractive QA

ModelTransformers.js

q8: 62.8 MiB

Code license: Apache-2.0

Weight license: Apache-2.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/distilbert-base-cased-distilled-squad
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Extractive QA
Package
Not verified
Runtime version
@huggingface/transformers@4.3.1
Execution backend
webgpu, wasm
Code license
Apache-2.0
Weight license
Apache-2.0

Deployment variants

q8
Download size: 62.8 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

DistilBERT uncased (SQuAD)

The uncased, lowercased checkpoint for the same extractive QA task. Slightly different behaviour on English text; Chinese passages are not supported.

Tasks: Extractive QA

ModelTransformers.js

q8: 63.9 MiB

Code license: Apache-2.0

Weight license: Apache-2.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/distilbert-base-uncased-distilled-squad
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Extractive QA
Package
Not verified
Runtime version
@huggingface/transformers@4.3.1
Execution backend
webgpu, wasm
Code license
Apache-2.0
Weight license
Apache-2.0

Deployment variants

q8
Download size: 63.9 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

About Extractive QA

Extractive QA under Text holds 2 catalogue entries: 2 models.

2 of them carry browser evidence, all from upstream browser examples.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
2 in total
Main runtime
Transformers.js
Smallest known weights
62.8 MiB
Browser evidence
2 of 2 verified

Extractive QA: common questions

Can Extractive QA run directly in a browser?
Yes. 2 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Extractive QA?
We verified the weight file sizes of 2 entries in this task; the smallest tier is 62.8 MiB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
Which devices suit Extractive QA?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Text models →