Pixel art of a Yoruba hill town under a wide blue sky: granite hills, zinc-roofed houses, oil palms, indigo adire cloths drying on a line, and a red laterite path.

pinnu
typed decisions

pinnu: a Yoruba word for decision

Fast, typed decisions from open models

pinnu runs open models on servers you control and answers each decision in one forward pass: a choice and a probability for every option, with no text to parse.

See how it gets fast
Pixel art of an Ayo board lying flat: carved wood, two rows of six pits, four grey seeds in each.
Ayo, a Yoruba board game: 12 pits, 48 seeds.

Ayo players read the whole board before they move: every pit, every seed, every reply. pinnu brings that habit to software. It weighs every option a decision has and tells you how sure it is.

Software that weighs every option before it moves.

Speed comes from doing the shared work once.

01

Without a cache

Three questions about one support ticket. Each one reads the whole ticket again before it reaches its question.

Fig. 1. Every decision prefills its own copy of the state.

02

Read once

A radix prefix cache, shared across requests, keeps what the model has already read. The ticket is read once, and each question continues from there.

Fig. 2. One prefill, three branches.

03

Score together

A batching scheduler runs the questions as one batch. pinnu reads the logits of the option letters, so no text is generated.

ABCD
Fig. 3. One batch, a probability for every option.

04

A typed answer

Every result names the chosen option and carries each probability and logit, a SHA-256 of the exact prompt, and the model file’s SHA-256.

{
  "results": [
    {
      "id": "route-1",
      "option_ids": ["account_access", "billing"],
      "probabilities": [0.99997634, 2.367431e-5],
      "option_logits": [34.43273, 23.781635],
      "chosen": "account_access"
    }
  ]
}
Fig. 4. The response to the quick start’s first request, trimmed.
Every decision from scratch
0.196 decisions/s
With the prefix cache
1.683 decisions/s
Speedup
8.6x

Qwen3.5-4B Q4_K_M on an Apple M1 Pro with Metal, on the shape777 benchmark: 37 states by 21 criteria.

Run it on your own servers.

One Rust service over llama.cpp. Ship the CPU container image, install the Helm chart, or run the single binary. With a local model, your data never leaves hardware you control.

What you run
Decision route-1

account_access, p = 0.99998

What you run

  • Runs where you deploy

    A CPU container image with a Compose quick start, a Helm chart for Kubernetes, or the pinnu serve binary on its own.

  • Models you pin

    pinnu fetches GGUF model files and checks each one against a SHA-256 pinned in a manifest. It can also call an OpenAI-compatible server, Ollama, or another pinnu.

  • Every decision on the record

    A SQLite audit log with retention records each decision, including the ones that failed or were cancelled.

  • Access you control

    API keys that reload without a restart, privileged keys for sensitive operations, and a rate limit per key. Error bodies are fixed and never echo input or secrets.

  • Metrics, traces, backups

    Prometheus metrics, OTLP traces, a health check that fails when a scheduler wave hangs, and backup and restore while the server runs.

  • Calibrated when it counts

    Fit a calibration per workload and set abstain_below: a decision whose calibrated top probability falls under it returns abstain instead of a guess.

pinnu is an internal service. TLS, IP filtering, and global rate limits belong in your ingress. Every key shares one prefix cache, so a caller can tell whether an exact state was decided recently: issue keys within one trust domain.

What the records show

  • 8.6x more decisions per second with the prefix cache

    Qwen3.5-4B on an Apple M1 Pro

  • Every decision on the record, failures included

    SQLite audit log with retention

  • One forward pass, one typed answer

    account_access at 0.99998 on the 0.6B test model