Multi-model Β· Nym Multilingual PII (195.27 MB q4) β†’ DeBERTa-v3 Zero-Shot NLI (87.3 MB q8) Β· MIT

Zero-PII Verified Compliance Router: Redact, Verify, Then Classify

Stage 1 (onnx-community/nym-pii-multilingual-ONNX, 195.27 MB WASM q4) detects and masks 81-label multilingual PII into [TYPE_N] tokens. Stage 2 (Xenova/nli-deberta-v3-xsmall, 87.3 MB WASM q8, reusing ../zero-shot-text/worker.js) receives strictly the verified zero-PII redacted text and scores GDPR, PCI-DSS, SOC-2, and public inquiry queues via dynamic res.classNames.

1. Two Independent On-Device Models (~282.6 MB Combined)

Stage 1 Β· Nym Multilingual PII

token-classification Β· 81 BIO labels Β· 195.27 MB q4 WASM Β· MIT

Stage 2 Β· DeBERTa-v3 Zero-Shot NLI

zero-shot-classification Β· 87.3 MB q8 WASM Β· MIT Β· reuses ../zero-shot-text/worker.js

2. Zero-PII Firewall & Compliance Policy Triage

0.50
Stage 1 PII redacted–
Handoff check–
Top compliance topic–
Stage 1 / Stage 2 ms–
Stage 2 id2label order–
NaN count–

Stage 1 Β· Local PII Highlights (Stays on Device)

Run Stage 1 to inspect detected multilingual PII spans.

Firewall Handoff Β· Sanitized Payload Sent to Stage 2

Only this redacted payload enters Stage 2.

Stage 2 Β· Dynamic 3-Way NLI Scores (from res.classNames)

Zero-shot compliance classification scores mapped dynamically from res.classNames
Rank Compliance Policy Topic Score Confidence Entailment Neutral Contradiction
Run the pipeline above to classify the redacted payload.

3. Inspect Multi-Model Client & Dynamic NLI Mapping

Show the code β€” Stage 2 FIFO client reusing ../zero-shot-text/worker.js in nym.js
Show the code β€” dynamic res.classNames NLI probability mapping in nym-core.mjs