Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

★ 35,583⑂ 3,192👁 123⑃ 1,210● 221▤ 67
PythonApache-2.0Created 2026-09-18huggingface.co/convaiinnovations/laya
Download: v0.4.34v0.4.34 ↓0.4.342026-11-15
+42
Daily
+320
Weekly
+3,045
Monthly
35,583
stars
3,192
forks
123
watchers
1,210
prs
221
issues
67
releases

README

Cite this work. M, N.; M, A. From Laya to Vega: Open Non-Autoregressive Decision Models with Calibrated Probabilities. Preprints 2026, 2026110781. https://doi.org/10.20944/preprints202611.0781.v1


BibTeX

bibtex
@article{m2026laya_vega,
  title   = {From Laya to Vega: Open Non-Autoregressive Decision Models with Calibrated Probabilities},
  author  = {M, N. and M, A.},
  journal = {Preprints},
  year    = {2026},
  pages   = {2026110781},
  doi     = {10.20944/preprints202611.0781.v1},
  url     = {https://doi.org/10.20944/preprints202611.0781.v1}
}




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.

 Train your own decision engine at studio.embedding.in. Studio, from Embedding Space, trains a System 1 decision engine from a description of your company: it writes the questions and the examples, fits and calibrates a vega model, and gives you a signed policy file that runs on your own machine with vegaml. No labelled data is needed to start, and a new workspace gets $10 of free credit.















 Installation

bash
python -m pip install laya


With 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.

For TypeScript / Node.js / browser, see laya-ts/. npm releases (npm install laya-ts) are published from this repository's laya-ts-v release tags.

Long documents. laya-multilingual reads up to 8,192 tokens with max_len=8192. Measured accuracy and time by document length, reproducible with research/scripts/bench_long_context.py:


  


 Quickstart

One argument puts vegaml's engine under laya's names: a frozen 0.8B reader with a small physics engine on top, so every answer carries a conformal prediction set, an abstain flag, an out-of-distribution flag and a route decided without a threshold you had to guess at. Text, images, speech and 73k-token documents go through the same call. Python 3.10 or newer; details in vega inside laya.

bash
python -m pip install -U laya    0.4.23 or newer: vegaml comes with it


python
import laya

agent = laya.Agent(vegaml=True)    the 0.8B universal reader (nandakishorm/vega-U), the default

 Switching the model underneath is one string. Every option keeps the same engine, questions and fields:
   laya.A

Top issues

Discussions

Latest release

v0.4.34 v0.4.34 2026-11-15
Full Changelog: https://github.com/NandhaKishorM/laya/compare/v0.4.33...v0.4.34

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON