# 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.

Source: https://opendecisio.com/docs/deploy/mac/

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](https://opendecisio.com/docs/deploy/tuned-12b/#serve-it-on-a-mac)), and the small Decisio-mini-4b-v1 from 4.5 GB of weights ([Serve Decisio-mini-4b-v1](https://opendecisio.com/docs/deploy/decisio-mini/#serve-it-on-a-mac)); a 64 GB Mac also runs the default model, Gemma 4 31B, with two commands, and a Gemma build there reads pictures too.

 

[Figure: Each build against the Mac it is for, at its peak on the longest text it serves; only the 64 GB Mac was measured. 64 GB Mac, Gemma 4 31B, 6-bit: 24.9 GB of weights, 31.1 GB at its peak at about 16k tokens, its longest. 48 GB Mac, Gemma 4 31B, 4-bit: 19.2 GB of weights, 25.3 GB at its peak at about 16k tokens, its longest, read on 64 GB. 32 GB Mac, Gemma 4 12B, 6-bit: 9.7 GB of weights, 15.1 GB at its peak at 32,687 tokens. 16 GB Mac, Gemma 4 12B on Ollama: 11.1 GB at its peak in Ollama, at 8,192 tokens, read on 64 GB; a 16 GB machine was not tried.]

 

## TL;DR

 

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](https://github.com/aminry/decisio/tree/v0.60.0/runs/2026-10-07_mlx-gemma-31b).

 

 

## Pick the build for your Mac

  

| Your Mac | Model and build | Memory: weights, then peak | Texts up to | One [question](https://opendecisio.com/docs/glossary/#question) on a new text |
| --- | --- | --- | --- | --- |
| 64 GB | Gemma 4 31B, 6-bit | 24.9 GB; 29.6, 31.1 and 33.7 GB at about 8k, 16k and 32k tokens | 16,383 tokens | not measured |
| 48 GB | Gemma 4 31B, 4-bit | 19.2 GB; 23.9, 25.3 and 28.0 GB, read on a 64 GB Mac | 16,383 tokens | 9.4 s at 3,000 tokens, on a busy Mac |
| 32 GB | Gemma 4 12B, 6-bit | 9.7 GB; 15.1 GB at 32,687 tokens | 32,768 tokens | 1,312 ms at 1,000 tokens |
| Any Mac with Apple silicon | Decisio-mini-4b-v1, 8-bit | 4.5 GB; 6.4, 7.3 and 9.5 GB at about 8k, 16k and 32k tokens | 32,767 tokens | 297 ms median, 883 ms at the 95th percentile |
| Any machine with Ollama 0.40.4 or later | Decisio-mini-4b-v1 on Ollama, `q8_0` | 7.6 GB in Ollama, read on a 64 GB Mac; a 16 GB machine was not tried | 16,384 tokens | not recorded |
| Any machine with Ollama 0.40.4 or later | Gemma 4 12B on Ollama, `q4_k_m` | 11.1 GB in Ollama, read on a 64 GB Mac; a 16 GB machine was not tried | 8,192 tokens | not 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.

 

 

## Start the build that fits

 

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](https://github.com/aminry/decisio/tree/v0.60.0/runs/2026-10-16_mlx-gemma-31b-4bit).

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](https://github.com/aminry/decisio/tree/v0.60.0/runs/2026-10-05_mlx-gemma).

 

 

## Read pictures on a Mac

 

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:

  

| Build | One picture | Process memory (MLX’s peak) |
| --- | --- | --- |
| 12B, Google’s bf16 checkpoint | 1.0 s | 24.2 GB (23.0 GB) |
| the previous tuned 12B, 6-bit MLX conversion with the add-on | 1.1 s | 11.1 GB (9.9 GB) |
| 31B, 4-bit MLX build with the add-on | 3.4 s | 20.7 GB (20.3 GB) |
| Decisio-mini-4b-v1, 8-bit MLX build with its vision tower, a 512 by 512 picture of 256 tokens | 0.39 s | 8.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](https://opendecisio.com/docs/glossary/#probability) differ from vLLM’s because they are quantized builds.

 

 

## Mind the memory

 

- 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.

 

## On a laptop, with Ollama

 

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.

  

| Listing | Tag | Size |
| --- | --- | --- |
| `aminroudaki/decisio-v3`, Decisio v3 | `q8_0`, also `latest` | 12.7 GB file |
| `aminroudaki/decisio-v3` | `q4_k_m` | 7.4 GB file |
| `aminroudaki/decisio-mini-4b-v1`, [Decisio-mini-4b-v1](https://opendecisio.com/docs/deploy/decisio-mini/) | `q8_0`, also `latest` | 5.3 GB file |
| `aminroudaki/decisio-gemma`, the untrained 12B | `q4_k_m`, also `latest` | 11.1 GB in Ollama |
| `aminroudaki/decisio-gemma` | `q8_0` | 15.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](https://opendecisio.com/docs/glossary/#option) 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](https://opendecisio.com/docs/glossary/#task), [abstention](https://opendecisio.com/docs/glossary/#abstain) 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.

 

 

## What does a Mac not serve?

 

- 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).

 

## What next

 

- [Get started](https://opendecisio.com/docs/#3-ask-your-first-question): send your first question and read the answer.
- [Requirements and limits](https://opendecisio.com/docs/limits/): every machine, the context length and what was measured on what.
- [Teach a task](https://opendecisio.com/docs/tasks/): teach a question you ask again and again, and certify its answers.
