Multi-model · OPT-125M (408.19 MB q4 · Non-Commercial) → DeBERTa-v3 Zero-Shot (87.25 MB q8 · MIT) · ~495 MB total

Topic & Hallucination-Risk NLI Audit: 2-Stage Browser Pipeline

Chain two independent on-device WASM Web Workers (~495 MB combined): Stage 1 streams text continuations with Xenova/opt-125m (406.08 MB ONNX / 408.19 MB total q4, OPT-175B Non-Commercial Research); Stage 2 reuses DeBERTa-v3 Zero-Shot (Xenova/nli-deberta-v3-xsmall, 87.25 MB q8 via ../../zero-shot-text/worker.js, MIT) to audit topic, repetition drift, and hallucination risk from real NLI logits.

1. Workflow Models (~495 MB Combined · Two Isolated WASM Workers)

Stage 1 · OPT-125M Text Continuation (408.19 MB)

facebook/opt-125m → Xenova/opt-125m · q4 WASM · Non-Commercial

Stage 2 · DeBERTa-v3 Topic & Risk NLI (87.25 MB)

Reuses ../../zero-shot-text/worker.js · Xenova/nli-deberta-v3-xsmall · q8 WASM · MIT

2. Configure Prompt Prefix & NLI Audit Labels

Pick a domain or hallucination-risk probe preset:

Typically generates technical prose audited by DeBERTa-v3 NLI.
Stage 1 (OPT-125M)–
Stage 2 (DeBERTa-v3)–
Combined time–
Top label–
Top score–
NaN check–

Stage 1 · OPT-125M Continuation

Pending
Initialise Stage 1 above to stream a continuation.

Stage 2 · DeBERTa-v3 Topic & Risk Scores

Pending

Run Stage 1 + Stage 2 to inspect ranked topic/hallucination-risk probabilities and raw NLI logits.

3. Inspect Stage 2 Reuse & Dynamic NLI Class Mapping

Show the code — opt.js ZeroShotStageClient reusing zero-shot-text/worker.js
Show the code — opt-core.mjs mapNliDistribution() dynamic res.classNames mapping