Multi-model · DeBERTa-v3-XSmall (95.9 MB q8) vs DeBERTa-v3-Large v2.0 (538.8 MB int8) · MIT

Head-to-Head Zero-Shot Duel: XSmall vs Large v2.0 (634.7 MB Pack)

When is a 95.9 MB 12-layer edge model enough, and when do you need a 538.8 MB 24-layer cross-encoder? Run Stage 1 (MoritzLaurer/deberta-v3-xsmall-zeroshot-v1.1-all-33, reusing ../deberta-v3-xsmall-zeroshot-v1-1-all-33/worker.js) head-to-head against Stage 2 (onnx-community/deberta-v3-large-zeroshot-v2.0-ONNX) on double-negation policies, contract exceptions, and root-cause ambiguity.

1. Two independent on-device models (634.7 MB total)

Stage 1 · DeBERTa-v3-XSmall Zero-Shot (95.9 MB)

Reuses ../deberta-v3-xsmall-zeroshot-v1-1-all-33/worker.js — WASM q8 22M-backbone 2-class NLI cross-encoder.

Stage 2 · DeBERTa-v3-Large Zero-Shot v2.0 (538.8 MB)

Uses ../worker.js — WASM int8 24-layer 304M-backbone v2.0 NLI cross-encoder.

2. Hard ambiguous taxonomy duel

Initialise both stages above to compare DeBERTa-v3-XSmall vs DeBERTa-v3-Large v2.0 locally.

Stage 1 Top-1 (XSmall)–
Stage 2 Top-1 (Large)–
Agreement–
Latency (XSmall / Large)–
NaN count (S1 / S2)–
Per-label comparison between DeBERTa-v3-XSmall and DeBERTa-v3-Large v2.0 scores, ranks, and 2-class logit margins
Candidate label XSmall rank & score Large v2.0 rank & score Δ Score (Large − XSmall) XSmall margin Δ Large v2.0 margin Δ
Run Stage 1 + Stage 2 above to compare XSmall vs Large v2.0 scores and logit margins.

3. Inspect reused sibling client & comparison helpers

Show the code · deberta-v3-large-zs.js — DebertaXsmallSiblingClient (reusing ../deberta-v3-xsmall-zeroshot-v1-1-all-33/worker.js)
Show the code · deberta-v3-large-zs-core.mjs — compareHeadToHeadModels()
Show the code · deberta-v3-large-zs.js — drawHeadToHeadCanvas()

References