Debate over ModernBERT long-context: sliding-window layers and 8192 limit questioned

On September 21, community members debated the long-context capability of a ModernBERT-style model. AIQuanting pointed out that although the README claims maxlen can be raised to 2048, 4096, or even 8192, longer configurations don't change the attention architecture itself: of the 28 layers in the config, 18 use local sliding-window attention over 128 tokens, with only 10 layers doing full-sequence attention. He also questioned the measured setup: maxpositionembeddings is set to 8192, but the model card (context row) lists 512, and the agent config defaults maxlen to 512—a gap between marketing and actual usage.

Confirmed

Why it matters

2026-09-21 ~ 2026-09-21 · 5 related posts

Full story(2 episodes)→

Primary sources