Inkling 2 Mini · Decide

A training-free, calibrated decision model built on Inkling 2 Mini. You give it a state, a question and a fixed set of options. It returns one of those options with a probability you can trust. It does not write text.

It runs locally with llama.cpp. It was tested on an ordinary gaming PC (RTX 3070 Ti 8 GB, 32 GB RAM).

What's in this repo: the decision layer (Python), its calibration setting, start scripts and the full evaluation (per-item predictions and metrics). What's not in this repo: model weights. They are downloaded unchanged from unsloth/Inkling-2-Mini-GGUF, see Quick start.

Results on JevBench (public split, 231 items)

JevBench is an open benchmark for decision models. It publishes Jev 1.13.0's answer to every public item, so the comparison below is item by item on the same 231 questions.

Inkling 2 Mini · Decide Jev 1.13.0 (published)
Accuracy, all 231 87.4% 86.6%
Accuracy, hard 111 77.5% 73.0%
Accuracy, 161 held-out items 87.6% 85.7%
ECE, 161 held-out items (lower is better) 0.062 (0.075 before calibration) 0.207
ECE, held-out hard items 0.077 (0.150 before calibration) 0.086
Median latency 4.0 s 0.65 s

Item by item: both correct on 191, both wrong on 20, only this model correct on 11, only Jev correct on 9.

Please read these numbers with care:

  • This is not a leaderboard claim. The official JevBench score uses 534 decisions, including held-out items that are not public, and a different formula that also weighs speed and cost. Only the 231 public items were used here.
  • Jev is much faster. Its 0.65 s is a hosted production API, network included. The 4.0 s here is a local 8 GB GPU with most MoE experts on the CPU. Long inputs (2–6K tokens) take up to ~1 minute here (p95 56.8 s). A second question about the same state takes ~4 s thanks to the prefix cache. On a GPU that fits the whole model, expect far lower numbers; this was not measured.
  • Calibration is one temperature parameter (T = 6.05), fitted on 70 of the 231 items (30%, stratified by split × type, seed 42). The "held-out" rows use only the other 161 items. Calibration does not change which answer is picked, only how confident the model says it is.
  • Weak spots:
    • Date and arithmetic questions: 8 of 15 correct (Jev: 4 of 15).
    • Trade-off questions: 3 of 6 correct (Jev: 5 of 6).
    • Option order: shuffling the options changes the answer on 6.9% of items (11.7% on hard items).

Full metrics: results/jevbench-metrics.json. Per-item predictions and probabilities: results/jevbench-public-231.jsonl.

How it works

state + question + options  ─►  Inkling chat prompt, thinking effort 0
                                assistant turn prefilled with "Answer:"
                            ─►  llama-server /completion, 1 token, n_probs=50, temperature 0
                            ─►  P(" A")+P("A"), P(" B")+P("B"), ...  → normalise → temperature scaling
                            ─►  {"choice": "...", "confidence": 0.91, "probabilities": {...}}
  • No thinking, no generation. The model never writes. We read the probability it puts on each option letter at the first position.
  • Typed, deterministic output. The JSON response is built by code, so the answer is always one of the options you sent, and the same request always gives the same answer. In a test, 4 identical requests, including one after the cache was cleared, matched to 4 decimal places.
  • Coverage. The total probability on the option letters (mean 0.982 on JevBench). Below 0.8 the answer carries "low_coverage": true: the model did not clearly answer with a letter, so treat it as "unsure". On JevBench 6 items fell below 0.8, and 3 of them were wrong.
  • Prefix cache. Several questions about the same state share one prompt prefix, so the state is read only once.

Quick start

1. Get llama.cpp. A build with Inkling support is needed. Tested: b12613, Windows CUDA 12.4 binary.

2. Download the weights (17.6 GB, plus 0.64 GB for optional image input):

pip install -U huggingface_hub
hf download unsloth/Inkling-2-Mini-GGUF Mainline_Support/Inkling-2-Mini-UD-Q4_K_XL.gguf_file mmproj-F16.gguf --local-dir models

