Open, calibrated System 1 decision models. Ask typed questions (choice, score, noul) about any state (text, email, ticket or JSON) and get a calibrated probability for every option: 17 ms on an NVIDIA GPU, 18 ms on a Mac. Distilled from open teachers, and benchmarked head to head against TypeSafe Jev, Laya, CLM-8B and frontier LLMs on the same questions with the same scorer.
Installation
pip install opendecider # opendecider-nano
pip install "opendecider[small]" # adds peft for opendecider-small and opendecider-small-td
pip install "opendecider[mlx]" # Apple Silicon: the MLX 4-bit / 8-bit builds of opendecider-small
Python 3.10 or newer. Works on Linux, Windows and macOS, on CPU, NVIDIA (CUDA) and Apple Silicon (MPS), and picks the device for you. Platform notes: Installation details. Try it without installing: live demo, or on a free NVIDIA GPU in Colab.
Quickstart
from opendecider import load
model = load("manjunathshiva/opendecider-nano") # 0.8 GB, downloaded on first use; "…/opendecider-small" for the 4B
state = "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?",
"criteria": {"billing": "invoices, payments, refunds",
"technical": "bugs, outages, system errors",
"other": "everything else"}},
"urgency": {"type": "score", "instructions": "How urgent is this?",
"criteria": ["not urgent", "soon", "blocking"]},
"churn_risk": {"type": "noul", "instructions": "Does the user threaten to cancel or leave?"},
}
result = model.system_one(state, questions)
print(result["answers"]["department"]["choice"]) # billing (probability 0.927)
print(result["answers"]["urgency"]["score"]) # 2 = blocking (probability 0.604)
print(result["answers"]["churn_risk"]["noul"]) # 0.922 = probability the answer is yes
A state can be plain text or any JSON-serialisable object: a ticket with subject, body and customer fields, a log
record, an agent's tool-call trace. Questions can also be written with the helper classes Choice, Score and Noul.
Beats Laya and Jev on typed-decisions
On the typed-decisions benchmark (2,000 decisions across four business workflows), scored with the Jev-vs-Laya harness published by Kameshwara Pavan kumar Mantha and the Antz AI team, opendecider-nano scores 0.796, against 0.766 for Laya's typed-decisions checkpoint (+0.030, 95% CI +0.014 to +0.044) and 0.754 for TypeSafe Jev. Like Laya's checkpoint, it was fine-tuned on the dataset's train split; the test split was never used for training or model selection. opendecider-small, which never saw the dataset, scores 0.672, against 0.362 for Laya's base checkpoint, and its workflow-tuned version, opendecider-small-td, scores 0.792 (+0.026 vs Laya's checkpoint, 95% CI +0.008 to +0.043).
Highlighted: best in each column. typed-decisions scored with the Antz AI harness; OpenDecider-nano and Laya's typed-decisions checkpoint were fine-tuned on the train split, and the test split was never seen. Speeds: OpenDecider on an NVIDIA L40S, Laya on Apple Silicon, APIs include the network. Every number: COMPARISON.md.
What's new in 0.1.1
- opendecider-small-td: the 4B fine-tuned for business workflows, 0.792 on typed-decisions.
- Apple Silicon MLX builds of opendecider-small:
pip install "opendecider[mlx]". The 8-bit build (4.5 GB) gives the same answers as full precision on 399 of 400 general and 1,955 of 2,000 typed-decisions questions, about 2× faster than PyTorch on a Mac; the 4-bit build (2.6 GB) costs about 2 points on typed-decisions. - Colab notebook for NVIDIA (open it), tested top to bottom on an NVIDIA GPU.
- Benchmark harness in benchmarks/: rebuilds every table here from the logged answers and re-scores any model.
- T4 support: opendecider-small runs in fp16 on GPUs without bf16 (probabilities within about 0.003 of bf16).
What's new in 0.1.0
- First release:
opendecider-nano(~400M, Ettin encoder) andopendecider-small(4B, LoRA on Qwen3-4B-Instruct-2507). - Measured against TypeSafe Jev directly, through TypeSafe's own API, on every benchmark, alongside Laya, CLM-8B and five frontier LLMs.
- Same results on every platform: both models give identical benchmark scores on Apple Silicon (MPS) and Linux + NVIDIA (CUDA).
- Licence-clean data: every training dataset is listed in NOTICE. A non-commercial dataset found in our audit was removed before release, and no outputs of Claude or GPT models were used.
OpenDecider answers typed questions over any state in a single forward pass (nano) or a single next-token read (small). There's no text generation, so nothing to parse and nothing to hallucinate. Every answer carries a full, calibrated probability distribution you can threshold, route on or log.
The checkpoints:
| backbone | params | context | memory | use it for | |
|---|---|---|---|---|---|
opendecider-nano |
Ettin-encoder-400m | ~400M | 2,048 | 2.0 GiB | speed: 17–18 ms per question, ~9 ms batched; typed business decisions |
opendecider-small |
Qwen3-4B-Instruct-2507 + LoRA | 4B | 768 (training inputs) | 8.9 GiB, tested on a 16 GB Mac mini | accuracy and calibration on decisions it has never seen |
opendecider-small-td |
Qwen3-4B-Instruct-2507 + LoRA | 4B | 768 (training inputs) | 8.9 GiB | business workflows like typed-decisions' (triage, invoices, security alerts, agent traces): 0.792 |
opendecider-small-mlx-8bit |
opendecider-small, MLX 8-bit | 4B | 768 (training inputs) | 4.5 GB | Macs: same answers as full precision (1,955/2,000 on typed-decisions), 66 ms per question |
opendecider-small-mlx-4bit |
opendecider-small, MLX 4-bit | 4B | 768 (training inputs) | 2.6 GB | Macs with little memory; about 2 points lower on typed-decisions (0.651) |
Coming next (in development)
- opendecider-medium (Qwen3-30B-A3B, for 36 GB+ machines) and opendecider-large (Qwen3-Next-80B-A3B, for 64 GB), aimed at closing the remaining gap to frontier LLMs.
- MLX builds for Apple Silicon and a Colab notebook for NVIDIA.
Installation details
# 1. a virtual environment (macOS / Linux)
python3 -m venv .venv && source .venv/bin/activate
# Windows PowerShell: py -m venv .venv ; .venv\Scripts\Activate.ps1
# 2. PyTorch for your hardware (skip if already installed)
pip install torch # macOS (Apple Silicon uses MPS) and CPU
pip install torch --index-url https://download.pytorch.org/whl/cu128 # Linux / Windows with an NVIDIA GPU
# 3. OpenDecider
pip install "opendecider[small]"
- Device: CUDA, then MPS, then CPU, chosen automatically. Override with
load(..., device="cpu"). - Offline or air-gapped: download a model folder once (
huggingface-cli download manjunathshiva/opendecider-nano --local-dir ./nano), thenload("./nano"). - CPU only: nano runs fine on CPU for batch jobs. small needs ~17 GB of RAM in fp32 and is slow on CPU.
- Memory: nano 2.0 GiB, small 8.9 GiB of GPU or unified memory, measured on a 16 GB Mac mini (M4), where the GPU budget is 11.8 GiB.
Decision primitives
from opendecider import Choice, Score, Noul
Choice("Which team?", {"billing": "charges, refunds", "technical": "bugs"}) # pick one; descriptions optional
Choice("Which intent?", ["refund", "replacement", "information"]) # a plain list of labels
Score("How urgent?", ["not urgent", "soon", "blocking"]) # ordered levels, lowest first
Noul("Is this spam?") # yes / no
Noul("Is this spam?", {"true": "unsolicited marketing", "false": "mail the user wants"})
Answers:
{"type": "choice", "choice": "billing", "probabilities": {"billing": 0.927, ...}, "confidence": 0.927}
{"type": "score", "score": 2, "expected": 1.51, "probabilities": {"0": 0.091, "1": 0.305, "2": 0.604}, "confidence": 0.604}
{"type": "noul", "noul": 0.922, "probabilities": {"true": 0.922, "false": 0.078}, "confidence": 0.922}
system_one(state, questions) takes any number of questions about one state. opendecider-nano answers all of them in
one padded batch (9.3 ms per question at 50 questions on a Mac); opendecider-small answers them in sequence.
Measure latency on your own hardware: python -m opendecider.bench_speed manjunathshiva/opendecider-nano.
Architecture
- opendecider-nano: Ettin-encoder-400m (bidirectional, fully fine-tuned) reads
question: …, [MASK] option 1, [MASK] option 2, …, input: <state>. The hidden state at each[MASK]goes through a small MLP (Linear–GELU–LayerNorm–Linear) to one logit, then a softmax across that question's options. The answer space is defined at request time, so new schemas need no retraining. There's no per-option token budget, so a 78-option question costs one forward pass. - opendecider-small: Qwen3-4B-Instruct-2507 with a LoRA adapter (r = 16, all linear projections). The options are lettered, and one forward pass gives the probability of each letter as the next token. Above 26 options it scores each option name's log-probability after the shared prompt.
Training
Distillation from calibrated teachers. Two openly licensed teachers, Qwen3-235B-A22B-Instruct-2507 (Apache-2.0) and DeepSeek V4.1 Flash (MIT), scored every training question through token log-probabilities. Each teacher was temperature-scaled on held-out gold labels before the two were averaged, so the students learn calibrated distributions, not hard labels. Datasets that come with gold labels only use label-smoothed gold.
Data. Public classification, intent, emotion, NLI, reading-comprehension, topic, toxicity, spam, relevance and paraphrase datasets, plus synthetic business cases, emails and product reviews written for this project (full list and licences in NOTICE). opendecider-nano then had a short fine-tune on the typed-decisions train split. No benchmark dataset below, or its family, is in the training data, and every training pool was checked for text overlap with all test sets (0 overlaps).
Benchmarks
Every model answered the same questions and was scored by the same code. TypeSafe Jev was measured directly through TypeSafe's own API, not taken from published figures. Full tables, per-task results and methodology: COMPARISON.md.
Reproduce every number: python benchmarks/report.py rebuilds all the tables from the committed results, and
python benchmarks/run.py --model <name> re-scores any model. See benchmarks/.
Speed
| questions per call | nano, NVIDIA L40S | nano, Apple M4 Max | small, NVIDIA L40S | small, Apple M4 Max |
|---|---|---|---|---|
| 1 | 16.1 ms | 18.1 ms | 37.6 ms | 141 ms |
| 5 | 24.4 ms (4.9 ms/q) | 54.3 ms (10.9 ms/q) | 190.1 ms (38.0 ms/q) | 680 ms (136 ms/q) |
| 10 | 42.9 ms (4.3 ms/q) | 98.1 ms (9.8 ms/q) | 388.2 ms (38.8 ms/q) | 1.37 s (137 ms/q) |
| 50 | 189.5 ms (3.8 ms/q) | 467 ms (9.3 ms/q) | 1.94 s (38.7 ms/q) | 6.86 s (137 ms/q) |
On a 16 GB Mac mini (M4): nano 28 ms and small 280 ms per question, using 2.0 GiB and 8.9 GiB of the 11.8 GiB GPU budget, with answers identical to the 64 GB Mac to four decimals.
For reference, TypeSafe Jev answered at a 404 ms median per question through its API in our runs.
OpenDecider vs TypeSafe Jev (measured through TypeSafe's API)
| Benchmark / metric | TypeSafe Jev 1.13 | opendecider-nano | opendecider-small |
|---|---|---|---|
| typed-decisions, 2,000 decisions | 0.754 | 0.796 | 0.672 (zero-shot) |
| 200 general decisions (BANKING77, BoolQ, Yelp, ChaosNLI) | 0.730 | 0.680 | 0.735 |
| Laya's application battery, 10 tasks | 0.774 | 0.656 | 0.702 |
| Calibration error (ECE), general decisions | 0.164 | 0.092 | 0.087 |
| Distance from the human label spread (ChaosNLI JSD) | 0.148 | 0.045 | 0.040 |
| Median latency, 1 question | 404 ms (API) | 17 ms (L40S) | 40 ms (L40S) |
| Weights | closed API | Apache-2.0 | Apache-2.0 |
| Cost | $0.025 per 1,000 decisions | self-hosted | self-hosted |
Where Jev leads
- Laya's application battery: Jev 0.774 vs 0.702 (small) and 0.656 (nano); 0.803 on the five tasks Laya was not trained on. Jev is strongest on phishing (0.897, vs our 0.63), spam (0.985), model routing (0.975) and 77-label BANKING77 (0.845).
- BoolQ-style yes/no reading questions (0.94, vs 0.74 nano and 0.90 small) and BANKING77 routing with 78 options on our bench (0.76, vs 0.68 and 0.70).
- typed-decisions without fine-tuning: Jev 0.754 vs opendecider-small 0.672. The fine-tuned nano (0.796) passes it.
Where OpenDecider leads Jev: typed-decisions after fine-tuning (0.796 vs 0.754), general decisions (small 0.735 vs 0.730), calibration (ECE 0.087–0.092 vs 0.164), agreement with human label spread (JSD 0.040–0.045 vs 0.148), latency (17–40 ms vs 404 ms), open weights and self-hosting.
OpenDecider vs Laya
| Benchmark | Laya | Laya typed-decisions | opendecider-nano | opendecider-small |
|---|---|---|---|---|
| typed-decisions (Antz harness) | 0.362 | 0.766 | 0.796 | 0.672 |
| 200 general decisions | 0.545 | 0.570 | 0.680 | 0.735 |
| Laya's battery, all 10 tasks | 0.695 | 0.702 | 0.656 | 0.702 |
| Laya's battery, the 5 tasks Laya was not trained on | 0.579 | 0.609 | 0.656 | 0.743 |
| BANKING77, 77 labels (Laya's battery) | 0.425 | 0.492 | 0.645 | 0.748 |
| Calibration error (ECE), general decisions | 0.327 | 0.162 | 0.092 | 0.087 |
Where Laya leads
- The five datasets Laya was trained on: AG News 0.95, Enron spam 0.99, phishing 0.98, MS MARCO relevance 0.63, support triage 0.50. OpenDecider did not train on any of them.
- Multilingual: Laya has a 100+ language checkpoint and a router. OpenDecider is evaluated in English only.
- Single-question speed on short inputs: Laya is in the same range as nano (21–33 ms).
Frontier LLMs, CLM-8B and untrained baselines (same 200 general decisions)
| Model | accuracy | ECE | median latency | $ / 1,000 decisions |
|---|---|---|---|---|
| Claude Fable 5.1 | 0.840 | 0.064 | 4.27 s | $11.81 |
| GPT-6 Astra | 0.790 | 0.119 | 2.22 s | $6.96 |
| DeepSeek V4.1 Flash | 0.760 | 0.138 | 4.08 s | $0.158 |
| MiniMax M3 | 0.755 | 0.112 | 1.02 s | $0.149 |
| Qwen3-Next-80B-A3B, untrained | 0.750 | 0.230 | local | – |
| Kimi K3 | 0.745 | 0.119 | 6.28 s | $3.64 |
| opendecider-small | 0.735 | 0.087 | 40 ms | self-hosted |
| TypeSafe Jev 1.13 | 0.730 | 0.164 | 404 ms | $0.025 |
| Qwen3-4B-Instruct-2507, untrained (small's base) | 0.700 | 0.289 | local | – |
| opendecider-nano | 0.680 | 0.092 | 17 ms | self-hosted |
| CLM-8B (Contrastive-LM) | 0.400 | 0.106 | ~35 ms | self-hosted |
Frontier LLMs are more accurate, at 25–370× the latency and with a per-call bill. Distillation moved Qwen3-4B from 0.700 to 0.735 and cut its calibration error from 0.289 to 0.087. CLM-8B, a contrastive reranker, is near chance on classification-style decisions (0.000 on label-only BANKING77); its strongest task is passage relevance (0.603 on MS MARCO, near Laya's 0.625, which trained on it).
Honest limits
- Phishing detection is the weakest task: 0.63 on Laya's battery for both models, against Jev's 0.90 and Laya's 0.98 (Laya trained on that dataset).
- TypeSafe Jev leads Laya's application battery (0.774 vs 0.702 small, 0.656 nano).
- opendecider-nano trails Laya on Laya's battery overall (0.656 vs 0.695), because half its tasks are Laya's training data.
- opendecider-small is zero-shot on typed-decisions and trails Jev there (0.672 vs 0.754).
- English only so far. The training data includes some Spanish, German, French, Portuguese, Italian and Dutch, but no multilingual evaluation has been run.
- opendecider-small answers questions one at a time (~137 ms per question on a Mac, ~40 ms on an L40S). Use nano when you need many decisions per second.
- Descriptions help. Very terse or cryptic option labels are harder for every model, so give options a short description when you can.
Links
- Live demo: https://huggingface.co/spaces/manjunathshiva/opendecider-demo
- PyPI: https://pypi.org/project/opendecider/
- Models: opendecider-nano · opendecider-small · collection
- Full benchmark tables: COMPARISON.md
- Related: Jev vs frontier LLMs benchmark
License
Code and weights: Apache-2.0. Base models: Ettin-encoder-400m (MIT), Qwen3-4B-Instruct-2507 (Apache-2.0). Training-data attributions: NOTICE.
@software{janardhan2026opendecider,
title = {OpenDecider: open, calibrated System 1 decision models},
author = {Manjunath Janardhan},
year = {2026},
url = {https://github.com/manjunathshiva/opendecider}
}
Release files for opendecider 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opendecider-0.1.1.tar.gz | 28.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opendecider-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.5 kB
Release files / opendecider-0.1.1.tar.gz
| Download URL | opendecider-0.1.1.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f29ec17a28e344c450f1a2fc4dce8844c79e80ae31374551bfda874fcb0fa48
|
|
BLAKE2b-256 checksum How to use checksums |
a129042cbe7b36b93c17ec0d30c739d1726a5df6e85d56c5646dd65b6c8abbb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / opendecider-0.1.1-py3-none-any.whl
| Download URL | opendecider-0.1.1-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ed5753cd11ba7817bba9622283dbaab7a23c305c0fcdd6a2eb0f5a233b3ada9
|
|
BLAKE2b-256 checksum How to use checksums |
9c2331b72cae1fd7b82436e7dec1f8d3841fcd576ca3adb469b138cea7fe5164
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency log