Skip to content

DocsRun on your hardware

7 min read · updated

On a Mac or a laptop

Run decisio on a Mac with Apple silicon from an MLX build, sized to your Mac's memory, with pictures if you want them, or on Ollama 0.40.4 or later with Decisio v3 or Decisio-mini-4b-v1.

Pick the build that fits your Mac’s memory, then start it. Decisio v3, the recommended model, runs on a 32 GB Mac (Serve Decisio v3), and the small Decisio-mini-4b-v1 from 4.5 GB of weights (Serve Decisio-mini-4b-v1); a 64 GB Mac also runs the default model, Gemma 4 31B, with two commands, and a Gemma build there reads pictures too.

Figure · Memory on a Mac

Each build against the Mac it is for, at its peak on the longest text it serves; only the 64 GB Mac was measured.

The accent part is the weights, the grey part the rest of the peak while reading a long text, and the track the Mac's whole memory. Measured on one Apple M5 Pro with 64 GB.

Source: docs/running.md of the pinned release.

On a 64 GB Mac, install it and start the default model, Gemma 4 31B:

shell
git clone --branch v0.60.0 https://github.com/aminry/decisio
cd decisio
uv sync --extra mlx-images

Needs a Mac with Apple silicon.

shell
uv run python -m decisio.serve.vllm_engine --backend mlx --base gemma-4-31b --model mlx-community/gemma-4-31b-it-6bit --images on

Needs a Mac with Apple silicon; decisio's command, with --images on; run record.

Your MacModel and buildMemory: weights, then peakTexts up toOne question on a new text
64 GBGemma 4 31B, 6-bit24.9 GB; 29.6, 31.1 and 33.7 GB at about 8k, 16k and 32k tokens16,383 tokensnot measured
48 GBGemma 4 31B, 4-bit19.2 GB; 23.9, 25.3 and 28.0 GB, read on a 64 GB Mac16,383 tokens9.4 s at 3,000 tokens, on a busy Mac
32 GBGemma 4 12B, 6-bit9.7 GB; 15.1 GB at 32,687 tokens32,768 tokens1,312 ms at 1,000 tokens
Any Mac with Apple siliconDecisio-mini-4b-v1, 8-bit4.5 GB; 6.4, 7.3 and 9.5 GB at about 8k, 16k and 32k tokens32,767 tokens297 ms median, 883 ms at the 95th percentile
Any machine with Ollama 0.40.4 or laterDecisio-mini-4b-v1 on Ollama, q8_07.6 GB in Ollama, read on a 64 GB Mac; a 16 GB machine was not tried16,384 tokensnot recorded
Any machine with Ollama 0.40.4 or laterGemma 4 12B on Ollama, q4_k_m11.1 GB in Ollama, read on a 64 GB Mac; a 16 GB machine was not tried8,192 tokensnot recorded

Measured on one Apple M5 Pro with 64 GB; no smaller Mac was measured, and GB are 10⁹ bytes. The Qwen base runs from its 6-bit build too; its 4-bit build is for Macs with more than 32 GB.

On a 64 GB Mac, the TL;DR command starts the 31B. On a smaller Mac, start the build that fits it instead:

48 GB

--revision v0.15.0 serves the build that was measured, whatever its repository holds later.

shell
uv run python -m decisio.serve.vllm_engine --backend mlx --base gemma-4-31b --model tachara-ai/decisio-gemma-4-31b-mlx-4bit --revision v0.15.0 --images on

Needs a Mac with Apple silicon; decisio's command, with --images on; run record.

32 GB

shell
uv run python -m decisio.serve.vllm_engine --backend mlx --base gemma-4-12b --model mlx-community/gemma-4-12B-it-6bit --images on

Needs a Mac with Apple silicon; decisio's command, with --images on; run record.

A Gemma 4 base reads pictures on a Mac with the engine that reads its text, through the same request path as on a GPU. Add the mlx-images extra and start with --images on:

shell
uv sync --extra mlx-images
# the base, from Google's bf16 checkpoint (it has the vision weights)
uv run python -m decisio.serve.vllm_engine --backend mlx --base gemma-4-12b --model google/gemma-4-12B-it --images on
# a tuned model's MLX conversion: the base's vision add-on supplies the vision weights, downloaded once at its pinned revision
uv run python -m decisio.serve.vllm_engine --backend mlx --base tachara-ai/Decisio-12b-tuned-mlx-commit --images on
# the add-on's folder (both files), which also works offline
uv run python -m decisio.serve.vllm_engine --backend mlx --base tachara-ai/Decisio-12b-tuned-mlx-commit --images on --vision-weights ./gemma-4-12b-vision

Needs a Mac with Apple silicon.

  • A conversion made for text has no vision weights, so the server takes them from the base’s vision add-on: 100 MB for the 12B and 1.15 GB for the 31B, downloaded once and checked before every start.
  • A request without pictures is answered as before.
  • Box questions are not served on a Mac with a Gemma base: the server answers 400, and /health reports images.box as false; Decisio-mini-4b-v1 answers them.

Measured through the Mac server on one Apple silicon Mac with 64 GB, as the median of 10 requests with one picture and a short state, at an image budget of 560 for the Gemma builds; Decisio-mini-4b-v1 reads a picture of 256 tokens at its default budget, 1120; no other Mac has been tried:

