Laya: the open-source System 1 decision engine
The model itself. Typed choice/score/noul questions over any state in one forward pass, 100+ languages, Apache 2.0 weights.
Three checkpoints (421M English, 322M multilingual, 421M typed-decisions) and a Router that picks one per request by script detection.
**Multilingual, non-autoregressive System 1 decision engine.** Typed decisions over 100+ languages in a single forward pass — 33 ms — trained with reinforcement learning against strictly proper scoring rules (RLCD), with a router that picks the right checkpoint per request. <div align="center"> [](https://colab.research.google.com/drive/15d4Yv__KHeHjshVb-6PRTfqVllxih2S3?usp=sharing) [](https://pypi.org/project/laya/) [](https://nandhakishorm.github.io/laya/) [](https://huggingface.co/convaiinnovations/laya) [](https://huggingface.co/convaiinnovations/laya-multilingual) [](https://huggingface.co/spaces/convaiinnovations/laya-demo) [](https://dev.to/nandakishor_m_6cc0adfde9f/i-built-non-autoregressive-decision-models-a-year-ago-then-a-frontier-lab-called-it-a-18me) [](https://www.buymeacoffee.com/nandakishorm) [](https://opensource.org/licenses/Apache-2.0) </div> ## Installation ```bash python -m pip install laya ``` With [uv](https://docs.astral.sh/uv/), run `uv add laya` in a uv project or `uv pip install laya` in a virtual environment. Python 3.10 or newer. Optional extras: `laya[serve]` (HTTP server), `laya[mcp]` (MCP server), `laya[langchain]` (LangChain and LangGraph), `laya[llamaindex]` (LlamaIndex selectors), `laya[crewai]` (CrewAI routing), `laya[onnx]` (ONNX Runtime), `laya[fast]` (TileLang GPU fast path), `laya[structured]` (pydantic models in `decide`), `laya[vision]` (Pillow and torchvision, for `predict(image=...)` and `predict(video=...)`), `laya[audio]` (soundfile, to decode audio files). Step-by-step setup for each platform, CPU-only or GPU PyTorch builds, and troubleshooting are in [Installation details](#installation-details). For TypeScript / Node.js / browser, see [`laya-ts/`](https://github.com/NandhaKishorM/laya/tree/main/laya-ts/). npm rele