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.

Merge pull request #546 from aashish254/feat-cli-model-aliases

Nandakishora4986f64f7ad
diff --cc README.md
index 9bc735b3,05da2736..acd32b79
--- a/README.md
+++ b/README.md
@@@ -198,9 -198,8 +198,10 @@@ Installing the package also installs a
laya "I was charged twice, please refund" # routing decision only; works offline, no download
laya "Refactor this service" --predict # full answers (downloads the checkpoint on first use)
laya "Mein Konto wurde zweimal belastet" --lang de # force a language instead of detecting it
+ laya "My payment failed twice" --model ml # pin a checkpoint: names, aliases and casing all resolve as the SDK resolves them
laya "My payment failed twice" --preset triage # answer a ready-made preset (triage, email, guard, moderation, router)
+laya --batch tickets.txt --predict # score a file of requests, one per line, in one batch
+cat tickets.txt | laya --batch - --predict --json # stdin; one JSON line of answers per request
laya # interactive mode
```
diff --cc laya/cli.py
index 2a455a7a,a9d23b63..8ea3b611
--- a/laya/cli.py
+++ b/laya/cli.py
@@@ -4,9 -4,8 +4,10 @@@
laya "Refactor this service" --predict # full answers, loads the checkpoint
laya # interactive mode
laya "Mein Konto wurde zweimal belastet" --lang de # explicit language
+ laya "My payment failed twice" --model ml # pin a checkpoint, by name or alias
laya "My payment failed twice" --preset triage # a ready-made question preset
+ laya --batch tickets.txt --predict # a file of requests, one per line
+ cat tickets.txt | laya --batch - --predict --json # stdin, one JSON line of answers each
Routing (the default) never downloads a checkpoint, so it works offline and
returns in milliseconds. --predict loads the routed checkpoint on first use,