1. Two independent on-device models (~607.24 MB total)
Stage 1 · ModernBERT-Large (395M, 28L · 452.56 MB)
Uses ../worker.js — WASM q8 28-layer RoPE masked LM
(10 global / 18 local layers).
Stage 2 · ModernBERT-Base (149M, 22L · 154.68 MB)
Reuses ../../modernbert-base/worker.js — WASM q8 22-layer
RoPE masked LM (8 global / 14 local layers).
2. Head-to-head cloze distribution & KL divergence
Initialise both stages above to compare ModernBERT-Large vs ModernBERT-Base distributions.
| Candidate token | Large prob (logit) | Base prob (logit) | Δ Prob (L − B) | Log2-odds (L vs B) |
|---|---|---|---|---|
| Run the Large vs Base comparison above to inspect KL divergence and candidate agreement. | ||||