basics · see inside 12-layer mDeBERTa-v3 · SentencePiece logits & XQuAD calibration · MIT

SentencePiece Span Logits & Multilingual Calibration

Every forward pass of DebertaV2ForQuestionAnswering (onnx-community/mdeberta-v3-base-squad2-ONNX, 333.45 MB q8 WASM, MIT) emits start_logits and end_logits across a 512-token relative-attention sequence: [CLS] question [SEP] context [SEP]. Index 0 ([CLS]) is the SQuAD v2 null sink. Inspect live SentencePiece probabilities and sweep threshold τ across 6 multilingual XQuAD/MLQA + SQuAD2 probes.

1 · Initialise mDeBERTa-v3-base SQuAD2

2 · Raw Start/End Logits vs [CLS] Null Margin Inspector

Initialise mDeBERTa-v3-base SQuAD2 above to inspect SentencePiece start/end logits and [CLS] null margin.

Top Span Score—
Null P([CLS])—
Null Logit Sum—
Best Span Logit Sum—
CLS Margin (Δ)—
Char Range [s..e]—
Finite Check—

Character Offset Span Inspector

Hover or click any top-K candidate on the right to preview via CSS.highlights and inspect exact UTF-16 character offsets.

Top-K Span Probability Chart

3 · 6-Probe Multilingual XQuAD/MLQA & SQuAD2 Calibration Curve

Run 6 labeled multilingual probes (German, French, Chinese answerable spans + German, French, English unanswerable traps) live through 12-layer mDeBERTa-v3-base SQuAD2, then drag threshold τ across 0.00..1.00 to measure accuracy, hallucination rate (FP), and false abstention rate (FN).

Ready to calibrate once mDeBERTa-v3-base SQuAD2 is initialised.

Accuracy at τ—
Hallucination Rate (FP)—
False Abstention (FN)—
Abstention Recall—
Optimal Threshold—
Sweep Time—
Lang Probe Question Ground Truth Top Span Span Score Null P([CLS]) Outcome at τ
Run the calibration sweep to populate live per-probe scores.

4 · Show the code

View worker.js · runLogitPass() (lines 117–256)
View mdeberta-core.mjs · computeCalibrationCurve() (lines 337–400)
View mdeberta-client.js · drawCalibrationCanvas() (lines 825–957)