laya:en
10 TagsUpdated 421M params512 contextEnglishApache-2.0by Convai Innovations
English. Best for guardrails and email triage.
guardrails421m
ollaya run laya:en --preset triage "I was charged twice for my subscription this month and want a refund."curl http://localhost:11435/api/decide \
-H "Content-Type: application/json" \
-d '{
"model": "laya:en",
"state": "I was charged twice for my subscription this month and want a refund.",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "Payments, invoices and refunds",
"technical": "Bugs, errors and outages",
"account": "Login, profile and settings"
}
},
"refund": {
"type": "noul",
"instructions": "Is the customer asking for a refund?"
}
}
}'# Already using a TypeSafe SDK? Set TYPESAFE_BASE_URL=http://localhost:11435 instead.
import requests
response = requests.post(
"http://localhost:11435/api/decide",
json={
"model": "laya:en",
"state": "I was charged twice for my subscription this month and want a refund.",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this?",
"criteria": {
"billing": "Payments, invoices and refunds",
"technical": "Bugs, errors and outages",
"account": "Login, profile and settings"
}
},
"refund": {
"type": "noul",
"instructions": "Is the customer asking for a refund?"
}
}
},
)
answers = response.json()["answers"]
print(answers["department"]["choice"], answers["refund"]["noul"])const response = await fetch("http://localhost:11435/api/decide", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
model: "laya:en",
state: "I was charged twice for my subscription this month and want a refund.",
questions: {
department: {
type: "choice",
instructions: "Which team should handle this?",
criteria: {
billing: "Payments, invoices and refunds",
technical: "Bugs, errors and outages",
account: "Login, profile and settings"
}
},
refund: {
type: "noul",
instructions: "Is the customer asking for a refund?"
}
}
}),
});
const { answers } = await response.json();
console.log(answers.department.choice, answers.refund.noul);Details
- graphc54880e1ab52 · 4 MB
onnx · ModernBERT-large · 421M · fp32 - graph32b6a6176149 · 4 MB
onnx · ModernBERT-large · 421M · fp16 - weights891102d37268 · 843 MB
huggingface.co/convaiinnovations/laya/resolve/aa8c91c…/model.safetensors - tokenizer6c8aaa9a5420 · 4 MB
huggingface.co/convaiinnovations/laya/resolve/aa8c91c…/tokenizer/tokenizer.json - decisionb5bc5074b1b4 · 478 B
{"engine": "onnx", "family": "laya", "encoder": "answerdotai/ModernBERT-large", "layout": "laya-markers-v1", …} - calibrationa7af5a5fafb5 · 352 B
{"temperature_by_options": {"choice:3-5": …, "choice:6-10": …, "score:3-5": …, "noul:2": …, "choice:11+": …, "choice:2": …}} - licenseec56c3e69fab · 10 KB
Laya by Convai Innovations (https://huggingface.co/convaiinnovations/laya)
Every layer is checked against its sha256 when it is pulled. Weights and tokenizers download from the model author's Hugging Face repository at a pinned commit; Ollaya never re-hosts them.