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
README and docs: how to switch the model underneath, by Hub name, in comments on the Agent line
Nandakishor5a6dc4b80965
diff --git a/README.md b/README.mdindex 628ade78..d34bf4a4 100644--- a/README.md+++ b/README.md@@ -50,7 +50,18 @@ python -m pip install -U laya # 0.4.23 or newer: vegaml comes with it```pythonimport laya-agent = laya.Agent(vegaml=True) # the 0.8B universal reader; vegaml="4b" for the larger one+agent = laya.Agent(vegaml=True) # the 0.8B universal reader (nandakishorm/vega-U), the default++# Switching the model underneath is one string. Every option keeps the same engine, questions and fields:+# laya.Agent(vegaml="4b") # the Qwen3.5-4B reader from the same Hub repo+# laya.Agent(vegaml="gemma-1b") # the gemma-3-1b-it reader, same repo+# laya.Agent(vegaml="nandakishorm/vega-U") # any Hub repo id holding a vega-U checkpoint+# laya.Agent(vegaml="./my-reader/") # a local dir from VegaAgent.attach(...), your own LLM ported in+# laya.Agent(vegaml=True, backbone="Qwen/Qwen3.5-0.8B") # name the reader weights explicitly, e.g. a mirror+# Without the argument, laya's own encoders, also by Hub name:+# laya.Agent("convaiinnovations/laya") # English, 33 ms on a T4+# laya.Agent("convaiinnovations/laya-multilingual") # 100+ languages, up to 8,192 tokens with max_len=8192+# laya.Agent("convaiinnovations/laya-typed-decisions") # fine-tuned for the typed-decisions workflowsstate = "Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan."questions = {diff --git a/docs/vegaml.md b/docs/vegaml.mdindex 99a247a5..7b4f750b 100644--- a/docs/vegaml.md+++ b/docs/vegaml.md@@ -12,8 +12,18 @@ pip install -U laya # vegaml ships with laya 0.4.23 and newer```pythonimport laya-agent = laya.Agent(vegaml=True) # the 0.8B universal reader-agent = laya.load(vegaml="4b") # a larger reader; or a Hub id, or a local dir+agent = laya.Agent(vegaml=True) # the 0.8B universal reader (nandakishorm/vega-U), the default++# Switching the model underneath is one string. Every option keeps the same engine, questions and fields:+# laya.Agent(vegaml="4b") # the Qwen3.5-4B reader from the same Hub repo+# laya.Agent(vegaml="gemma-1b") # the gemma-3-1b-it reader, same repo+# laya.Agent(vegaml="nandakishorm/vega-U") # any Hub repo id holding a vega-U checkpoint+# laya.Agent(vegaml="./my-reader/") # a local dir from VegaAgent.attach(...), your own LLM ported in+# laya.Agent(vegaml=True, backbone="Qwen/Qwen3.5-0.8B") # name the reader weights explicitly, e.g. a mirror+# Without the argument, laya's own encoders, also by Hub name:+# laya.Agent("convaiinnovations/laya") # English, 33 ms on a T4+# laya.Agent("convaiinnovations/laya-multilingual") # 100+ languages, up to 8,192 tokens with max_len=8192+# laya.Agent("convaiinnovations/laya-typed-decisions") # fine-tuned for the typed-decisions workflowsout = agent.predict(state, questions)ans = out["answers"]["department"]