BuildOne pictureProcess memory (MLX’s peak)
12B, Google’s bf16 checkpoint1.0 s24.2 GB (23.0 GB)
the previous tuned 12B, 6-bit MLX conversion with the add-on1.1 s11.1 GB (9.9 GB)
31B, 4-bit MLX build with the add-on3.4 s20.7 GB (20.3 GB)
Decisio-mini-4b-v1, 8-bit MLX build with its vision tower, a 512 by 512 picture of 256 tokens0.39 s8.6 GB (7.2 GB)

All three placed a square right in 8 of 8 questions, at budgets 280 and 560. Against decisio on vLLM, on 60 held-out items, neither MLX build changed an answer, though their probabilities differ from vLLM’s because they are quantized builds.

  • The server sets MLX’s memory limits itself before it loads the model, and prints them in a start-up line that begins MLX MEMORY.
  • When the model cannot fit, it refuses to start, with the numbers, instead of freezing the Mac:
output
decisio: the gemma-4-12b base needs about 16.6 GiB under MLX (9.1 GiB of weights, a working set of 5.6 GiB at a 32k-token state, and the MLX cache limit of 2.0 GiB), which is more than the memory limit of 14.0 GiB (--mlx-memory-limit-gb 14). Raise the limit, lower --mlx-cache-limit-gb, or start a smaller base

Recorded output.

  • Run one model server on a Mac at a time: two servers can each stay under their own limit and still add up to more than the Mac has.
  • /health reports the memory under memory; watch physical_footprint_bytes, the figure Activity Monitor shows, not the resident size.

Ollama runs Decisio v3, Decisio-mini-4b-v1 and the untrained Gemma 4 12B on Mac, Linux or Windows, each with its own temperatures. It works on Ollama 0.40.4 or later.

shell
# Decisio v3, the 8-bit file
ollama pull aminroudaki/decisio-v3
# Decisio v3, the 4-bit file
ollama pull aminroudaki/decisio-v3:q4_k_m
# Decisio-mini-4b-v1, the 8-bit file
ollama pull aminroudaki/decisio-mini-4b-v1
# the untrained Gemma 4 12B
ollama pull aminroudaki/decisio-gemma

Ollama runs its own listing of the model, so its answers are not a decisio server's. Its comments are shown above their commands.

ListingTagSize
aminroudaki/decisio-v3, Decisio v3q8_0, also latest12.7 GB file
aminroudaki/decisio-v3q4_k_m7.4 GB file
aminroudaki/decisio-mini-4b-v1, Decisio-mini-4b-v1q8_0, also latest5.3 GB file
aminroudaki/decisio-gemma, the untrained 12Bq4_k_m, also latest11.1 GB in Ollama
aminroudaki/decisio-gemmaq8_015.9 GB in Ollama

The untrained listing’s memory is the runner’s resident set at the listings’ 8,192-token context, read on a 64 GB Mac while it answered text, a picture and a 6,600-token text; a 16 GB machine was not tried. Then ask a question on Ollama’s decision route, on port 11434, with the listing named in model; a picture goes in the request’s images field, base64-encoded:

shell
curl http://localhost:11434/v1/systemone \
-H 'Content-Type: application/json' \
-d '{
"model": "aminroudaki/decisio-gemma",
"state": "Hi, since this morning none of our 40 staff can log in to the dashboard. We get \"session expired\" right after entering the password. Payroll is due today.",
"questions": {
"urgent": {
"type": "noul",
"instructions": "Does this ticket need a response within the hour?"
},
"category": {
"type": "choice",
"instructions": "Which team should handle this ticket?",
"criteria": {
"billing": "Invoices, payments, refunds",
"access": "Login, passwords, permissions",
"bug": "The product behaves wrongly",
"other": null
}
},
"impact": {
"type": "score",
"instructions": "Rate the business impact using only the reported facts.",
"criteria": [
"No function impaired",
"One user impaired, with a workaround",
"Many users blocked from a core function",
"Data loss or legal exposure"
]
}
}
}'

Ollama runs its own listing of the model, so its answers are not a decisio server's.

Measured on the same Mac on 2026-11-15, the base’s q8_0 tag chose the same answer as decisio’s own server (MLX, 8-bit) on 98.3% of 300 text questions, and its q4_k_m tag chose the same answer as decisio’s 4-bit MLX build on 87.0%.

How Ollama differs from a decisio server:

  • Each question’s prompt lists only its own question when a request has several.
  • Past 68 options the option letters are llama.cpp’s codes, not decisio’s.
  • Pictures go before the text, not at their places in it; a picture is not limited to one question, and Ollama reads it near its own resolution.
  • There is no Box question.
  • The commit flavor, thinking, reading twice, tasks, abstention and the fast table need a decisio server.

The Qwen listing, aminroudaki/decisio, needs Ollama 0.35.1 through 0.40.3; on a current Ollama use the Gemma listings, or decisio’s MLX server on a Mac.

  • Box questions on a Gemma base, the Qwen base’s second image engine (--image-model), adapters (--adapter), packed mode.
  • FP8 checkpoints: a Mac always names an MLX build with --model.
  • Teaching a task works, slowly: on the 31B 4-bit, about an hour for 770 labelled examples (77 options) and about 2.6 hours for 1,500 (150 options).
  • Get started: send your first question and read the answer.
  • Requirements and limits: every machine, the context length and what was measured on what.
  • Teach a task: teach a question you ask again and again, and certify its answers.