Multi-model · Unbiased-Toxic-RoBERTa (129.0 MB q8 · Apache-2.0) → DeBERTa-v3 Zero-Shot Policy Router (95.9 MB q8 · MIT)

16-Head Toxicity & Identity Screen × Zero-Shot Policy Router

Chain two independent CPU-WASM models totaling 224.9 MB offline: Stage 1 (onnx-community/unbiased-toxic-roberta-ONNX, 125.44 MB weights / 129.0 MB total, Apache-2.0) screens 7 toxicity + 9 identity subgroup heads, then Stage 2 (MoritzLaurer/deberta-v3-xsmall-zeroshot-v1.1-all-33, 95.9 MB q8, MIT, reusing ../deberta-v3-xsmall-zeroshot-v1-1-all-33/worker.js) categorizes moderation intent across constructive feedback, quoted discussion, policy warnings, spam, or human escalation.

1. Two Independent On-Device Models (224.9 MB Total)

Stage 1 · Unbiased-Toxic-RoBERTa (129.0 MB WASM q8 · Apache-2.0)

Stage 2 · DeBERTa-v3 Zero-Shot Policy Router (95.9 MB WASM q8 · MIT)

2. Toxicity + Identity Screen → Policy Routing Pipeline

Initialize both stages above to run the 224.9 MB Toxicity Screen → DeBERTa-v3 Policy Router workflow.

Reconciled Policy Verdict: Run both stages above to combine 16-head toxicity/identity scores with Stage 2 zero-shot policy intent.
Stage 1 Max Toxicity–
Stage 1 Identity Head–
Stage 2 Top Policy–
Reconciled Action–
Stage 1 / Stage 2 ms–
NaN Score Check–

Stage 1 · Top Toxicity & Active Identity Heads

Run Stage 1 to inspect 7 toxicity & 9 identity sigmoid probabilities.

Stage 2 · Zero-Shot Policy Categorization

Zero-shot policy scores, entailment probability, and logit margin
Policy Category Score P(entailment) Logit Margin
Run Stage 2 to categorize moderation policy intent.

3. Chained Policy Verification Matrix

Completed 2-stage runs log here, showing how Stage 2 NLI disambiguates quoted citations and moderator notices from direct harassment while preserving safe demographic mentions.

Stage 1 toxicity & identity screen versus Stage 2 zero-shot policy routing verification matrix
Preset / Item Stage 1 Toxicity Stage 1 Identity Stage 2 Policy Reconciled Outcome Latency Text
Run the chained pipeline above to populate the verification matrix.

4. Inspect Reused Policy Client & Reconciliation Logic

Show the code · toxic-client.js — ZeroShotPolicyClient (reusing ../deberta-v3-xsmall-zeroshot-v1-1-all-33/worker.js)
Show the code · toxic-core.mjs — reconcileToxicityWithPolicy()