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
Merge pull request #656 from SomSamantray/feat/651-fastapi-root-path
Nandakishor580559f0bd20
diff --cc docs/docker.mdindex a7db6a8d,03d2c55d..41eec446--- a/docs/docker.md+++ b/docs/docker.md@@@ -241,9 -241,13 +241,14 @@@ These apply to the `laya-serve` servic| `LAYA_MAX_CONCURRENT` | `16` | requests admitted at once; later ones get `503` (a value that does not parse, or is not positive, falls back to `16`) || `LAYA_LOG_LEVEL` | `info` | uvicorn log level || `LAYA_API_KEY` | (none) | when set, requires `Authorization: Bearer <key>` |+ | `LAYA_ROOT_PATH` | (empty) | public URL prefix for FastAPI when behind a reverse proxy; the proxy should strip it before forwarding || `LAYA_MAX_TOKEN_BUDGET` | `8192` | cap on per-request `max_len` and `head_max_len` overrides |+| `LAYA_SHA256_DIGESTS` | (none) | JSON digests checked before a checkpoint is parsed: `{artifact: digest}` for every checkpoint, or `{model: {artifact: digest}}` per checkpoint. See [Security](security.md) |+ For example, set `LAYA_ROOT_PATH=/laya` when publishing the API under `/laya`. The proxy must+ strip that prefix before forwarding to the container; this setting updates FastAPI's generated+ URLs and does not change the internal `/health` or `/v1/systemone` routes.+`LAYA_PRELOAD` defaults to `0` here rather than the package default of `1`, becausepreloading makes the first boot download all three checkpoints. Set it to `1` for along-running deployment so the first request does not pay for the build.