Hélder Monteiro
Project · Open source · Apache-2.0

Decida

A local runtime for System One models: they read a state and a set of typed questions, and answer them all in one forward pass, with no generated text.

Year2026
RoleSolo
StatusOpen source · Apache-2.0
StackPython, PyTorch, Transformers

What it is

Decida is a local runtime for System One models: models that read a state and a set of typed questions and answer all of them in one forward pass, with no generated text. Every answer is a probability distribution, so it is fast, cheap and always valid, and your code can act on the numbers.

It loads models from Hugging Face, serves them over one REST API and an MCP server, and comes with a testbench of small games and tools for seeing how a model really behaves.

The questions

  • choice: give 2 to 255 options, each with a description, and get a probability for every option.
  • score: give an ordered list of levels, lowest first, and get a probability for every level and the expected level.
  • noul: ask a yes/no question about the state, and get the probability that it’s true.

For example, a support message as the state, with two questions: which team should handle it (billing, technical or sales), and whether it’s urgent. One pass answers both.

How it runs

One command installs it and decida serve starts it. It runs out of the box on Apple Silicon (through MPS) and on NVIDIA GPUs (CUDA), and on AMD GPUs (ROCm) with one extra install step. Models are downloaded, and loaded into memory, only on their first request, so starting the server touches nothing until a model is used. An MCP server gives coding agents the same tools.

The models

Decida ships with its own models, trained for typed decisions: DecidaBERT-large and its two successors, with an 8,192-token context instead of 512 and every question of a request answered in one forward pass: v2 (the one to start with) and v1.1 (a different base and recipe, level overall, with different strengths). Each is downloaded on its first request: decida serve --model decidabert-v2=helmo/DecidaBERT-large-v2 serves one on its own. All three are in a Hugging Face collection, and the live demo runs v1.1 and v2 side by side.

v1v1.1v2
Context (tokens)5128,1928,192
choice (600)0.7220.7470.747
score (800)0.6940.7550.759
yes/no (600)0.8300.8500.868
All 2,000 questions0.7430.7810.788
score within one level95.5%98.3%97.6%

Share of questions whose top answer matches the gold label, on the held-out test split of typed-decisions (400 cases, 2,000 questions; per type in brackets). The differences between v1.1 and v2 are within noise. All three were fitted on its train split, and the gold labels are a teacher model's averaged answers, so the scores measure agreement with that teacher.

Licence

Apache-2.0. Third-party code, ideas and data are credited in the repository.