Decisions with typed choices, 421M params. For structured selections (categories, typed workflows) rather than a plain best-of-list pick.
Converted from convaiinnovations/laya-typed-decisions (Apache 2.0, by TypeSafe-era
community project convaiinnovations/laya) with torch.onnx.dynamo_export
(opset 21). Same math as the original DecisionModel.forward: inputs
input_ids, attention_mask, type_ids, lengths, n_opts → outputs
scores, confidences, temperatures. No text generation — a pure
state + typed questions (choice / score / noul) → calibrated answers
classifier, API-compatible with Jev System One.
Why this repo: the official checkpoints ship only fp32 safetensors (torch +
transformers stack, ~1.3–1.7 GB RAM just for weights). Here you get a portable
ONNX graph runnable with plain onnxruntime on any CPU, plus a ready int8
quant for tight boxes.
model_fp32.onnx — exact fp32 weights, single file. Use this for real work.model_int8.onnx — weight-only int8 (MatMulNBits, block 64) +
fp16 embedding tables, decision head kept in fp32. Argmax agreement with
fp32 is 100% on a 120-sample English eval set — a safe drop-in replacement
at ~0.5 GB, runnable with onnxruntime >= 1.18 on any CPU.tokenizer.json, tokenizer_config.json — original tokenizer.reproduce_int8.py — the exact quant script (weight-only MatMulNBits int8 + fp16 embedding tables + fp32 head). Run: python reproduce_int8.py model_fp32.onnx model_int8.onnx.On a 2-CPU VPS expect roughly 2× the single-thread number. Context window: 1024 tokens (states longer than that need a summarization step first).
Raw probabilities from these checkpoints are miscalibrated (high ECE) — see the independent evals below. Do not threshold raw confidences; fit a recalibration (e.g. Platt scaling) on your own workload first. Our int8 build preserves fp32 argmax decisions 100%, so a recalibration fitted on fp32 transfers to int8 unchanged.
Independent measurements:
from huggingface_hub import snapshot_download
import onnxruntime as ort
from transformers import AutoTokenizer
repo = snapshot_download("yehor-oleksiuk/laya-typed-decisions-onnx")
tok = AutoTokenizer.from_pretrained(repo)
sess = ort.InferenceSession(f"{repo}/model_fp32.onnx",
providers=["CPUExecutionProvider"])
# Build inputs the same way laya does (see build_sequence/collate in the
# original repo), then:
# scores, confs, temps = sess.run(None, dict(input_ids=..., attention_mask=...,
# type_ids=..., lengths=..., n_opts=...))
Original code, training details and benchmarks: https://github.com/NandhaKishorM/laya
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo yehor-oleksiuk/laya-typed-decisions-onnx ./model-foldermodel_fp32.onnx 1.6 GiBmodel_int8.onnx 483 MiBconvaiinnovations/laya-typed-decisions