Skip to content

Laya Mps

Local server running Jev-style typed decisions on a Mac GPU through Metal, with a demo page, a latency benchmark, and tunable memory modes around one FP32 model.

Stars
22
Language
Python
License
MIT
Published by
Community
Author
afshinm
Last verified
Oct 2026

About this project

Run Jev-style typed decisions locally on your Mac with low RAM usage and fast responses. Laya delivers typed decisions with 32 ms median latency using 2.1 GiB RAM on M5 Pro, with a slower 0.74 GiB mode for lower memory use. MPS stands for Metal Performance Shaders, which PyTorch uses to run Laya on your Mac's GPU.

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

Highlights

  • Serves choice, score, and true-probability questions over a local HTTP API with no key.
  • Default mode answers at tens of milliseconds with around 2 GiB process RAM on the test machine.
  • Low-memory mode drops resident RAM substantially by streaming layers and embeddings from disk.
  • Demo and benchmark pages plus metrics and diagnostics flags expose timing and memory per call.

Watch out

Figures are tied to fixed Pong inputs on the measured machine, and multiple questions can need multiple forwards with extra disk reads. 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
45GitHub stars
Drop-in service that exposes Upstage Solar models through the System One shape, accepting state plus noul, choice, or score questions.
Jev Demos & Experiments#community#jevbest#catalog-import
38GitHub stars
Research recipe that fuses two frozen open readers into Jev-style yes/no judgments with a fit-free router, confidence gate, and candidate sets.
Jev Demos & Experiments#community#jevbest#catalog-import
62GitHub stars
Simulation study that drives one xArm7 apple-to-plate task with Jev, a large reasoning model, and a small model through identical incremental controls.
Jev Demos & Experiments#community#jevbest#catalog-import
40GitHub stars
Open research toolkit that encodes an image once and answers multiple typed choice, noul, and score questions from a shared distribution, plus a local 0.6B text-decision model.
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