A multilingual, non-autoregressive System 1 decision engine. Give it a state and typed questions โ it returns typed answers with calibrated probabilities in a single forward pass. It never generates text, so there is nothing to parse and nothing to hallucinate.
Every question carries its own answer space, so the model returns a typed answer โ never prose to parse, never a hallucination to audit.
| type | question it asks | what you get back |
|---|---|---|
choice | which of these options? | the option, a probability per option, confidence |
score | where on this rubric? | a position along your levels, probabilities, confidence |
noul | is this true? | the probability that it is |
text, email, ticket or JSON document โ anything serializable
typed questions, each with its own options or rubric
a single forward pass answers everything โ no generation loop
typed values, calibrated probabilities, confidence per question
laya Python APIEvery pattern below is a single call; the action is plain code reading the numbers โ thresholds live in your app, not in the model. Try each one live in the official demo Space.
Intent, urgency, frustration, churn risk โ one call, then route or escalate on your thresholds.
Category, spam, phishing, urgency, reply-expected in a single pass; quarantine on probability.
Screen prompts for jailbreak, injection, sensitive data and harm before they reach an expensive LLM.
Score retrieved passages for relevance, contradiction and hidden instructions; keep what earns its place.
Toxicity, harassment, threats, spam and severity with a composite score for remove / review / allow.
Difficulty, domain, tool-need and sensitivity decide the cheapest capable model per request.
pip install laya| checkpoint | encoder | params | context | best at |
|---|---|---|---|---|
| laya | ModernBERT-large | 421M | 512 | English |
| laya-multilingual | mmBERT-base | 322M | 1024 | 100+ languages, ~2ร faster |
| laya-typed-decisions | ModernBERT-large | 421M | 1024 | typed-decisions workflows |
The Router detects script and language in
<0.5 ms and dispatches before the forward pass โ because a model's own confidence gives no
warning when it cannot read the input.