question-answering Β· SQuAD v1.1 Β· 6-layer cased (do_lower_case: false) Β· WASM q8 Β· 65.81 MB Β· Apache-2.0

DistilBERT Cased Distilled SQuAD

A 6-layer distilled BERT reader fine-tuned on SQuAD v1.1 (distilbert/distilbert-base-cased-distilled-squad via Xenova/distilbert-base-cased-distilled-squad, 65.81 MB q8 ONNX / 66.48 MB first visit, do_lower_case: false, 28,996-token cased WordPiece, Apache-2.0) running 100% locally in your browser. Preserves proper nouns, acronyms (NASA, GDPR, HIPAA), and mixed-case symbols while exposing raw SQuAD v1.1 logit margins.

distilbert/distilbert-base-cased-distilled-squad Xenova/distilbert-base-cased-distilled-squad question-answering Transformers.js 3.7.5 Β· WASM q8 Β· 65.81 MB Apache-2.0

At a glance

Task & architecture
question-answering Β· 6-layer DistilBERT (768-d, 12 heads, 512-tok, no token_type_ids)
Tokenizer & casing
Cased WordPiece Β· 28,996 vocab (do_lower_case: false)
Runtime & quantisation
Transformers.js 3.7.5 Β· WASM q8 Β· 65.81 MB ONNX (65,811,627 B; 66.48 MB first visit)
License & dataset
Apache-2.0 Β· SQuAD v1.1 (no [CLS] unanswerable gate)
Cased WordPiece + SQuAD v1.1 contract: Unlike uncased readers, distilbert-base-cased-distilled-squad keeps casing intact (do_lower_case: false) so acronyms and proper nouns stay whole tokens β€” while ALL-CAPS input degrades span confidence. Like all SQuAD v1.1 checkpoints, it has no trained [CLS] null sink and always forces a positive-probability span on unanswerable traps.

1 Β· Initialise DistilBERT Cased SQuAD locally

License notice: Model weights are licensed under Apache-2.0 (distilbert/distilbert-base-cased-distilled-squad via Xenova/distilbert-base-cased-distilled-squad). Inference runs off the main thread in a strict FIFO Web Worker via shared ../../lib/webai.js (pipeline("question-answering", "Xenova/distilbert-base-cased-distilled-squad", { device: "wasm", dtype: "q8" })).

2 Β· 65.8 MB Cased Extractive Question-Answering Desk

Drop, paste (Ctrl/⌘+V), or upload a local .txt / .md / .csv / .json passage (stays 100% on-device).

Initialise DistilBERT Cased SQuAD above to extract grounded character spans and logit margins.

Waiting for model

β€”

Ask a question once ready to inspect the highest-scoring SQuAD v1.1 span, start/end logits, and cased token counts.

Calibrated Scoreβ€”
Start / End Logitsβ€”
Logit Margin (Ξ”#2)β€”
Null Gap (Spanβˆ’CLS)β€”
Char Offsetsβ€”
Latency (WASM)β€”
Tokens / 512β€”
Finite Checkβ€”

Highlighted Source Passage

Exact character span [start:end] rendered with pure TextNode + semantic <mark> nodes.

Top-K Candidate Spans Leaderboard

Click any candidate span to highlight its exact [start:end] offsets and inspect its logit sum.

Use-case ladder

Show the code

Inspect the live vanilla ES modules powering this route β€” zero bundler, zero hidden server calls.

Show the code β€” worker.js pipeline & raw DistilBERT Cased logit inspection
Show the code β€” squad-cased-core.mjs SQuAD v1.1 margin & [CLS] null calibration