question-answering Β· SQuAD 2.0 Β· 24-layer / 16-head / 1024-d WWM Β· WASM q8 Β· 337.67 MB Β· CC-BY-4.0

BERT-Large Whole-Word Masking (SQuAD 2.0)

A 24-layer, 335M-parameter BERT-Large encoder pretrained with Whole-Word Masking (google-bert/bert-large-uncased-whole-word-masking) and fine-tuned on SQuAD 2.0 (deepset/bert-large-uncased-whole-word-masking-squad2 via onnx-community/bert-large-uncased-whole-word-masking-squad2-ONNX, 336.96 MB q8 ONNX / 337.67 MB first visit, CC-BY-4.0). Runs 100% locally in WebAssembly with calibrated [CLS] unanswerable abstention and zero-DOM-churn CSS.highlights span highlighting.

deepset/bert-large-uncased-whole-word-masking-squad2 onnx-community/bert-large-uncased-whole-word-masking-squad2-ONNX question-answering Transformers.js 3.7.5 Β· WASM q8 Β· 337.67 MB CC-BY-4.0

At a glance

Task & architecture
question-answering Β· BertForQuestionAnswering (24L, 16H, 1024-d, 4096 FFN, 512-tok, type_vocab_size: 2)
Tokenizer & pretraining
Uncased WordPiece Β· 30,522 vocab (do_lower_case: true) Β· Whole-Word Masking (google-bert/bert-large-uncased-whole-word-masking)
Runtime & quantisation
Transformers.js 3.7.5 Β· WASM q8 Β· 336.96 MB ONNX (336,960,166 B; 337.67 MB = 337,673,798 B first visit)
License & benchmark
CC-BY-4.0 Β· SQuAD 2.0 validation: 80.88 EM / 83.88 F1 ([CLS] null sink)
24-layer Whole-Word Masking + SQuAD 2.0 contract: Unlike 6-layer SQuAD v1.1 models that must guess a span for every prompt, BERT-Large WWM SQuAD 2.0 trains index 0 ([CLS]) as an explicit no-answer sink. Whole-Word Masking masks all WordPiece subwords of a word together during pretraining, sharpening span boundaries across technical terms, dates, and multi-word clauses.

1 Β· Initialise BERT-Large WWM SQuAD 2.0 locally

License notice: Model weights are licensed under CC-BY-4.0 (deepset/bert-large-uncased-whole-word-masking-squad2 via onnx-community/bert-large-uncased-whole-word-masking-squad2-ONNX). Inference runs strictly off the main thread in a FIFO Web Worker via shared ../../lib/webai.js (pipeline("question-answering", "onnx-community/bert-large-uncased-whole-word-masking-squad2-ONNX", { device: "wasm", dtype: "q8" })).

2 Β· 337.7 MB Extractive QA & SQuAD 2.0 Abstention Desk

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

Initialise BERT-Large WWM SQuAD 2.0 above to extract grounded character spans and [CLS] abstention scores.

Waiting for model

β€”

Ask a question once ready to inspect the highest-scoring SQuAD 2.0 span, [CLS] null probability, and 24-layer boundary logits.

Calibrated Scoreβ€”
[CLS] Null Probβ€”
Span βˆ’ [CLS] Gapβ€”
Start / End Logitsβ€”
Char Offsetsβ€”
Latency (WASM)β€”
Tokens / 512β€”
Finite Checkβ€”

Highlighted Source Passage (CSS.highlights)

Exact character span [start:end] painted with the CSS Custom Highlight API (CSS.highlights + TreeWalker, with semantic <mark> fallback).

Top-K Candidate Spans Leaderboard

Click any candidate span to move the live CSS.highlights range and inspect its logit sum.

Why 24-layer Whole-Word Masking matters

Compared to distilled 6-layer SQuAD v1.1 readers, BERT-Large WWM SQuAD 2.0 brings 1024-dimensional hidden states, 24 encoder layers, and whole-word masked WordPiece representations plus native [CLS] unanswerable abstention β€” enabling browser-local document tools that refuse unsupported questions honestly:

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 24-layer BERT-Large WWM logit inspection
Show the code β€” bert-large-wwm.js CSS.highlights Custom Highlight API + <mark> fallback