An
OpenVINO IR, int8 weight-compressed
export of
convaiinnovations/laya
, the English Laya checkpoint (ModernBERT-large), for fast CPU inference.
Laya answers typed questions about a piece of state in
one forward pass, with no text generation
: pick one of several options (
choice
), rate on a scale (
score
), or answer yes/no (
noul
). Every answer comes with a calibrated confidence.
Scored on 90 preset questions (
choice
,
score
,
noul
) against the original torch checkpoint on a 12th-gen Intel CPU:
weights
size
top-answer agreement
1 question
5 questions
torch fp32
--
reference
136 ms
815 ms
OpenVINO fp16
805 MB
100.0%
90 ms
554 ms
OpenVINO int8 (this model)
405 MB
98.9%
40 ms
272 ms
That is 3.4x faster than torch on a single question at half the size of fp16. The average probability shift is 0.0087 and the largest is 0.145, so leave some margin if you threshold a confidence.
Files
openvino_model.xml
/
openvino_model.bin
: OpenVINO IR with int8 weights (NNCF weight compression)
tokenizer/
: the ModernBERT tokenizer
rl_agent_config.json
: model config, including the fitted calibration temperatures
from huggingface_hub import snapshot_download
import laya
# Use local_dir rather than the Hub cache: OVAgent patches tokenizer_config.json in place.
snapshot_download("rupeshs/laya-ov-int8", local_dir="laya-ov-int8")
agent = laya.OVAgent("laya-ov-int8") # device="CPU" by default
state = {
"from": "[email protected]",
"subject": "Duplicate charge on invoice #4411",
"body": "Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan.",
}
questions = {
"department": {
"type": "choice",
"instructions": "Which department should handle this request?",
"criteria": {
"billing": "invoices, payments, refunds",
"technical": "bugs, outages, system errors",
"sales": "pricing, new contracts",
"other": "everything else",
},
},
"urgency": {
"type": "score",
"instructions": "How urgent is this request?",
"criteria": ["not urgent", "soon", "critical deadline or blocking issue"],
},
"churn_risk": {
"type": "noul",
"instructions": "Does the user threaten to cancel or leave?",
},
}
answers = agent.predict(state, questions)["answers"]
print(answers["department"]["choice"], answers["department"]["confidence"])
print(answers["urgency"]["score"])
print(answers["churn_risk"]["noul"])
All three questions are answered in a single forward pass.
OVAgent
returns the same payload as the torch
laya.Agent
.
Demos
Gradio demo:
examples/app.py
lets you try presets (sentiment, support triage, phishing, LLM guard, moderation, model routing) or your own questions.
English only.
Accuracy drops sharply on other languages, especially non-Latin scripts, while the reported confidence stays high. Send it English input only.
int8 changes about 1 in 90 top answers compared with the torch checkpoint.
For the model itself (question types, training, benchmarks, fine-tuning), see the upstream project
NandhaKishorM/laya
.
License
Apache 2.0, the same as the original model. Original work by Convai Innovations.
Runs of rupeshs laya-ov-int8 on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About laya-ov-int8 huggingface.co Model
laya-ov-int8 huggingface.co is an AI model on huggingface.co that provides laya-ov-int8's model effect (), which can be used instantly with this rupeshs laya-ov-int8 model. huggingface.co supports a free trial of the laya-ov-int8 model, and also provides paid use of the laya-ov-int8. Support call laya-ov-int8 model through api, including Node.js, Python, http.
laya-ov-int8 huggingface.co is an online trial and call api platform, which integrates laya-ov-int8's modeling effects, including api services, and provides a free online trial of laya-ov-int8, you can try laya-ov-int8 online for free by clicking the link below.
rupeshs laya-ov-int8 online free url in huggingface.co:
laya-ov-int8 is an open source model from GitHub that offers a free installation service, and any user can find laya-ov-int8 on GitHub to install. At the same time, huggingface.co provides the effect of laya-ov-int8 install, users can directly use laya-ov-int8 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.