1. Two independent on-device models (165.6 MB total)
Stage 1 Β· Rampart 35-Label PII Redactor (14.7 MB)
Reuses ../../rampart-pii/worker.js β WASM q4 35-label BIO
token classification across 7 European languages.
Stage 2 Β· ModernBERT-Base NLI Classifier (150.87 MB)
Uses ../worker.js β WASM q8 long-context RoPE zero-shot
routing strictly on Stage 1's redacted output.
2. Incoming record β PII firewall β compliance routing
Initialise both stages above to run the 2-stage privacy firewall + compliance classifier.
Stage 1 Β· Local PII Highlights (Never Leaves Stage 1)
Firewall Handoff Β· Scrubbed Payload Passed to Stage 2
Stage 2 Β· ModernBERT-Base NLI Scores (on Scrubbed Payload)
| Compliance category | Entailment (prob / logit) | Neutral (prob / logit) | Contradiction (prob / logit) | 3-way split | Pair tokens |
|---|---|---|---|---|---|
| Run the 2-stage pipeline above to inspect Stage 2 logits. | |||||