Agent and model routing
Choose which tool, agent, or model should handle a request based on the current state and typed criteria.
Fast typed decisions for routing, intent classification, urgency scoring, risk detection, and probability outputs—run locally in a single forward pass without generating text.
“Customer was charged twice and asked for a refund.”
choicescorenoulOne forward pass, typed outputs your application can consume directly.
Common Laya AI use cases include agent and model routing, support triage, guardrails, intent classification, risk scoring, and workflow escalation.
Choose which tool, agent, or model should handle a request based on the current state and typed criteria.
Route tickets by department, score urgency, and flag refund or churn signals in the same decision call.
Evaluate jailbreak, policy, abuse, or escalation conditions before a workflow continues.
Map text or JSON inputs to a small, defined set of intents without generating and parsing free-form output.
Return structured scores or probabilities for fraud, phishing, churn, or other application-specific risks.
Use calibrated decision outputs to automate clear cases and send uncertain cases to a larger model or human review.
How Laya works
Give Laya a state plus typed questions. It evaluates choice, score, and noul decisions in one forward pass and returns structured outputs your application can use directly.
choicelabel + probabilitiesPick one option from named criteria, such as a support department or intent.
scoreordered scorePlace an input on an ordered rubric such as urgency, severity, or frustration.
noulP(true)Estimate the probability that a proposition is true, such as churn risk or fraud.
Laya AI models
Laya currently publishes three checkpoints. The best choice depends on language and whether the workflow resembles the typed-decisions training setup.
| Checkpoint | Encoder | Params | Context | Best for |
|---|---|---|---|---|
| laya | ModernBERT-large | 421M | 512 | English workloads |
| laya-multilingual | mmBERT-base | 322M | 1024 | 100+ languages |
| laya-typed-decisions | ModernBERT-large | 421M | 1024 | Typed-decision workflows |
Laya model routing
Choose the checkpoint that matches your language mix and output type.
classification, routing, moderation
non-English intent and cross-lingual classification
choice, score, noul, and probability outputs
general English decision tasks
laya100+ language decision tasks
laya-multilingualstructured choice, score, and noul workflows
laya-typed-decisionsQuickstart
The upstream package installs from PyPI and provides a Router that selects a checkpoint based on the request.
API examples are checked against the upstream repository and may change while Laya is evolving quickly.
Read the installation guidepip install layafrom laya import Router
router = Router(preload=True)
state = {"body": "I was charged twice. Please refund the duplicate."}
questions = {
"department": {
"type": "choice",
"instructions": "Which department should handle this?",
"criteria": {
"billing": "payments and refunds",
"technical": "bugs and outages"
}
},
"refund_requested": {
"type": "noul",
"instructions": "Does the user explicitly request a refund?"
}
}
result = router.predict(state, questions)department=billing · refund_requested=0.91Laya vs Jev
Both target typed decisions, but the deployment model, openness, and current tradeoffs differ.
Benchmark claims are only useful when checkpoint, tuning, hardware, dataset, and prompt conditions are preserved.
Read the full Laya vs Jev comparisonLaya GitHub ecosystem
Track the upstream model plus fast-moving community runtimes, ports, integrations, demos, and benchmarks. GitHub metrics below are a Sep 22, 2026 snapshot.
Reference implementation, models, benchmarks, Router, and fine-tuning workflow.
A community MLX port aimed at running Laya efficiently on Apple Silicon.
A JavaScript / TypeScript oriented community runtime around Laya.
Laya benchmarks
Laya is new and benchmark numbers are moving quickly. We separate upstream claims from independent measurements and keep tuning conditions visible.
Accuracy reported for the fine-tuned laya-typed-decisions checkpoint on 2,000 decisions.
Upstream benchmarkReported for laya-multilingual on a Tesla T4 in the upstream benchmark.
Upstream benchmarkThe upstream project documents degradation on high-cardinality choice tasks at default settings.
Upstream limitationHow to read the numbers
Keep checkpoint, tuning status, dataset, and hardware attached to every result.
Short, source-backed guides for the questions developers are searching for first.
Answers to the first questions developers have about the model and this site.
Independent community resource. Not affiliated with ConvAI Innovations. Laya names, logos, and related marks belong to their respective owners.
Laya is an open-source family of non-autoregressive decision models that answers typed choice, score, and noul questions over a state instead of generating free-form text.
The upstream project publishes model weights and code under Apache 2.0.
Yes. The upstream Python package can load Laya checkpoints locally, and community runtimes are already appearing for additional environments.
They target similar typed-decision workflows, but Laya publishes weights for self-hosting while Jev is provided as a hosted model API. Current benchmark tradeoffs vary by task and test conditions.
Install the Python package with pip install laya, then use the Router or load a specific checkpoint locally. The installation guide covers Python requirements, preloading, and the first prediction call.
Yes, community runtimes are already available for JavaScript or TypeScript through ONNX and for Apple Silicon through MLX. These are community projects rather than official ConvAI Innovations releases.
Start with laya for English, laya-multilingual for multilingual workloads, and evaluate laya-typed-decisions when your task matches typed-decision workflows. Measure on your own data before production use.
No. Laya AI is an independent community resource and is not affiliated with ConvAI Innovations.