Repository navigation
Tags
Tags
laya 0.4.2 14 pull requests from 8 contributors. * the TypeScript tree parses again: an unterminated template literal shipped in 0.4.1 and stopped 22 of 34 test files loading (NandhaKishorM#1056) * x_jev_confidence on /v1/systemone, computed locally from the same probabilities, absent under LAYA_JEV_STRICT (NandhaKishorM#1066, NandhaKishorM#302) * a narrowed shortlist drops option_order with a warning rather than failing (NandhaKishorM#1063) * registering a checkpoint name one edit from a built-in warns (NandhaKishorM#1055, NandhaKishorM#919) * compose forwards four knobs the runtime already read (NandhaKishorM#1053, NandhaKishorM#1054) * the Java and .NET docs name the multilingual default 0.4.0 moved them to (NandhaKishorM#1069) * Java Router.predictBatch and Shortlist.predictTournament (NandhaKishorM#1060, NandhaKishorM#1061) * teacher-agreement evals, with the self-agreement ceiling (NandhaKishorM#1071, NandhaKishorM#919)
laya 0.4.1 35 pull requests from 8 contributors. * LAYA_EXTRA_MODELS registers extra checkpoints on laya-serve (NandhaKishorM#1047, NandhaKishorM#919) * fine-tuning prints its optimizer-update budget before a run (NandhaKishorM#1014, NandhaKishorM#963) * the Kaggle DDP notebook converges on the shared training primitives (NandhaKishorM#1017, NandhaKishorM#887) * min_confidence bucket keys are type-checked in both TypeScript trees (NandhaKishorM#1015) * evals writes redirected output as utf-8 on a cp1252 runner (NandhaKishorM#1045) * the server serves again after a lifespan restart (NandhaKishorM#1049) * Router.decide_batch takes a checkpoint pin (NandhaKishorM#1050) * the ONNX path answers single-option questions (NandhaKishorM#1051) * Java router lifecycle hooks, AsyncHook, and an OSV dependency scan (NandhaKishorM#1046) * twenty-four documentation corrections, each verified against the code Security: a registerable lookalike domain removed from the phishing example.
laya 0.4.0 The routing default moves from the English checkpoint to the multilingual one. Only text whose language the detector cannot place is affected. Identified English still routes to the English checkpoint, and detected non-Latin script already routed to multilingual. On the refreshed 51-language sweep the multilingual checkpoint leads on 50 of the 51, the exception being English itself (0.820 against 0.710), and by 0.180 macro accuracy excluding English. Off English the English checkpoint collapses while staying confident (Khmer 0.000 accuracy at 0.952 mean confidence), so no min_confidence gate can catch it. Restore the previous behaviour with Router(default="english") or LAYA_DEFAULT_MODEL=english. The break-even is about 62% English traffic. Refs NandhaKishorM#54, NandhaKishorM#384.
laya 0.3.29 44 pull requests from 8 contributors. * predict_long reads a state its questions leave room for in one pass (NandhaKishorM#966) * a line of all-caps English acronyms no longer routes to multilingual (NandhaKishorM#1013) * a min_confidence map key that cannot name a bucket is refused (NandhaKishorM#1002) * laya-train --eval, abstention fitting and before/after train_report.json (NandhaKishorM#967) * a fine-tune that collapses to the class prior warns (NandhaKishorM#968) * laya-evals evidence reads a checkpoint's persisted calibration evidence (NandhaKishorM#964) * the fine-tuning scripts share laya.train instead of three copies (NandhaKishorM#965) * the default loss stays rlcd, on a three-seed panel (NandhaKishorM#1012) * laya-java: language routing, presets, the shortlist and the email cleaner (NandhaKishorM#938) * 31 documentation corrections, each with a gate (NandhaKishorM#972 to NandhaKishorM#1011)
laya 0.3.28 28 pull requests from 12 contributors. * laya.backends is in the wheel again, so Agent(backend=...) and agent.set_backend(...) work for pip installs (NandhaKishorM#940) * laya-train CLI with CSV and expected-format loaders (NandhaKishorM#931, NandhaKishorM#887) * predict_tournament for choice questions past the option budget (NandhaKishorM#950) * opt-in parallel option layout for order-invariant checkpoints (NandhaKishorM#951) * a registry of checkpoints beside the built-ins on Router (NandhaKishorM#937, NandhaKishorM#919) * pydantic Enum fields resolve through $defs (NandhaKishorM#960) * abstention cuts fitted on the precision the gate reads (NandhaKishorM#957)
laya 0.3.27 9 pull requests from 7 contributors. A plain `import laya` no longer crashes when TensorFlow is installed transformers 4.x imports TensorFlow while laya builds the model, and a broken TF build turns that into "Fatal Python error: Bus error" from a library laya never uses (NandhaKishorM#915). The package now sets USE_TF=0 the way CI, the Dockerfile and the examples already did, with setdefault so a deliberate value survives. Per-call hooks reach the batch path Router.predict_batch and Router.route_batch take hooks, on_predict_start, on_predict_end and hooks_raise, matching predict (NandhaKishorM#909). The batched dispatch also composes installed hooks properly, so a set_default_hooks default no longer fires on predict and silently vanishes on predict_batch. A stale abstention flag is cleared on re-evaluation Re-running the gate on a reused result dict with a more permissive threshold left low_confidence: True behind, so downstream callers treated the answer as permanently abstained (NandhaKishorM#910). The 0.0 and None cases are a separate contract question, tracked on that issue. predict_long runs its scan after the hook chain rather than as a start hook, so laya's own forward pass no longer executes inside dispatch() and inherits the caller's hook machinery. Abstention thresholds are fitted on the scale the gate reads With a histogram-binning map installed the runtime reports a binned confidence; fit_abstention_thresholds now fits against that rather than the temperature-scaled value, so a fitted cut and the gate agree. Selective-classification metrics no longer split tied confidences selective_accuracy and aurc cut at a row index, so with ties the result depended on dataset order. Ties are the normal case for answer_confidence. Java laya-java/ is a JVM inference package with the same live parity gate the .NET port uses: fixtures generated from the Python package by a committed script, a drift check, and a skip guard so a missing artifact fails rather than passes. The lane is advisory for the same reason the .NET one is. Its release workflow triggers only on laya-java-v* tags and needs owner setup that does not exist yet, so it cannot fire. French email Device footers with ordinary spacing are matched, not only the tight spacing the original samples happened to have. MPS autocast, measured on an M1 Pro mps_amp_min_rows has defaulted to 5 since NandhaKishorM#109 on one M5 measurement, hedged for M1 to M5. BENCHMARKS.md now carries paired fp32-against-fp16 numbers on an M1 Pro with the script that produces them. Verified before release: the shared suite list reports all 79 suites passed, both TypeScript packages green (laya-ts 629 tests), and a decision diff against 0.3.26 on the real english and multilingual checkpoints over 74 answers showing zero decision flips and a max probability delta of 0.000000. The wheel contains only the laya package; neither the Java nor the .NET tree is in it.
laya 0.3.26 A small release: one new SDK, one TypeScript port, and the dependency bumps. 7 pull requests, 2 from contributors and 5 dependency bumps. .NET SDK laya-dotnet/ is a C# port of the inference path running the official checkpoints exported to ONNX on ONNX Runtime, so calling Laya from .NET no longer needs a Python sidecar (NandhaKishorM#673). It ships with a parity lane that re-records its golden fixtures from the Python package at every commit and never caches them, so drift surfaces on the pull request that causes it. The lane is advisory rather than blocking, on purpose: the Python package is the product and the port follows it, so a Python improvement must not be held up waiting for C#. security.yml's optional-dependency CVE audit is advisory for the same reason. Not ported yet: long prediction, per-language temperatures, hooks, batching, option ordering, digest controls, usage diagnostics. There is no NuGet package; publishing was deliberately left out. Histogram binning in laya-ts applyBinningMap / checkBinningMap port the non-parametric recalibration from core, including the language-override bypass, and the recalibrated answer_confidence is what the abstention gate reads. Dependencies @types/node 24 to 26, zensical 0.0.65 to 0.0.67, ruff 0.16.8 to 0.16.9, and the CodeQL actions to 4.38.2. The three that could have broken a lane were each verified against that lane first: ruff against the CI lint gate, @types/node against the tsc 7 build and the laya-ts suite, zensical against the strict docs build and its griffe check. Verified before release: the shared suite list reports all 79 suites passed, both TypeScript packages green (laya-ts 628 tests, the SDK 27), and a decision diff against 0.3.25 on the real english and multilingual checkpoints over 74 answers showing zero decision flips and a max probability delta of 0.000000. The wheel contains only the laya package; the .NET tree is not in it.
laya 0.3.25 13 pull requests from 9 contributors. Memory on demand LAYA_IDLE_UNLOAD_SECONDS lets laya-serve give its checkpoints back after an idle window, and LAYA_BASE_URL lets laya-mcp-server answer from a running server over HTTP instead of loading its own copy, so several editor sessions share one resident model (NandhaKishorM#888). Both default to off. Backends Agent(backend=...) and agent.set_backend(...) select auto / eager / compile / tilelang / onnx through one class layer, with ONNX routed to the existing ONNXAgent rather than a second copy of that path. Compile defaults compile=True warms during load instead of paying 50 s on the first request, with compile_warmup=False to restore the lazy shape. compile_cache gives Inductor a Laya-specific directory and compile_mode reaches reduce-overhead. AOTInductor packaging works DecisionModel.forward cast to fp32 before the action head while the encoder ran under AMP, which packaged a graph that died with "mat1 and mat2 must have the same dtype". The cast now matches the head's weight dtype outside autocast only, so eager and AMP numerics are untouched. Oversized batches split instead of collating whole /v1/systemone/batch chooses a state chunk size when the token product would exceed the cap, rather than building one 4,096-row forward pass. No request that worked before is refused and none changes its answer. Calibration Histogram binning is wired into answers and the calibration payload, so a fitted binning_map ships and loads like the temperatures. TileLang All five kernels now lower for the CPU target as an explicit fp32 specialization, and GEGLU uses two pipeline stages. Stricter device handling A CUDA ordinal past device_count, and auto in any casing, are resolved at load with the same warn-and-CPU shape as the existing fallbacks instead of dying later in .to(). Encoding laya writes redirected stdout as utf-8, the output half of the stdin fix. TypeScript Both clients accept the per-bucket minConfidence map, and laya-ts ports it to the on-device engine. Verified before release: the shared suite list reports all 79 suites passed, both TypeScript packages green (laya-ts 609 tests, the SDK 27), all four GitHub workflows green on main, and a decision diff against 0.3.24 on the real english and multilingual checkpoints over 74 answers (choice, score and noul; short and long states; budgeted and predict_long) showing zero decision flips and a max probability delta of 0.000000. That last check matters most for the DecisionModel.forward dtype change, whose contract is that existing eager and AMP numerics do not move.
laya 0.3.24 56 pull requests from 16 contributors. Concurrency Router.load builds a checkpoint outside the lifecycle lock, so a cold build no longer blocks calls for a checkpoint already resident, and unload is synchronized per checkpoint rather than globally (NandhaKishorM#848). predict_long holds the tokenizer lock like every other encode, so scanning a document next to ordinary predictions no longer raises "Already borrowed" (NandhaKishorM#825). Calibration Per-option-count abstention thresholds, because one min_confidence does not transfer across option counts (NandhaKishorM#394): fit_abstention_thresholds fits one cut per bucket, keyed like temperature_by_options, and fails closed on a bucket too unreliable to accept anything. Histogram binning (fit_binning_map, apply_binning_map) reaches a reliability curve temperature scaling cannot. save_calibration writes atomically; records_from_labeled works on a loaded agent (NandhaKishorM#826). Evals Selective-classification metrics (Brier, AURC, selective accuracy) from the same pairs ECE already uses. A NaN metric, limit or tolerance can no longer pass a gate (NandhaKishorM#830). Stricter inputs A non-finite hooks_timeout (NandhaKishorM#828), a non-scalar choice label, a batch item's untyped lang_guess, and an unvalidated min_confidence or hooks_timeout on laya_predict_batch are refused where they are read. hooks_installed accepts a sequence, as documented (NandhaKishorM#829). A null score level is a 422 instead of a response no Jev client can parse. laya-serve LAYA_JEV_STRICT projects the response onto the strict Jev wire contract. /v1/systemone/batch sums output_tokens instead of reporting zero, and refuses an unpaired surrogate like the single endpoint. Fallback notes are warnings, not prints Eight device- and inference-fallback notes went to stdout, corrupting laya --json output. They are warnings.warn now, so they are filterable. One test list CI and the release gate run the same shared suite list (scripts/test_suites.py). They had drifted to 80 suites against 47, so a regression in any of the 33 CI-only suites could reach PyPI. TypeScript The SDK types and validates the whole usage report, the four confidence fields and the routing detection's mixed_segment. laya-ts reports collapsed options like laya.common and keeps bytecode out of the npm tarball. Docs and examples Nine example and page corrections where the prose contradicted the code, each with a test holding the page to the source. The PyPI README links absolutely, so its 31 relative links no longer 404 on the project page. Verified before release: the shared suite list and the pytest lane green, both TypeScript packages green (laya-ts 597 tests, the SDK 26), all four GitHub workflows green on main, and a decision diff against 0.3.23 on the real english and multilingual checkpoints over 74 answers (choice, score and noul; short and long states; budgeted and predict_long) showing zero decision flips and a max probability delta of 0.000000.
laya 0.3.23 64 pull requests from 21 contributors. Security GET /health no longer answers deployment internals to an unauthenticated caller on a server that set LAYA_API_KEY (NandhaKishorM#812). Liveness stays open so every shipped probe keeps working; the checkpoint names, revision SHAs, device state and fallback reasons need the bearer. A deployment with no key set is unchanged. SECURITY.md documents private vulnerability reporting (NandhaKishorM#761). Concurrency A GPU OOM fallback no longer moves the shared model under another in-flight request (NandhaKishorM#649, via NandhaKishorM#810). Normal forwards stay concurrent through a reader-writer gate; only the device demotion is exclusive. Per-call controls lang, lang_guess, min_confidence, task and the token budgets now forward through the CLI, /v1/systemone/batch, the MCP single and batch tools, the TypeScript SDK and the LangChain, CrewAI and LlamaIndex wrappers. The three wrappers gate confidence_threshold on answer_confidence rather than the entropy confidence, matching core's own gate. Routing Swedish detection with MASSIVE evidence across all 51 locales and no locale regressing. LAYA_DEFAULT_MODEL makes the routing fallback settable from the environment. A per-checkpoint pin no longer silently disables the caller's digest or revision. ONNX --quantize defaults to per-tensor; per-channel collapsed the decision model to 32 percent agreement with eager. Export declares its dynamic dims in a spelling every torch in the supported range accepts, and verifies the symbolic axes it wrote. Long documents predict_long sizes its windows from the room a question actually leaves for the state, so a scan no longer skips part of the document and reports that it read it. Evals Opt-in per-slice quality gates, shortlist error attribution to retrieval or decision, --min-confidence reaching the abstention gate, and --calibration on the ONNX path. Verified before release: every suite in the CI test and pytest lanes green, all four GitHub workflows green on main, and a decision diff against 0.3.22 on the real english and multilingual checkpoints over 74 answers (choice, score and noul; short and long states; budgeted and predict_long) showing zero decision flips and a max probability delta of 0.000000.
PreviousNext