1. Two independent on-device models (~242 MB total)
Stage 1 ยท ModernBERT-Base Fill-Mask (154.68 MB)
Uses ../worker.js โ WASM q8 22-layer RoPE masked LM proposing
top-K candidates for [MASK].
Stage 2 ยท DeBERTa-v3 Zero-Shot NLI (87.3 MB)
Reuses ../../zero-shot-text/worker.js โ WASM q8 cross-encoder
scoring entailment vs contradiction per completion.
2. Masked prompt โ Stage 1 proposals โ Stage 2 NLI verification
Initialise both stages above to run the 2-stage cloze + NLI semantic re-ranker.
| Stage 2 Rank | Candidate (S1 โ S2 ฮ) | Stage 1 Fill Prob | Target NLI Score | Entailment / Contra | Completed Sentence |
|---|---|---|---|---|---|
| Run the 2-stage pipeline above to rank completions by meaning. | |||||