What Laya does
Laya is a non-autoregressive "System 1" decision model published by Convai Innovations on Hugging Face and GitHub. You give it a state (a text, email, support ticket or JSON object) and a set of typed questions, and it returns typed answers with probabilities instead of generated text. Three question types exist: noul (yes/no), choice (pick one of your options) and score (an ordinal rating). Each option is scored at its own marker token and normalised across that question's options, so you can define new questions and labels without retraining, and the model cannot invent a category or return malformed output. Outputs include probabilities, prediction sets and abstain or review routing.
There are three checkpoints: an English model (ModernBERT-large backbone plus a decision head, 421M parameters, 512-token context), a multilingual model (mmBERT-base, 322M parameters, 1,024 tokens by default, up to 8,192 with accuracy varying past about 4,000), and a typed-decisions model fine-tuned on Convai's benchmark. A Router sends English text to the English checkpoint and everything else to the multilingual one. You install it with pip install laya (Python 3.10+, PyTorch on CUDA, Apple MPS, XPU or CPU), run laya-serve for an HTTP endpoint, or use the CLI; there are SDKs or clients for TypeScript, Go, Rust, Java, .NET and C++, integrations for LangChain, LlamaIndex and CrewAI, an MCP extra, a Hugging Face Space demo and a Colab notebook. An optional Vega engine adds image, audio and video input.
