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.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
release: 0.4.17
Nandakishor109084f1c2d6
diff --git a/README.md b/README.mdindex 5bf64a1f..5e171ca0 100644--- a/README.md+++ b/README.md@@ -94,18 +94,29 @@ The shipped checkpoints work zero-shot, but fine-tuning on decisions from your o**[nandhakishorm.github.io/laya](https://nandhakishorm.github.io/laya/)**: guides for [prediction hooks](https://nandhakishorm.github.io/laya/hooks/), [schema-driven decisions](https://nandhakishorm.github.io/laya/structured/), [Docker](https://nandhakishorm.github.io/laya/docker/) and [LangChain and LangGraph](https://nandhakishorm.github.io/laya/langchain/), plus a full [API reference](https://nandhakishorm.github.io/laya/reference/).-## What's new in 0.4.16--* **Rust and .NET answer batches, and abstain, the way Python does.** `predict_batch` and the- router batch APIs are ported to both, grouping by checkpoint and question schema and restoring- input order (#1358, #1359). The `min_confidence` abstention gate and `jev_confidence` follow, so- a low-confidence answer abstains identically in every port (#1362, #1363). Both sets are checked- against goldens recorded from the Python package rather than hand-written tables.-* **Four inputs are now refused where they enter instead of failing later.** A non-numeric or- overflowing `hooks_timeout` is a `ValueError` at the call (#1365), an unhashable tournament- choice label is a 422 rather than a 500 (#1366), a question or batch file that cannot be read- names the file and exits 2 rather than printing a traceback (#1367), and an answer that is not- an object is left out of a structured projection rather than ending the call (#1368).+## What's new in 0.4.17++* **Vietnamese stops routing to the English checkpoint.** Its tone-marked vowels now count as+ non-English diacritics, in `laya/lang.py` and the TypeScript port together, with the Java, Go+ and C++ tables re-recorded from the same source (#1392).+* **A deciding window keeps its attribution after end hooks.** `predict_long` attributed answers+ by position, so an end hook that reordered results reported the wrong token span without+ saying so (#1369).+* **`RemoteRouter` identifies itself, and the User-Agent is configurable.** The urllib default was+ rejected outright by a Cloudflare browser-integrity rule in front of a hosted `laya-serve`,+ before authentication (#1396).+* **Ten more inputs are refused where they enter.** A `--questions` path that is a directory, a+ UTF-8 BOM written by Notepad or Excel, a probability too wide for a double, an incomparable+ `target_error`, a tool `choice` sent as an array, a short batch reply, an agent with no+ tokenizer, a drive-anchored digest path and a bad `LAYA_MAX_LOADED` are each a named error+ rather than a crash or a silent wrong answer (#1372, #1394, #1397, #1398, #1400, #1401, #1403,+ #1404, #1405, #1406). A SHA-256 pin that is not a map is refused instead of verifying nothing+ (#1402).+* **The ports gain per-language temperatures, calibration files and a Go router.** `.NET` and Rust+ take `lang_temperatures` plus per-call `lang`, `max_len` and `head_max_len` (#1370, #1371) and+ .NET reads calibration files (#1384); Go gains the router model lifecycle, per-checkpoint+ SHA-256 pins and routed inference (#1374, #1379). A C++ foundation starts, generated from the+ same tables as Go (#1399, #1407).Earlier releases are in the [GitHub releases](https://github.com/NandhaKishorM/laya/releases).diff --git a/laya/__init__.py b/laya/__init__.pyindex 673558ab..dd998937 100644--- a/laya/__init__.py+++ b/laya/__init__.py@@ -35,7 +35,7 @@ from .presets import (from .router import DEFAULT_MODELS, RouteDecision, Routerfrom .structured import DecisionResult, decide, decide_batch-__version__ = "0.4.16"+__version__ = "0.4.17"# Routing, language detection and email cleaning are pure Python. The torch-backed names are# resolved lazily so that `import laya` -- and therefore `from laya import Router` ordiff --git a/nix/package.nix b/nix/package.nixindex 919ee587..7134df1e 100644--- a/nix/package.nix+++ b/nix/package.nix@@ -12,7 +12,7 @@ let# side, where tests/test_packaging.py compares all three declarations (this one,# pyproject.toml and laya.__version__) and fails CI when they diverge. Nothing# did, which is how this sat at 0.3.4 while the package reached 0.3.20.- version = "0.4.16";+ version = "0.4.17";src = ../.;format = "setuptools";propagatedBuildInputs = with python3Packages; [diff --git a/pyproject.toml b/pyproject.tomlindex 0c88f82f..0d1824cf 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "laya"-version = "0.4.16"+version = "0.4.17"description = "Fast, non-autoregressive System 1 decision engine with calibrated probabilities"readme = "README.md"requires-python = ">=3.10"