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
fix(examples): make start.bat work on any supported Python, and document it
Nandakishora4a53e80008b
diff --git a/README.md b/README.mdindex fbfbcfba..a6e1604b 100644--- a/README.md+++ b/README.md@@ -382,6 +382,10 @@ pip install "laya[serve]"python examples/server.py # http://127.0.0.1:8000```+On Windows, `start.bat` does the same from a clone: it creates `.venv` with whichever supported+Python is installed, installs CPU torch and the `serve` extra on first run, then starts the server+and opens the browser. `start.bat 8080` picks a different port.+Open `http://127.0.0.1:8000` in a browser for the playground, or hit it directly:```bashdiff --git a/start.bat b/start.batindex 67768fad..f99b7055 100644--- a/start.bat+++ b/start.bat@@ -1,15 +1,24 @@@echo off-rem Start the Laya web UI + API on http://localhost:8055-rem Usage: start.bat [port] (default port 8055)-setlocal+rem Start the Laya web UI + API on http://localhost:8000+rem Usage: start.bat [port] (default port 8000, same as examples/server.py)+setlocal enabledelayedexpansioncd /d "%~dp0"set "PORT=%~1"-if "%PORT%"=="" set "PORT=8055"+if "%PORT%"=="" set "PORT=8000"if not exist ".venv\Scripts\python.exe" (- echo [setup] Creating virtual environment ^(Python 3.12^)...- py -3.12 -m venv .venv || goto :fail+ rem Any interpreter the package supports, newest first. Pinning one version fails on a+ rem machine that has a different supported one: pyproject declares >=3.10 and LOCAL_SETUP.md+ rem documents a 3.11 venv, so a hard py -3.12 could not set up the repo it ships in.+ echo [setup] Creating virtual environment...+ set "PYEXE="+ for %%V in (3.13 3.12 3.11 3.10) do if not defined PYEXE (py -%%V -c "pass" >nul 2>&1 && set "PYEXE=py -%%V")+ if not defined PYEXE (+ echo [error] No supported Python found. Install Python 3.10 or newer from python.org.+ exit /b 1+ )+ !PYEXE! -m venv .venv || goto :fail".venv\Scripts\python.exe" -m pip install -q --upgrade pip || goto :fail".venv\Scripts\python.exe" -m pip install -q torch --index-url https://download.pytorch.org/whl/cpu || goto :fail".venv\Scripts\python.exe" -m pip install -q -e ".[serve]" || goto :fail