laya:en
10 TagsUpdated 421M params512 contextEnglishApache-2.0by Convai Innovations
English. Best for guardrails and email triage.
guardrails421m
Pre-release. Ollaya's first release is in progress; these commands will work once it ships. Star / watch on GitHub to hear about the first release.
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
- model~0.8 / 1.7 GB
onnx · ModernBERT-large · 421M · fp16 | fp32 - tokenizer
tokenizer.json (Hugging Face tokenizers format) - decision
{"engine": "onnx", "family": "laya", "encoder": "answerdotai/ModernBERT-large", "max_len": 512, …} - calibration
{"temperature_by_options": {"choice:2": …, "choice:3-5": …, "score:3-5": …, "noul:2": …, …}} - license
Apache License, Version 2.0, January 2004
Layer digests will be listed once artifacts are published. Sizes are approximate.