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(compose): forward tournament group knob to laya-serve
naveenprasaath2302b51ab45146
diff --git a/compose.http.yaml b/compose.http.yamlindex 9893608d..7b026e05 100644--- a/compose.http.yaml+++ b/compose.http.yaml@@ -75,6 +75,10 @@ services:# `action` / `answer_confidence`, no `confidence` on noul answers, and `usage` reduced to# `input_tokens` + `output_tokens`. Empty keeps the server default (0, full payload).LAYA_JEV_STRICT: "${LAYA_JEV_STRICT:-}"+ # Answer a choice with more options than this by elimination in groups of this size (2..100)+ # on `/v1/systemone`, raising the option cap from 100 to 255 (#302). Empty keeps the server+ # default (0, off: one pass up to 100 options).+ LAYA_TOURNAMENT_GROUP: "${LAYA_TOURNAMENT_GROUP:-}"LAYA_LOG_LEVEL: "${LAYA_LOG_LEVEL:-info}"# The supply-chain pair: LAYA_REVISION says which Hub commit a checkpoint may load from (a# commit, branch, tag, or `reviewed` for the SHAs in laya/revisions.py) anddiff --git a/docs/docker.md b/docs/docker.mdindex 36df8567..64a020c5 100644--- a/docs/docker.md+++ b/docs/docker.md@@ -349,6 +349,7 @@ These apply to the `laya-serve` service only.| `LAYA_MAX_TOKEN_BUDGET` | `8192` | cap on per-request `max_len` and `head_max_len` overrides || `LAYA_MAX_BATCH_TOKENS` | `131072` | tokens one `/v1/systemone/batch` forward pass may collate (`states` × questions × row width); a larger batch is split into several passes, not refused || `LAYA_JEV_STRICT` | `0` | `1` serves the strict Jev wire contract (no root `routing`, no per-answer `action` / `answer_confidence`, reduced `usage`) for strict Jev clients |+| `LAYA_TOURNAMENT_GROUP` | `0` | answer a `choice` with more options than this by elimination in groups of this size (2 to 100), on `/v1/systemone`, and raise its option cap from 100 to 255. See [Large choices](http-api.md#large-choices-laya_tournament_group). Unset, or outside 2 to 100, is off || `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 mustdiff --git a/tests/test_compose_env.py b/tests/test_compose_env.pyindex 58874a55..f76311ff 100644--- a/tests/test_compose_env.py+++ b/tests/test_compose_env.py@@ -443,8 +443,9 @@ DEFERRED = ()required = sorted((package_read & documented_rows) - excluded - set(DEFERRED))check_true("core/the widened set is not empty", len(required) >= 10, required)-check_true("core/the widened set includes the name this change forwards",- "LAYA_REVISION" in required, sorted(required))+check_true("core/the widened set includes the names this change forwards",+ "LAYA_REVISION" in required and "LAYA_TOURNAMENT_GROUP" in required,+ sorted(required))check_true("core/nothing is deferred out of the widened set", DEFERRED == (),"a deferred name is a documented knob that no shipped deployment can set")@@ -539,7 +540,7 @@ if server_doc:_service in env_blocks(read("compose.http.yaml")), sorted(_env))for _name in ("LAYA_MAX_CONCURRENT", "LAYA_MAX_TOKEN_BUDGET", "LAYA_REVISION","LAYA_EXTRA_MODELS", "LAYA_IDLE_UNLOAD_SECONDS",- "LAYA_MAX_BATCH_TOKENS", "LAYA_JEV_STRICT"):+ "LAYA_MAX_BATCH_TOKENS", "LAYA_JEV_STRICT", "LAYA_TOURNAMENT_GROUP"):check_true("compose/compose.http.yaml/%s forwards the %s this change adds"% (_service, _name), _name in _env,"it is documented and read by the runtime, and the service that needs it "@@ -583,7 +584,7 @@ if server_doc:_cell.strip("`"), _defaults[_const])check_true("core/knobs this change forwards have a module default to pin",_const_pinned == 3, _const_pinned)- for _name in ("LAYA_MAX_CONCURRENT", "LAYA_MAX_TOKEN_BUDGET", "LAYA_MAX_BATCH_TOKENS"):+ for _name in ("LAYA_MAX_CONCURRENT", "LAYA_MAX_TOKEN_BUDGET", "LAYA_MAX_BATCH_TOKENS", "LAYA_TOURNAMENT_GROUP"):check_true("docs/docker.md keeps the %s row in the server table" % _name,re.search(r"^\| `%s` \|" % _name, _body, re.M) is not None,"the two sections above derive their demand from this table, so a row "@@ -614,8 +615,8 @@ if shutil.which("docker"):# default arriving as empty rather than as the literal `${LAYA_MAX_CONCURRENT:-}`._KN = ("LAYA_MAX_CONCURRENT", "LAYA_MAX_TOKEN_BUDGET", "LAYA_REVISION","LAYA_EXTRA_MODELS", "LAYA_IDLE_UNLOAD_SECONDS",- "LAYA_MAX_BATCH_TOKENS", "LAYA_JEV_STRICT")- _VALS = ("4", "16384", "reviewed", '{"custom":"./model"}', "30", "65536", "1")+ "LAYA_MAX_BATCH_TOKENS", "LAYA_JEV_STRICT", "LAYA_TOURNAMENT_GROUP")+ _VALS = ("4", "16384", "reviewed", '{"custom":"./model"}', "30", "65536", "1", "16")_arms = [(dict(zip(_KN, _VALS)), dict(zip(_KN, _VALS))),({}, dict.fromkeys(_KN, ""))]for _set, _expect in _arms: