Skip to content

armgit / laya

Public Imported from GitHub
0

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.

release: 0.3.9, remove the third-party hosted endpoint from the docs

Nandakishord120d4ba2207
diff --git a/README.md b/README.md
index 2a502f08..7bb33289 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,6 @@
[![Dev.to Article](https://img.shields.io/badge/dev.to-Read%20Article-0A0A0A?logo=devdotto&logoColor=white)](https://dev.to/nandakishor_m_6cc0adfde9f/i-built-non-autoregressive-decision-models-a-year-ago-then-a-frontier-lab-called-it-a-18me)
[![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-nandakishorm-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/nandakishorm)
[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)
-[![Hosted API](https://img.shields.io/badge/Hosted%20API-impossibl-111111)](https://impossibl.com/convaiinnovations/laya)
</div>
@@ -35,6 +34,10 @@ Three checkpoints, and a `Router` that picks between them per request:
| [`laya-multilingual`](https://huggingface.co/convaiinnovations/laya-multilingual) | mmBERT-base | 322M | 1024 | 100+ languages, 2x faster |
| [`laya-typed-decisions`](https://huggingface.co/convaiinnovations/laya-typed-decisions) | ModernBERT-large | 421M | 1024 | the typed-decisions workflows |
+### What's new in 0.3.9
+
+* Documentation update only. There are no code or checkpoint changes from 0.3.8.
+
### What's new in 0.3.8
* **Batch scoring.** `agent.predict_batch(states, questions)` scores many states in shared forward passes, with answers identical to calling `predict` one state at a time. See [Batch Mode](#batch-mode-score-many-states-in-one-forward-pass).
@@ -119,36 +122,6 @@ Continue with the [Router quickstart](#quickstart-route-mode-recommended) to run
---
-## Hosted API
-
-If you would rather not run a GPU, [impossibl](https://impossibl.com) serves Laya on a hosted
-endpoint, **free**, wire-compatible with TypeSafe's System One API — so a client written
-against Jev moves over by changing the base URL and the model id, and nothing else.
-
-```bash
-curl https://api.impossibl.com/v1/systemone \
- -H "Authorization: Bearer $IMPOSSIBL_API_KEY" \
- -H 'Content-Type: application/json' \
- -d '{
- "model": "convaiinnovations/laya",
- "state": "Hi, we were billed twice for March. Refund the duplicate today or we cancel.",
- "questions": {
- "churn_risk": { "type": "noul", "instructions": "Is this customer likely to churn?" }
- }
- }'
-```
-
-| model id | checkpoint |
-|---|---|
-| `convaiinnovations/laya` | whichever the `Router` picks, same as `Router(preload=True)` |
-| `convaiinnovations/laya-multilingual` | pins `laya-multilingual`, whatever the script |
-
-The second id exists because routing is by script: Latin-script text is answered by the
-English checkpoint, so Spanish or Portuguese never reaches the multilingual weights on its
-own. Both ids run the checkpoints published here, unmodified, at `max_len` 8192.
-
-[Docs](https://impossibl.com/docs/evaluation) · [Model page](https://impossibl.com/convaiinnovations/laya)
-
### Command line
Installing the package also installs a `laya` command for quick local testing, no script needed:
diff --git a/docs/langchain.md b/docs/langchain.md
index 284fd98a..0c0b6768 100644
--- a/docs/langchain.md
+++ b/docs/langchain.md
@@ -7,7 +7,7 @@ Laya provides fast (~33 ms), non-autoregressive decision components for **LangCh
* **`LayaTriage`**: Support ticket triage node evaluating intent, urgency, frustration, and churn risk in one forward pass.
* **`LayaEvaluator`**: Rubric-based output grading and hallucination evaluation.
-Supports both **local in-process inference** (`Agent` or `Router`) and **remote HTTP inference** (`laya-serve` or hosted API) without requiring PyTorch on edge clients.
+Supports both **local in-process inference** (`Agent` or `Router`) and **remote HTTP inference** against your own `laya-serve` without requiring PyTorch on edge clients.
---
diff --git a/examples/langchain_quickstart.py b/examples/langchain_quickstart.py
index d1d7bb71..34e5c36c 100644
--- a/examples/langchain_quickstart.py
+++ b/examples/langchain_quickstart.py
@@ -84,8 +84,7 @@ print(f"Churn Risk: {enriched_state['triage']['churn_risk']}")
# =====================================================================
# 4. Remote HTTP Server Mode (No Local PyTorch / GPU Required)
# =====================================================================
-# You can connect to a self-hosted `laya-serve` or the hosted API endpoint
-# by providing `base_url`:
+# You can connect to your own self-hosted `laya-serve` by providing `base_url`:
#
# remote_router = LayaRouter(
# base_url="http://localhost:8000",
diff --git a/laya/__init__.py b/laya/__init__.py
index 596edc18..58cdccd0 100644
--- a/laya/__init__.py
+++ b/laya/__init__.py
@@ -12,7 +12,7 @@ from .presets import (
)
from .router import DEFAULT_MODELS, RouteDecision, Router
-__version__ = "0.3.8"
+__version__ = "0.3.9"
# 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` or
diff --git a/laya/integrations/langchain.py b/laya/integrations/langchain.py
index fa2dfa11..4c85a2f6 100644
--- a/laya/integrations/langchain.py
+++ b/laya/integrations/langchain.py
@@ -4,7 +4,7 @@ Provides fast (~33 ms), non-autoregressive routing, real-time guardrails, and
state evaluation nodes for LangChain Expression Language (LCEL) and LangGraph.
Supports both local in-process models (`Agent` / `Router`) and remote HTTP
-deployments (`laya-serve` or hosted API) without requiring PyTorch on edge clients.
+deployments (your own `laya-serve`) without requiring PyTorch on edge clients.
"""
from __future__ import annotations
diff --git a/laya/serve.py b/laya/serve.py
index 15d341bb..87bdf301 100644
--- a/laya/serve.py
+++ b/laya/serve.py
@@ -40,7 +40,7 @@ from typing import Any, Dict, Optional
# Jev model id (ignore it and let the router auto-select).
_KNOWN_MODELS = {"english", "multilingual", "typed-decisions"}
-# Public Hugging Face ids accepted by the hosted API. The root bundle is
+# Public Hugging Face ids, accepted so a client can name a checkpoint. The root bundle is
# deliberately absent: the documented ``convaiinnovations/laya`` value means
# "let the Router choose", rather than pinning the English checkpoint.
_PUBLISHED_MODEL_IDS = {
diff --git a/pyproject.toml b/pyproject.toml
index d916dbe4..9c1a88db 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "laya"
-version = "0.3.8"
+version = "0.3.9"
description = "Fast, non-autoregressive System 1 decision engine with calibrated probabilities"
readme = "README.md"
requires-python = ">=3.10"