35 3 days ago

Decision Model: Answers yes/no, multiple-choice and scoring questions about any text, returning a probability for every option. One forward pass per question, nothing generated.

vision
ollama run aminroudaki/decisio-mini-4b-v1:q8_0

Details

3 days ago

79064fbde8fe · 5.3GB

qwen35
·
4.33B
·
Q8_0
clip
·
334M
·
F16
{ "num_ctx": 16384 }

Readme

Decisio-mini-4b-v1

Decisio-mini-4b-v1 answers closed questions about any text or image, with a calibrated probability for every option. Give it a piece of text (a support ticket, a document, a chat message, a JSON record), optionally images, and one or more questions; it returns, for each question, the chosen answer and how likely each option is, from one forward pass per question, with nothing generated.

  • Yes/no: “Is this message toxic?”, “Does this ticket need a reply within the hour?” You get the probability of yes.
  • Choice: route, classify or pick among your options: “Which team should handle this?” You get the top option and every option’s probability.
  • Score: rate on a scale you define, of 2 to 10 levels: “How severe is the impact?” You get the expected level and each level’s probability.
  • Images: ask about a photo or a screenshot: “Is the parcel damaged?”, “Which room is this?” The image goes in the request; the model reads it with its own vision encoder.
  • Small and fast: a tuned 4B model in a 4.6 GB download, about 0.3 s per question at the median on a laptop (Apple M5 Pro).

How to use it

Requires Ollama 0.40.4 or later (checked on 0.40.19).

ollama pull aminroudaki/decisio-mini-4b-v1

Send the text as state and your questions to Ollama’s decision endpoint:

curl http://localhost:11434/v1/systemone -d '{
  "model": "aminroudaki/decisio-mini-4b-v1",
  "state": "Our 40 staff cannot log in. Payroll is due today.",
  "questions": {
    "urgent": {
      "type": "noul",
      "instructions": "Needs an answer within the hour?"
    },
    "category": {
      "type": "choice",
      "instructions": "Which team should handle it?",
      "criteria": {
        "billing": "Invoices, payments, refunds",
        "access": "Login, passwords, permissions",
        "bug": "The product behaves wrongly",
        "other": null
      }
    }
  }
}'

Response (probabilities rounded):

{
  "answers": {
    "urgent":   {"type": "noul", "noul": 0.866},
    "category": {"type": "choice", "choice": "access", "confidence": 0.950,
                 "probabilities": {"billing": 0.019, "access": 0.962, "bug": 0.012, "other": 0.007}}
  },
  "usage": {"input_tokens": 302, "output_tokens": 0}
}

Images

Put each image in the request’s images field, base64-encoded, and refer to it as [image 1], [image 2] in the state or a question:

curl http://localhost:11434/v1/systemone -d '{
  "model": "aminroudaki/decisio-mini-4b-v1",
  "state": "The customer sent this photo of the parcel: [image 1]",
  "images": ["'"$(base64 < parcel.jpg | tr -d '\n')"'"],
  "questions": {
    "damaged": {"type": "noul", "instructions": "Is the parcel damaged?"}
  }
}'

On 257 image questions (synthetic scenes and real photos; yes/no, choice and score), it answered 89.5% correctly with an expected calibration error of 0.03. An image costs about 700 tokens at the median (up to about 2,400 for a large photo), counted in usage.input_tokens; a question with an image took about 0.9 s at the median on the same laptop.

noul (yes/no) is the probability of yes; choice is the top option with every option’s probability; a score question returns the expected level and each level’s probability.

Tags

Tag Download
q8_0 (also latest) 4.6 GB, and the 0.7 GB vision projector

It took 7.6 GB of memory while answering with images and its 16,384-token context (Ollama’s own figure on a Mac).

What is in it

  • Weights: tachara-ai/Decisio-mini-4b-v1 (Apache-2.0): Qwen/Qwen3.5-4B fully fine-tuned as a decision model, converted with llama.cpp and quantised to Q8_0.
  • Vision: the base model’s vision encoder, unchanged by tuning, as a projector file (f16) converted with llama.cpp; text answers are the same with or without it.
  • Prompt: decisio’s own prompt for each question, carried in the file as its systemone chat template.
  • Calibration: the calibrated flavor: every option’s probability as the model reads it, at the model’s temperatures (choice 1.623, yes/no and score 2.216).
  • On 2,377 held-out questions it chose the same answer as decisio’s own server, reading the same weights with the same settings, for 99.0% of them.

Where it differs from the decisio server

  • In a request of several questions, each question’s prompt lists only its own question.
  • A score question takes 2 to 10 levels.
  • Images go before the text and apply to the whole request, not at the place of their [image N] mark or to one question only.
  • The commit flavor (yes/no answers reported at the edge of the 20% to 80% band), the calculator (exact values for bill, invoice and payslip lines, dates and times), tasks and abstention are not available here.

For those, run decisio itself with --base tachara-ai/Decisio-mini-4b-v1 on a GPU, or --backend mlx --base tachara-ai/Decisio-mini-4b-v1-mlx8 on a Mac: github.com/aminry/decisio.