question-answering · SQuAD v1.1 · 6-layer uncased · WASM q8 · 66.98 MB · Apache-2.0

DistilBERT Uncased Distilled SQuAD

A 6-layer distilled BERT reader fine-tuned on SQuAD v1.1 (distilbert/distilbert-base-uncased-distilled-squad via Xenova/distilbert-base-uncased-distilled-squad, 66.98 MB q8 WASM, do_lower_case: true, Apache-2.0) running 100% in your browser. Extract exact [start:end] spans with raw logit margins — and see honestly how SQuAD v1.1 always forces a positive-probability span even on unanswerable questions.

distilbert/distilbert-base-uncased-distilled-squad Xenova/distilbert-base-uncased-distilled-squad question-answering Transformers.js 3.7.5 · WASM q8 · 66.98 MB Apache-2.0

At a glance

Task & architecture
question-answering · 6-layer DistilBERT (768-d, 12 heads, 512-tok, no token_type_ids)
Runtime & backend
Transformers.js 3.7.5 · WebAssembly (CPU WASM)
Quantisation & size
q8 · 66.98 MB (66,983,594 B onnx/model_quantized.onnx)
License & dataset
Apache-2.0 · SQuAD v1.1 (do_lower_case: true)
Honest SQuAD v1.1 behavior (no [CLS] unanswerable head): Unlike SQuAD v2.0 readers, distilbert-base-uncased-distilled-squad was trained only on answerable questions. On any unanswerable question, softmax still sums to 100% over context tokens and picks the highest start_logit + end_logit span — inspect the logit margin below and test the trap chips to see this live.

1 · Initialise DistilBERT Uncased SQuAD locally

License notice: Model weights are licensed under Apache-2.0 (distilbert/distilbert-base-uncased-distilled-squad via Xenova/distilbert-base-uncased-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-uncased-distilled-squad", { device: "wasm", dtype: "q8" })).

2 · 67 MB Fast Extractive Question-Answering Desk

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

Initialise DistilBERT Uncased 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 margin over runner-up.

Calibrated Score—
Start / End Logits—
Logit Margin (Δ#2)—
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 logit inspection
Show the code — distil-core.mjs SQuAD v1.1 logit margin & [CLS] comparison