Skip to content

armgit / laya

Public Imported from GitHub
0

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.

984 B
Raw Blame

Python API

These pages are generated from the docstrings in laya/, so they change with the code. Apart from ONNXAgent and laya.train, every name below can be imported from the top-level package, for example from laya import Router.

  • Agent: Agent and load run one checkpoint; ONNXAgent runs an exported ONNX model.
  • Router: Router picks the checkpoint for each request; RouteDecision records the choice.
  • Helpers: language detection, email cleaning, question presets, shortlisting and calibration utilities.
  • Fine-tuning: finetune and TrainConfig from laya.train, imported from that module rather than the top-level package, and the pieces they are built from.
  • LangChain components: LayaRouter, LayaGuardrail, LayaTriage and LayaEvaluator.

Prediction hooks have a hand-written API reference with the rest of the hooks guide.