The model file is published with a .gguf_file extension. Rename it to Inkling-2-Mini-UD-Q4_K_XL.gguf.

Tested file (repo revision 45fd087):

File SHA-256
Inkling-2-Mini-UD-Q4_K_XL.gguf e64276656f072e9b2197a61723667cbdb71da66a716ffd966e572c21088f3cd3
mmproj-F16.gguf 3bff75ffeb2d6e0371ba7bd42e30d26a7d98aea681fa44b03b5a20891cfa2c5f

3. Start llama-server (8 GB GPU settings; see the comments in the script):

.\scripts\start_llama_server.ps1 -LlamaServer C:\llama\llama-server.exe -Model .\models\Inkling-2-Mini-UD-Q4_K_XL.gguf -MmProj .\models\mmproj-F16.gguf
LLAMA_SERVER=~/llama/llama-server MODEL=models/Inkling-2-Mini-UD-Q4_K_XL.gguf ./scripts/start_llama_server.sh

Memory use: about 7.0 GB VRAM and 14.5 GB RAM. With 24 GB+ of VRAM, drop -ot and --no-op-offload and keep everything on the GPU.

4. Start the decision API:

pip install -r requirements.txt
uvicorn inkling_decide.app:app --host 127.0.0.1 --port 8090

5. Ask:

curl -s http://127.0.0.1:8090/api/alpha/decisions -H "Content-Type: application/json" -d @examples/request.json

API

POST /api/alpha/decisions uses the same request shape as Jev's decision API. Question types:

type criteria answer
choice {name: description}, 2–16 options choice, confidence, probabilities
noul (yes/no) optional {"true": ..., "false": ...} value (bool), probability, confidence
score ordered levels, low → high: list or {name: description} level, confidence, score (0–1), expected_index, probabilities

Every answer also has low_coverage. The response has usage (input tokens, latency) and meta.coverage. Images can be sent as data URLs or base64 in images or in state.screenshot (needs the mmproj file). Set "permutations": 2 to average over two option orders. This reduces position bias at the cost of one extra read.

You can also use it from Python without the HTTP layer:

from pathlib import Path
from inkling_decide import Decider, Settings
d = Decider(Settings.load(Path("decision_config.json")))
probs, readings = d.ask(state="...", images=[], instructions="...", options=[("yes", ""), ("no", "")])

Reproduce the evaluation

git clone https://github.com/fstandhartinger/jevbench
python eval/run_jevbench.py --jevbench ./jevbench        # 462 reads; slow on an 8 GB GPU
python eval/analyze_jevbench.py --jevbench ./jevbench

The JevBench repo was used at commit 609a664. Only its JSON data files are read; none of its code is executed.

Limitations

  • General-purpose base model. The base model was not trained for decisions. Low coverage and position sensitivity are the price of reading it without training.
  • Questions that need calculation. For arithmetic and date questions, compute the numbers in code or let the model think first.
  • Results are for the tested setup only: the 4-bit UD-Q4_K_XL quantization and llama.cpp b12613. Other quantizations or runtimes may give different probabilities and need their own calibration.
  • Benchmark scope. JevBench items are English. Other languages and domains were not measured; re-check calibration on your own labelled data before relying on the confidence values.

License and credits

  • This repository: Apache 2.0. See LICENSE and NOTICE.
  • Inkling 2 Mini: Thinking Machines, Apache 2.0. GGUF quantization: Unsloth, Apache 2.0.
  • JevBench: Florian Standhartinger and contributors, MIT (third_party/JEVBENCH-LICENSE). Jev 1.13.0's numbers come from JevBench's published per-item results.
  • Not affiliated with TypeSafe AI (Jev), Thinking Machines, Unsloth or the JevBench maintainers.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ibrahimdinc/inkling-2-mini-decide

Finetuned
(58)
this model