basics Β· see inside Β· 24L/16H/1024-d logits Β· WWM boundary sharpness Β· CC-BY-4.0

24-Layer Start/End Logits, WWM Sharpness & Span Calibration

Look inside deepset/bert-large-uncased-whole-word-masking-squad2 (onnx-community/bert-large-uncased-whole-word-masking-squad2-ONNX, 337.67 MB q8 WASM): measure per-token start/end Shannon entropy (24-layer / 1024-d WWM vs 6-layer / 768-d DistilBERT depth), tune max_answer_len and top_k, and inspect token_type_ids + [CLS] null calibration.

1 Β· Initialise BERT-Large WWM SQuAD 2.0

2 Β· Start/End Span Logits & max_answer_len / top_k Calibration

Initialise BERT-Large WWM SQuAD 2.0 above to inspect 24-layer start/end logits, entropy sharpness, and sliding-window stride.

Top Span Scoreβ€”
[CLS] Null Probβ€”
Span βˆ’ [CLS] Gapβ€”
Margin vs #2β€”
H(start) / H(end)β€”
Sharpness Bandβ€”
Depth Comparison24L/1024d vs 6L/768d
Sliding Strideβ€”
Finite Checkβ€”

DOM mirror: run logit inspection to inspect peak start/end WordPiece tokens, Shannon entropy in bits, and [CLS] null logits.

Highlighted Span & Offsets (CSS.highlights)

Click any candidate span on the right to move the CSS.highlights range and inspect its UTF-16 offsets.

top_k Candidate Spans (≀ max_answer_len)

3 Β· Uncased WordPiece + token_type_ids Sequence Ribbon

BERT-Large uses type_vocab_size: 2 (s0 = [CLS] question [SEP], s1 = context [SEP]) over a 30,522-token uncased WordPiece vocabulary. Dashed badges mark Whole-Word-Masked ## subword continuations; green badges mark the active [seqStart..seqEnd] span.

Total Seq Tokensβ€”
Context Tokensβ€”
WWM ## Subwordsβ€”
Active Token Spanβ€”

4 Β· Show the code

Show the code β€” worker.js raw 24-layer BERT-Large start/end logit & token_type_ids pass
Show the code β€” bert-large-wwm-core.mjs Shannon entropy & 24-layer WWM sharpness diagnostics