Skip to content

Laya Serve

Archived. A Jev-compatible HTTP server that lets any Jev client run against local Laya weights instead of the TypeSafe API, serving POST /v1/systemone with typed choice, score and noul answers. Upstream laya now ships this natively.

Stars
2
Language
Python
License
APACHE-2.0
Published by
Community
Author
stiermid
Last verified
Oct 2026

stiermid/laya-serveArchived

User repository on GitHub

View on GitHub

Jev-compatible HTTP server for Laya System One decision models

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.Homepage

About this project

Jev-compatible HTTP server for Laya System One decision models. Point any Jev client at this server and get typed choice / score / noul answers from local Laya weights instead of the TypeSafe API. Errors use {"error": {"message", "field"}} with Jev status codes (401 bad key, 422 validation, 429 rate limit with a Retry-After header when LAYASERVERATELIMITPERMINUTE > 0, 529 transient overload with a Retry-After header, 500 unexpected backend failure with internals logged server-side).

Quoted from the project's README. Read the full README.

Highlights

  • Documented divergences from the hosted API: Laya's confidence is entropy-based, output_tokens is always 0, and choice criteria as a list is accepted leniently.
  • Accepts jev-latest, jev-preview, jev-1.13.0, jev-1.13, laya, laya-latest and the serving model id, rejecting anything else with 422.
  • A fake backend needs no weights at all and returns deterministic uniform answers, which is the path for CI.
  • Error envelopes follow the Jev shape with 401, 422, 429 and 529, and Retry-After headers where a limit is set.

Watch out

This repository is deprecated and read-only, with no further releases; upstream laya ships Jev-compatible serving natively via pip install "laya[serve]" and the README says to uninstall this package first to avoid a script collision on the same laya-serve binary. The migration table documents real behavioural differences: this repo's GET /healthz becomes GET /health upstream with added loaded, revisions and device fields, GET /v1/models has no equivalent upstream, in-process 429 limiting becomes an admission bound returning 503 so you enforce 429 at the gateway, the fake backend is gone, and the strict caps here become 400/413/422 upstream with plain {"detail": ...} errors instead of the Jev error shape. The most important caveat for anyone still on this version is calibration: Laya computes confidence as 1 - H(p)/log(k) while Jev documents peak-based normalization, so the same probabilities produce different confidence values and thresholds must be fitted against Laya. Compatibility was verified against the docs and laya 0.3.x source, not against a live TypeSafe endpoint. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

Open 150M encoder that reproduces the typed noul, choice, and score interface in one forward pass, trainable on a free GPU and runnable locally for nothing.
Jev Demos & Experiments#community#jevbest#catalog-import
941GitHub stars
Library that adds schema-guaranteed typed outputs to existing autoregressive LLMs without changing weights, served through SGLang or a hosted API.
Jev Demos & Experiments#community#jevbest#catalog-import
55GitHub stars
Toolkit that makes a model behind an OpenAI-compatible endpoint or running in-process answer typed choice, score, and yes/no questions from next-token probabilities in Jev API shape.
Jev Demos & Experiments#community#jevbest#catalog-import
164GitHub stars
End-to-end toolkit that synthesizes decision data, trains and calibrates candidate scorers, evaluates fixed splits, and serves Jev-compatible inference for interactive web decisions.
Jev Demos & Experiments#community#jevbest#catalog-import
63GitHub stars
Claude Code kit that guards PreToolUse calls with a free pre-filter plus one Jev question for ambiguous cases, and adds sub-agent sizing, rechecks, search, daemon speedups, and monitoring.
Jev Demos & Experiments#community#awesomejev#catalog-import
70GitHub stars
Self-hosted proxy that records typed decisions, distils them into small heads on a frozen encoder, and answers locally when confident.
Jev Demos & Experiments#community#jevbest#catalog-import

From the Jev guides

Original write-ups on what this entry is for.

A game tick is a state plus a legal action list. How Clash Royale, Minecraft, and the earlier Mario, Pokémon, StarCraft, and drone loops ask Jev one step at a time.
Jev Demos & Experiments#gaming#agents#control
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai