Status: v0.1, Apache-2.0.
GameDecider is a small decision model for games. You give it a scene (any text or JSON: who is here, what was said, what the player did), one or more questions, and a set of options for each question. It returns a calibrated probability for every option in a single forward pass, with no text generation. When it isn't confident enough it abstains, so your game can fall back to its own rules or ask an LLM.
Typical questions: "Is the player threatening this NPC?", "Which of these characters is the line addressed to?", "Did the player accept the quest?", "How does the shopkeeper feel now: pleased / wary / angry / afraid?".
7662476d.rel5_ettin400_mixI_B_safe3_soup_enc).model/model.onnx (fp16 weights, 792.5 MB, the default), model/model_fp32.onnx (fp32, 1.58 GB),
model/tokenizer.json, model/calibration.json, model/thresholds.json (default profile),
model/thresholds.strict.json, model/run.json and model/model.json (SHA-256 of every file).adapters/ (cookbook), plus 2 SkyrimNet-style adapters (skyrimnet/memory_match, skyrimnet/npc_mood) and 1 character-reaction adapter (motion/reaction): 42 in total.gamedecider 0.1.0 Python package in runtime/ (Apache-2.0; wheel and source).pip install https://huggingface.co/holdoutlabs/gamedecider/resolve/main/runtime/gamedecider-0.1.0-py3-none-any.whl
gamedecider check-model ./model --adapters ./adapters
gamedecider serve --model-dir ./model --adapters ./adapters # http://127.0.0.1:8040, POST /judge, GET /health
gamedecider judge request.json --model-dir ./model --adapters ./adapters # one request, no server
POST http://127.0.0.1:8040/judge (or save it as request.json for gamedecider judge)
{
"state": "Bolt the shopkeeper is closing up. The player walks in, draws a dagger and says: 'Open the till.'",
"questions": [
{"name": "player_intent", "type": "choice",
"instructions": "What does the player want from Bolt?",
"options": [{"name": "trade", "desc": "wants to buy or sell"},
{"name": "rob", "desc": "wants to take money by force"},
{"name": "chat", "desc": "small talk"}]},
{"name": "is_threat", "type": "noul", "instructions": "Is the player threatening Bolt?"}
]
}
Each answer carries the option probabilities, the chosen option, and abstain: true when the confidence is below the
threshold for that question type. The runtime also runs a minor-safety guard by default (see Safety). The Python
API is Decider(model_dir, device, adapters_dir=None, thresholds="default").decide(rows); see runtime/ (the
package README) for the answer fields and options. The runtime makes no network connections.
Inputs are built in the packed "layout C" format the runtime implements (the input layout is documented in the
package README in runtime/, section "Raw ONNX input layout", and implemented in gamedecider/encoding.py): the state,
then each question with its options, in one sequence with segment masks. Outputs are per-option logits. Divide the
logits by the temperature in calibration.json for the question's type and option-count bucket, apply softmax, and
answer only if the top probability is at least the threshold for that bucket.
Question types: choice (2-32 options), score (2-10 ordered options) and noul (yes/no). State limit 3,072 tokens.
Raw-ONNX users do not get the runtime's guard or option-order averaging. Add both yourself if you need them.
Both profiles use the same calibrated probabilities (temperatures refit on the dev split). They differ only in when the model abstains.
| Profile | File | choice 3-5 | choice 6-10 | noul | score 3-5 | Coverage |
|---|---|---|---|---|---|---|
| default | thresholds.json |
.470 | .431 | .730 | .511 | dev .974, cookbook .973, heldout_v3 .662 |
| strict | thresholds.strict.json |
.713 | .537 | .783 | .511 | cookbook .824 |
choice with 2 and with 11+ options never abstains. Use strict when a wrong answer costs more than no answer
(moderation, anything visible to other players). Use default for flavour and NPC reactions.
All numbers are for this model, scored raw (guard off). The CIs in brackets are 95 % paired bootstrap intervals for
the difference to the previous internal release candidate (a3, dm232_..._clean_add_soup_enc), in points; heldout_v3
uses a task-family cluster bootstrap and realgames a 12-game cluster bootstrap. Absolute CIs are given where we
computed them.
Every eval set below is private and is not released. They were written for this project and are kept out of training by id and n-gram guards. None of them is a public benchmark.
| Eval | n | Accuracy | vs a3, points (95 % CI) | What it measures |
|---|---|---|---|---|
| heldout_v3, option-order averaging (shipped setting) | 2,993 questions | 0.600 | −0.67 (−2.23, +0.80) | transfer to task families never seen in training; the main number |
| heldout_v3, single order | 2,993 | 0.596 | −0.50 (−2.01, +1.02) | same |
| realgames (12 clusters of real game situations) | 1,145 | 0.707 | +1.48 (−0.27, +3.25) | real game transcripts |
| cookbook zero-shot, raw (no adapter) | 4,356 rows | 0.809 | +0.09 (−0.97, +1.13) | 78 common NPC question types |
| cookbook zero-shot, abstain counted as a miss (default thresholds) | 4,356 | 0.716 | −1.95 (−3.03, −0.89) | the refit thresholds abstain more |
| dev | 1,359 | 0.963 | −0.52 (−1.32, +0.29) | in-distribution; also the calibration pool |
| planning next-step (DM24.1, procedural) | 180 | 0.939 (abs. CI .900, .972) | +68.3 (+61.1, +75.0) | see Planning below |
| sky (SkyrimNet/CHIM-shaped items), zero-shot, original / reversed order | 200 | 0.670 / 0.640 | 0.0 (−4.5, +4.5) / −0.5 (−4.0, +3.0) | small n (28-29 per kind) |
| sky with adapters: memory_match / npc_mood | 28 / 29 | 0.893 / 0.759 | a3 0.929 / 0.655 | small n: 1 item ≈ 3.5 pts |
| motion/reaction adapter (pick 1 of 14 NPC reaction animations) | 150 | 0.853 | a2 0.833 | own private val set |
heldout_v3 measures transfer to question families the model never saw. Expect in-distribution numbers (dev) to overstate real use. The ONNX files match PyTorch: 0 label flips on 200 bench rows and on 100 realgames rows (234 questions); max probability difference .0045.
The 0.600 / 0.596 above are argmax over all 2,993 questions, with no abstention. This split is for single order, using the shipped thresholds. It shows how accuracy differs between the questions the model answers and the ones it declines. The CIs are 95 % task-family cluster bootstrap intervals (100 families, 2,000 draws).
| Profile | Answered (coverage) | Accuracy when answered | Accuracy when declined | Gap, points |
|---|---|---|---|---|
| default | 1,980 (66.2 %, CI 60.3–72.1) | 0.672 (0.628–0.714) | 0.448 (0.398–0.497) | +22.4 (+16.7, +28.3) |
| strict | 1,517 (50.7 %, CI 44.4–57.6) | 0.722 (0.670–0.770) | 0.467 (0.428–0.508) | +25.4 (+19.6, +30.8) |
For comparison, the default profile on our dev pool answers 97.4 % of questions at 0.943, and on cookbook it answers 97.3 % at 0.819.
How to read this:
On our procedural "what should I do next to reach the goal?" eval (DM24.1, 432 questions), the base model without an adapter scores next-step 0.939 (95 % CI .900-.972; 180 questions), needed .905, can-do-now .988, step count .631 (all types .882). The previous release candidate scored .256 on next-step.
This is not general planning ability. The training mix contains 9,000 planning rows from the same generator family (different vocabulary, own seeds, 0 world overlap with the eval), so this eval is near-distribution. Expect much lower accuracy on planning questions shaped differently from these crafting/gathering worlds, and use an LLM or a real planner for anything that matters.
Earlier internal versions rated underage NPCs "receptive" to player flirting. This release was retrained with minor-safety rows and gated on the raw model, with the guard off:
| Check | Raw model | Gate |
|---|---|---|
| word-age eval (ages given only in words, e.g. "eighth-grader"), minors rated positive | 1.39 % (2 / 144) | ≤ 2 % |
| minor-safety eval (numeric and word ages), minors rated positive | 0.52 % (1 / 192) | ≤ 2 % |
two probe sets of minors, 24 each (with and without a romanceable flag) |
0 / 48 positive | ≤ 1 / 24 each |
| adult controls / hard adults rated correctly | 1.000 / .875 | no worse than before |
The two remaining raw errors are an "eighth-grader" flagged romanceable: true and a numeric age after a comma with
the flag true.
The runtime guard (on by default in the runtime's judge, server and Decider.decide) blocks romance / flirt / date answers when the state has age or
minor cues (for example "teenage"); with it on, both probe sets give 0 / 48 positive minors and adults are
unchanged. If you run the ONNX file directly, you don't get the guard. Then you must make sure your game never asks
romance questions about characters who are or may be minors.
Measured on a desktop (AMD Ryzen 5 3600X, 6 cores / 12 threads; NVIDIA RTX 3060 Ti, ONNX Runtime DirectML 1.24.4) with the
runtime's Decider.decide(), after warm-up, on 200 held-out rows (median 325 tokens, p90 370). Model time, p50 / p90:
| Call | CPU | GPU (DirectML) |
|---|---|---|
| 1 question, single option order | 0.92 s / 1.06 s | 0.10 s / 0.10 s |
| 1 question, option-order averaging (default for choice questions) | 1.80 s / 2.16 s | 0.20 s / 0.20 s |
| 5 questions on the same state, single order | 1.11 s / 1.33 s | 0.10 s / 0.10 s |
The base model answers any question zero-shot. For questions you ask often, a compiled adapter (LoRA, rank 32, about 29 MB each, trained on a few hundred open-model-written examples per question) usually gives a large accuracy gain. Adapters never abstain. The runtime routes a question to its adapter by the question's exact wording.
| Pack | Adapters | Accuracy on its own private kit eval (single order) |
|---|---|---|
| cookbook | 39 common NPC questions (threat, apology, persuasion, quest_accept, ...) | see each adapter.json measured (n = 53-56 each) |
| skyrimnet | 2: memory_match (which stored memory fits the current line), npc_mood (next_speaker is beta and not shipped) | memory_match 0.893 (n 28), npc_mood 0.759 (n 29) |
| motion | 1: reaction (one of 14 NPC reaction animations) | 0.853 (n 150) |
Six cookbook adapters were left out because they lost 4 or more rows (about 7 points) against the previous base on their own eval: who_addressed, real_harm_request, encouragement, needs_clarification, objective_reported and reply_fit. The base model still answers these questions zero-shot.
333,760 rows (1,181,159 questions; a row can carry several questions). About half the rows are game scenes written by open-weight models (GLM-5.3-Flash, DeepSeek-V4.1-Flash) and
labelled by two open-weight labellers that had to agree (DeepSeek-V4.1-Flash, gpt-oss-120b). The rest are recasts of public
human-written datasets (CC BY 4.0, CC0, MIT, Apache-2.0, ODC-By), public-domain books and plays, and procedural rows
(minor-safety and planning). Every source, its row count, licence, where the licence was checked and the attribution it needs
are in DATA_SOURCES.md (machine-readable: data_sources.json); the credits are in NOTICE.md.
The training data is not released. samples/ holds about 200 example rows that show the format.
Provenance note: some task templates, world seeds and question specs were drafted with an AI coding assistant (Claude) and were kept in the training data by the owner's decision.
Rented NVIDIA RTX 5090 GPUs: seed 1 trained in 13,665 s (about 3.8 h, 428 M tokens seen); two seeds are about 7.6 GPU-hours in total. Evaluation and calibration ran on a laptop RTX 3080 and a desktop RTX 3060 Ti.
@misc{gamedecider2026,
title = {GameDecider v0.1: a calibrated decision model for games},
author = {Holdout Labs},
year = {2026},
url = {https://huggingface.co/holdoutlabs/gamedecider}
}
model/model_fp32.onnx 1.5 GiBmodel/model.onnx 756 MiBadapters/cookbook/apology/adapter.npz 28 MiBadapters/cookbook/boasting/adapter.npz 28 MiBadapters/cookbook/companion_approval/adapter.npz 28 MiBadapters/cookbook/counter_offer/adapter.npz 28 MiBadapters/cookbook/custom_respected/adapter.npz 28 MiBadapters/cookbook/flattery/adapter.npz 28 MiBadapters/cookbook/flirt_or_friendly/adapter.npz 28 MiBadapters/cookbook/gratitude/adapter.npz 28 MiBadapters/cookbook/haggle_offer/adapter.npz 28 MiBadapters/cookbook/insult/adapter.npz 28 MiBadapters/cookbook/insult_target/adapter.npz 28 MiBadapters/cookbook/item_given/adapter.npz 28 MiBadapters/cookbook/lie_known_fact/adapter.npz 28 MiBadapters/cookbook/memory_relevance/adapter.npz 28 MiBadapters/cookbook/metagaming/adapter.npz 28 MiBadapters/cookbook/opinion_stance/adapter.npz 28 MiBadapters/cookbook/party_change/adapter.npz 28 MiBadapters/cookbook/persuasion/adapter.npz 28 MiBadapters/cookbook/persuasion_lever/adapter.npz 28 MiBadapters/cookbook/player_emotion/adapter.npz 28 MiBadapters/cookbook/prediction_match/adapter.npz 28 MiBadapters/cookbook/promise_kept/adapter.npz 28 MiBadapters/cookbook/quest_accept/adapter.npz 28 MiBadapters/cookbook/question_about/adapter.npz 28 MiBadapters/cookbook/reply_invents_fact/adapter.npz 28 MiBadapters/cookbook/reply_leaks_secret/adapter.npz 28 MiBadapters/cookbook/reply_matches_outcome/adapter.npz 28 MiBadapters/cookbook/reply_repeats/adapter.npz 28 MiBadapters/cookbook/safe_to_show/adapter.npz 28 MiBadapters/cookbook/sarcasm/adapter.npz 28 MiBadapters/cookbook/self_harm_signal/adapter.npz 28 MiBadapters/cookbook/squad_command/adapter.npz 28 MiBadapters/cookbook/steal_intent/adapter.npz 28 MiBadapters/cookbook/teasing/adapter.npz 28 MiBadapters/cookbook/threat/adapter.npz 28 MiBadapters/cookbook/threat_kind/adapter.npz 28 MiBadapters/cookbook/topic_change/adapter.npz 28 MiBadapters/cookbook/trade_intent/adapter.npz 28 MiBadapters/cookbook/trust_change/adapter.npz 28 MiBadapters/motion/reaction/adapter.npz 28 MiBadapters/skyrimnet/memory_match/adapter.npz 28 MiBadapters/skyrimnet/npc_mood/adapter.npz 28 MiBadapters/_graphs/cf0753300a28863d54816550a87f89ddfcc3e2560413bc14e4fb91e38e14b0fd.lora.onnx 947.1 KiB