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.
All-5 Topic & Hallucination-Risk Audit Matrix
| Preset |
Stage 1 Generated Continuation |
Stage 2 Top Label |
Score |
Total ms |
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