Laya classifies text in roughly 33 ms
Layaклассификация текстаBERT-модели
What Laya actually built
What stands out to me is simple: Laya does not try to write text; it makes a decision. In the repository README, its authors describe it as an open, non-autoregressive System 1 model that answers a typed question about a text, email, ticket or JSON object in a single forward pass. The project collected 8,000 GitHub stars in its first two days, reflecting clear demand for focused, fast models.
At launch, two checkpoints were available. The English version is based on ModernBERT-large, has 421 million parameters and supports contexts up to 512 tokens. The multilingual version uses mmBERT-base, has 322 million parameters, supports up to 1,024 tokens and is claimed to cover more than 100 languages.
The key figure from Laya’s README and model cards is that the multilingual version processes one question in 32.8 ms on a T4 GPU. Ten questions take 72.3 ms, while fifty take 337 ms. In batch processing, that works out to roughly 7.2 ms per question, making the architecture especially appealing where requests can be grouped into short batches.
Technically, the system relies on a bidirectional BERT-like encoder with a dedicated decision head. Rather than generating free-form text, it returns a typed result and a probability. That removes generated-string parsing from the critical path and reduces room for hallucinations: the answer is selected within a defined schema instead of being composed from scratch.
Where a compact model changes the equation
For classification, guardrails, routing and inbound-message parsing, a generative model is often excessive. Laya offers a more direct path: one pass, a constrained response format and a predictable compute pattern. It is not a flashy reasoning demo, but it is exactly the kind of component that fits well in front of a heavier system.
My first question would not be about average latency, but about how well these results transfer. The published measurements were taken on a T4 GPU, so the 32.8 ms figure cannot automatically be promised on every edge device. I would also test probability calibration, behavior under data distribution shift and the cost of errors in escalation workflows.
There is no magic here and very little hype: a narrow model wins because it solves a narrow task. The most interesting question now is not speed by itself, but how well Laya maintains quality beyond its official test distribution.