typed-decisions
Lightweight reproduction of the Jev shape on a ModernBERT encoder and a diffusion LLM, comparing speed, accuracy, calibration and cost.
Overview
typed-decisions reproduces the shape of Jev: one state, many typed questions (Choice, Score, Noul), and calibrated probability distributions returned in a single parallel pass. It does not implement a TypeSafe spec, since none is public; the API shape is reconstructed from TypeSafe's site and a guide. Every question type is a softmax over an option list, with score read as an expected level and noul as p(yes).
It trains the same task on two backbones so they can be compared side by side: a ModernBERT encoder (149M or 395M) with a matching head over option tokens, and LLaDA-MoE, a 7B diffusion LLM with about 1B active parameters, using LoRA and reading logits at mask slots. Both use cross-entropy plus Brier loss and have zero structured-output errors by construction. Labels come from public datasets such as Banking77, with no synthetic answers or teacher model. It is aimed at researchers.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Choice | Which intent does this banking query express (Banking77 labels)? | — |
| Score | Score question read out as an expected level | — |
| Yes / no | Yes/no question read out as p(yes) | yes · no |
How it works
- Build a corpus from public labeled datasets.
- Train an encoder head and a LoRA diffusion LLM on the same typed questions.
- Answer all questions for a state in one forward pass.
- Fit temperature on validation and compare speed, accuracy and calibration.
Strengths
- Side-by-side comparison of encoder and diffusion backbones.
- No synthetic labels or teacher model.
- Zero structured-output errors by construction.
Caveats
- Research code tied to the author's Modal setup.
- Not a drop-in Jev replacement.
At a glance
- Type
- Project
- Status
- research
- Language
- Python
- Runtime
- PyTorch training on Modal
- Has code
- yes
Use cases and integrations
How curated lists describe it
Jev-shaped typed-decision model.
wh000wh000/awesome-jev-live
Frequently asked questions
Is this a Jev clone?
It reproduces Jev's input and output shape on open backbones, without claiming to match its internals.
Which models are compared?
ModernBERT base and large encoders versus the LLaDA-MoE diffusion LLM.
Where do labels come from?
Public datasets such as Banking77, using their own labels.
Related projects
Pre-registered field test of Jev, GLiNER2.5-Decide, Laya and other decision models against small LLMs on fresh September 2026 data.
ProjectresearchPythonOpen System-1 (OpenJev): Apache-2.0 research models giving calibrated per-option probabilities, best is a 4.9B exp9a.
ProjectresearchPythonInternLM's open multimodal decision models (0.8B-4B) trained on Qwen3.5, with calibration tooling and a 96-case calibration benchmark.
ModelresearchPythonVerdict: 151M ModernBERT/GLiClass non-autoregressive decision models with calibration heads, reporting wins over Jev and Laya.
ModelresearchPythonReproducible MLX and Colab recipes that turn Qwen decoders into Jev-like typed decision models, from 0.5B on a laptop to a noncausal 27B.
ModelresearchPython- Verdict-open-jev★ 110
OpenJev: 151M ModernBERT decision model with RLCD-style calibration, a JevBench audit and an in-browser WebGPU playground.
BenchmarkresearchPython