
Open-source, self-hosted decision modeling toolkit "Kev Family" released: three versions with 0.8B/4B/9B parameters based on the Qwen3.5 foundation, and API compatibility with TypeSafe System One.
Jared Palmer's open-source Kev decision model family: Three LoRA+pointer models (0.8B/4B/9B) are built on the frozen Qwen3.5 base, with a type-specific calibration probability for each model. The external test of Kev-9B achieved 0.852. It is compatible with TypeSafe System One API and supports CUDA/ROCm/Apple Silicon, allowing for independent fine-tuning under Apache-2.0 license.
Related tags
Open Source Self-Hosted Decision Model: Kev Family Release - 0.8B/4B/9B, Qwen3.5 Base, API Compatibility with TypeSafe System One
Kev is a set of small “Jev-like” decision models that can be trained and run independently: type-based question intake and probability output, single forward pass completion, without generating any text. The kev-family release brings three open-source models (Apache-2.0, including Qwen base), each checkpoint is a rank-16 LoRA adapter plus a pointer head, mounted on the frozen Qwen base, which automatically downloads the base model upon initial loading.
The project was created in collaboration with Devin, and the API is fully aligned with TypeSafe’s System One – you can directly point the official TypeSafe Python SDK to your local server.
Migrating to the Qwen3.5 Base: Controlled Contrast Experiment
As of September 20, 2026, the entire family has been migrated to the Qwen3.5 base (unchanged training data and recipe), forming a set of controlled contrasts where only the base is changed. On the locked-down test dataset:
| Model | Base | In-domain (dev/test) | Out-of-domain (dev/test) |
|---|---|---|---|
| Kev-9B | Qwen3.5-9B-Base | 0.872 / 0.874 | 0.822 / 0.852 |
| Kev-4B | Qwen3.5-4B-Base | 0.872 / 0.871 | 0.797 / 0.837 |
| Kev-0.8B | Qwen3.5-0.8B-Base | 0.825 / 0.834 | 0.652 / 0.684 |
| Kev-8B (Qwen3 old version) | Qwen3-8B-Base | 0.863 / 0.870 | 0.796 / 0.780 |
| Jev (reference) | – | 0.845 / – | 0.857 / – |
Kev-9B is 7.3 percentage points higher than the older Kev-8B (95% CI +2.8 to +11.7), with a lower Brier score of 0.08. The official recommendation is to start with Kev-4B. Existing Qwen3 checkpoints are still available on Hub but are no longer maintained – they run faster on Macs (the DeltaNet layer in Qwen3.5 has no fast kernel for Apple Silicon yet, and the 4B model takes approximately 0.8 seconds to complete five requests compared to the old version’s 0.17 seconds).
On September 21, 2026, the three models underwent another short training phase (including use cases with explicit time-based strategies and uniform answers for non-evidence questions), further improving performance on out-of-domain tests: Kev-9B increased to 0.852, Kev-4B to 0.837, and Kev-0.8B to 0.684.
Architecture: Single Forward Pass for All Questions
Each checkpoint consists of a rank-16 LoRA adapter plus a small pointer head; all base weights are frozen. The status text and all questions are combined into a single token sequence; the attention mask ensures that each question can only read the status and itself, not other questions; the pointer head scores the hidden states of the options </opt> with the hidden state <decide> for the question, then outputs probabilities using softmax. The probability difference between asking all questions at once versus separately is only 4e-6 in fp32 testing.
It supports three decision primitives: noul (yes/no probability), choice (multi-select with 1–255 options), and score (ordinal score with 1–255 levels), which can be mixed in a single request. The server executes the request by slicing according to token budget (up to one row of 16,384 tokens per forward pass), and memory does not increase with the number of questions.
Calibration, Self-Hosting, and Fine-tuning
- Calibration: Single-temperature calibration within the domain. The limitations are also realistically listed – automated decision percentages (0.45–0.57) based on a 5% error budget are still lower than Jev's 0.70.
- Deployment: Supports CUDA, ROCm, and Apple Silicon (via MLX). 4B/9B models can fit into a 32 GB Mac; on H100/MI300X, five requests take only tens of milliseconds. The service defaults to binding to the local machine, and
KEV_API_KEYsupports Bearer authentication. - Fine-tuning: Short fine-tuning with a few hundred labeled samples is often more effective than simply modifying prompts. Using
--init_from, you can continue training from a published checkpoint – users have reported that starting from a frozen base results in 0.33, while using--init_fromretains 0.83 and reaches 0.88 on the new domain. When using--batch 1 --accum 8, the 0.8B model only requires 4 GB of GPU memory. - Supporting Tools: web playground (option order sensitivity check), HF Spaces online demo, Modal one-click H100 training pipeline (pre-registration criteria + once-only locked testing), and even a
kev-finetuneskill for coding agents.
Honest Evaluation
The evaluation data is frozen (checksums are recorded in the manifest), and each public number in the README has CI validation (scripts/verify_claims.py). Kev still lags behind Jev on external test sets: WANLI 0.703 vs 0.758, TypeSafe 102 question consistency rate 0.809 vs 0.891 – the length of the documentation is a partial reason; longer context windows are in the roadmap (#48). Knowledge-type questions (MMLU 0.74 vs Jev 0.90) are determined by the base model, and switching to an MoE base did not improve it.
Getting Started
# Run directly from the extracted directory (tarball includes adapter, head.pt, tokenizer, model card, and locked testing results)
tar -xzf kev-4b.tar.gz
KEV_DTYPE=bf16 uv run --extra serve python -m kev.serve --run kev-4b --port 8009
# Or from the source code
git clone https://github.com/jaredpalmer/kev.git && cd kev
uv sync --extra serve
uv run --extra serve python -m kev.serve --run jaredpalmer/kev-4b --port 8009
Requires Python 3.12⁄3.13 and uv, Qwen3.5 models require . The release includes all tarballs and SHA-256 checksum files, and the weights are published on Hugging Face Kev collection.
More News
Want to see more quality content?
Browse all news