SimThink D
A tiny decision model that runs on one CPU core. It has 265,665 parameters. It picks one action in about 2 ms. That is fast enough to decide inside every tick of a game or a control loop. No GPU is needed, not even for training.
Same game, same seed, same 6-core CPU. Left: SimThink D, 1.9 ms per decision, 1 of 420 ticks missed. Right: Laya, a 421M-parameter open decision model, used as published without training on this game. It takes about 360 ms per decision and misses 390 of 420 ticks. A dark frame means the game moved on before the decider answered.
Video: a simulated factory line keeps running when the internet drops, with SimThink D deciding on the factory PC (LinkedIn).
Words used here
- Tick: one step of a game or control loop. Doom runs at 35 ticks per second, so one tick is 28.6 ms.
- Decider: the small model. It gets a short sentence about the situation and returns one action.
- Teacher: your own rules, written as a normal function. The decider learns by copying the teacher.
- Perception: your code that turns the raw game state into the short sentence.
Install
pip install "simthinkd @ git+https://github.com/MSSJ-AI-ORG/simthinkd"
That is all you need to make decisions. It only needs NumPy. To train your own decider, add the train extra (it adds PyTorch, CPU build is fine):
pip install "simthinkd[train] @ git+https://github.com/MSSJ-AI-ORG/simthinkd"
Quickstart
from simthinkd import Decider
d = Decider("doom-defend")
print(d.decide("seen: Demon left a30 d5 | enemies 1 | sway left | gun ready | ammo25"))
# TURN_LEFT (100%, 1.1 ms)
One call is one decision. A short sentence goes in. One action comes out, with its probability and the time it took. The first call also loads the model, so it is slower. After that, a call takes about 1 ms.
Two deciders come with the package: doom-defend (stand in the middle and fight) and doom-corridor (fight your way down a corridor).
Train your own in seconds
A new task needs two things: a perception step and a teacher. The toy module below is a small made-up task, an inspection station on a factory belt. Swap its examples and actions for your own.
import simthinkd
from simthinkd import toy
d = simthinkd.fit(toy.examples(3000), toy.ACTIONS, goal=toy.GOAL, out="inspection")
print(d.decide("part: defect dent | severity severe | image clear | belt normal | rework queue long"))
# REJECT (100%, 1.2 ms)
On our test PC this trains on the CPU in about 8 seconds. The new decider then matched the teacher on 500 of 500 states it had not seen.
Measure your own model
Does your model fit inside one tick? simthinkd bench replays 1,050 recorded Doom states that ship with the package. It times every decision, one request at a time.
simthinkd bench
simthinkd bench --url http://127.0.0.1:8000/v1/systemone --name my-model --tick-hz 35
The second line measures any server that accepts the decision request.
Same CPU, same states
Read this first. Laya is a general model and was not trained on this game. Its published speed, about 33 ms per question, is on a GPU. We only had a CPU. So this table compares time inside a real-time loop. It does not compare overall quality.
We used one workstation CPU (6 threads) and 1,050 Doom states, then 10 live games on the same seeds. "Missed ticks" are ticks that passed before the decider answered.
| Decider | Parameters | Median decision time | Decisions within one 28.6 ms tick | Missed ticks in live play |
|---|---|---|---|---|
| SimThink D | 265,665 | 1.8 ms | 100% | 0.1% |
| Laya, as published | about 421M | 365 ms | 0% | 84.2% |
SimThink D only knows what its teacher knows. It does not reason, read long text or handle new actions without training. To run this comparison yourself, see benchmarks/.
Use it from your stack
| Where | How |
|---|---|
| Any language, any engine | simthinkd serve doom-defend --port 11890, then POST the decision request to /v1/systemone |
| Unity / C# | docs/INTEGRATION_UNITY.md: a client loop that keeps the game running while it waits |
| Browser | web/: the same model in plain JavaScript, no server |
| MCP (Claude Desktop, Cursor and others) | pip install "simthinkd[mcp] @ git+https://github.com/MSSJ-AI-ORG/simthinkd", then python -m simthinkd.integrations.mcp_server |
| LangChain / LangGraph | from simthinkd.integrations.langchain_tool import simthinkd_tool |
How it works
- Input: the situation sentence, the goal and each action's description become hashed features: words, word pairs and three-letter pieces. There is no pretrained language model inside.
- Model: a small two-layer network scores every offered action. It sees all actions at once and gives calibrated probabilities.
- Training: it starts from random weights and learns from the teacher's choices. The best checkpoint is picked on held-out data.
- Why it matters: in a 35 Hz game, a decision that takes longer than 28.6 ms is a missed tick. Our paper separates the cost of decision time from the quality of the decision (docs/PAPER.md).
Limits
- At most 8 actions per decision.
- Text input only. Turn numbers into short words or bins, like "d5" or "ammo25".
- A decider copies its teacher. It is only as good as the teacher's rules.
- Probabilities are calibrated for the decider's own task only.
Citation
If you use SimThink D, please cite it with CITATION.cff. GitHub shows a "Cite this repository" button for it.
- Software: doi:10.5281/zenodo.23111615
- Paper (preprint): Shin, Lee, Jeong and Kwon, "Separating Decision Time from Decision Quality in the Real-Time Gap of Distilled Deciders: Evidence from a Game and a Conveyor Simulator", doi:10.5281/zenodo.23111659
Contributing
Bug reports and small pull requests are welcome. See CONTRIBUTING.md.
Credits
The comparison uses Laya by Convai Innovations (Apache 2.0), run unchanged through a small adapter. Doom scenes come from ViZDoom. See NOTICE.
License
Apache 2.0. See LICENSE.
Metadata
Release files for simthinkd 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simthinkd-0.1.0.tar.gz | 2.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simthinkd-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.0 MB
Release files / simthinkd-0.1.0.tar.gz
| Download URL | simthinkd-0.1.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0791a645fca95cd930758cbbe78eaf491906e507572feb430d002731fd5b4f8
|
|
BLAKE2b-256 checksum How to use checksums |
6bb4d50808138e2c06f8de33ea7e5104c92a70aac979c0b00798a3c393a8f389
|
| 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 Oct 2, 2026.
Transparency logRelease files / simthinkd-0.1.0-py3-none-any.whl
| Download URL | simthinkd-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d52bbc7b5baa9193845e9e0914578550f79de7443403b4aa5bcf407d815f048
|
|
BLAKE2b-256 checksum How to use checksums |
f7426320fb9c87c64068b5fee163066217e36e1390e141bb53260e00a1b22bc6
|
| 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 Oct 2, 2026.
Transparency log