β All models Β· ModernBERT fill-mask
use case Β· practical
Two things a developer would actually ship. Long-context masking fills a blank whose answer is stated far earlier in a long passage β the kind of distant dependency BERT's 512-token window simply can't see, but ModernBERT's 8,192-token context can. Knowledge probing turns a fact or a code pattern into a fill-in-the-blank and reads out what the model "knows" β and where it's unsure.
The blank is at the very end; the clue that resolves it sits near the top. The β-token passage is well past BERT's 512-token limit β pad it out with the button and watch ModernBERT still track the dependency.
Each template hides the key token behind [MASK]. A confident, correct
top guess means the pattern survived pre-training; a spread-out list means it didn't. ModernBERT
trained on ~2T tokens including a lot of code, so the code probes are fair game.
Probing is a real research technique (the "LAMA" probe). Treat a base encoder as a fuzzy memory, not a fact source β but the long-context masking is the genuinely new capability: the answer can live thousands of tokens away and the model still finds it, locally.
β Basics Β· Model Β· Next: Wild β