ModernBERT supports 8192 tokens natively — downstream 512 limits can be safely removed

JFPuget · x · 2026-09-21

Responding to context-length questions, JFPuget notes ModernBERT's maxpositionembeddings: 8192 genuinely supports 8192 tokens. Downstream limits — laya cards listing 512, agent configs capping maxlen at 512, laya-multilingual at 1024 — are added on top and can be safely removed. The debate highlights the gap between native architecture support and actual deployment configs.

Related event: Debate over ModernBERT long-context: sliding-window layers and 8192 limit questioned(5 posts)→

Original post →

More from Models

Models channel →