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.

feat(evals): dispatch `laya eval` to the eval CLI

Emiliano Gandini Outeda711596fc85e1
diff --git a/laya/cli.py b/laya/cli.py
index 31cbee3b..a1789522 100644
--- a/laya/cli.py
+++ b/laya/cli.py
@@ -126,6 +126,10 @@ def interactive(args):
def main(argv=None):
+ argv = list(sys.argv[1:] if argv is None else argv)
+ if argv and argv[0] == "eval": # `laya eval ...` mirrors the `laya-eval` script
+ from .evals_cli import main as eval_main
+ return eval_main(argv[1:])
args = build_parser().parse_args(argv)
text = " ".join(args.text).strip()
if not text: