# Inkling 2 Mini local benchmark pack

Measured on **2026-11-25** on a **Mac Studio, Apple M3 Ultra, 96 GB unified memory**.

This pack contains the exact prompts, fixtures, unit tests, raw Ollama responses,
and generated scripts used for the accompanying NerdLevelTech post.

**Download the full pack (scripts included):**
[inkling-2-mini-benchmark-pack.zip](/benchmarks/inkling-2-mini/inkling-2-mini-benchmark-pack.zip).
Unzip it first; the Python scripts keep their real `.py` names inside the archive.
(The site serves scripts only inside the zip because raw `.py` URLs are blocked.) It is
intentionally small: the point is reproducible task evidence, not a claim of
comprehensive benchmark coverage.

## Tasks

1. **Coding:** the model must write `summarize_log.py`, a standard-library-only
   Python 3.11 CLI for JSONL API logs. `test_summarize_log.py` imports the
   generated file and tests nearest-rank percentiles, route summaries, and the
   CLI against `api_logs.jsonl`.
2. **Vision:** the model must read `vision_chart.png`, generated by
   `vision_chart.py`, and return the values `Alpha=12`, `Beta=7`, `Gamma=19` as
   JSON.

## Baseline runtime

The baseline runs used the existing Ollama server on `http://localhost:11434`:

```bash
python3 harness.py qwen3.8:27b-mlx code 2048
python3 harness.py qwen3.8:27b-mlx vision
python3 harness.py gemma4:31b-mlx code 2048
python3 harness.py gemma4:31b-mlx vision
```

`harness.py` sends the same prompts with `stream=false`, `think=false`, and
`temperature=0`. `repeat.py` runs three repetitions and preserves each raw JSON
response. The published speed is the median of the three runs, calculated as
`eval_count / (eval_duration / 1e9)` from Ollama's response.

Run the generated-code tests like this:

```bash
python3 test_summarize_log.py qwen-final-summarize_log.py
python3 test_summarize_log.py gemma-final-summarize_log.py
```

## Inkling runtime notes

- Ollama 0.40.16 refuses the model and reports that **0.40.17 or newer** is
  required. The official 0.40.17 release supports Inkling on Apple silicon.
- The MLX community 4-bit card requires `ml-explore/mlx-lm` PR 2086. That PR was
  open when checked on 2026-11-25. The original checkpoint was tested with an
  isolated Python 3.12 environment built from that PR; no global packages were
  changed.
- This pack does **not** include model weights, credentials, personal data, or
  screenshots. The chart is synthetic and contains only known test values.

## Sources

- https://huggingface.co/thinkingmachines/Inkling-2-Mini
- https://huggingface.co/mlx-community/Inkling-2-Mini-4bit
- https://github.com/ollama/ollama/releases/tag/v0.40.17
- https://hf.co/blog/inkling2mini
## Measured results (median of 3 runs, 2026-11-25)

| Model | Coding tok/s | Coding tests | Vision tok/s | Chart answer |
|---|---:|---|---:|---|
| Inkling 2 Mini (`inkling-local-chat`, thinking on, 8,192 cap) | 52.72 | PASS | 46.81 | exact JSON, 3/3 |
| Qwen3.8 27B (`qwen3.8:27b-mlx`, thinking off, 2,048 cap) | 113.34 | PASS | 113.72 | exact JSON, 3/3 |
| Gemma 4 31B (`gemma4:31b-mlx`, thinking off, 2,048 cap) | 59.34 | PASS | 80.64 | correct values, fenced JSON, 3/3 |

Inkling raw runs: `inkling-local-chat-code-run{1,2,3}.json` (52.72 / 50.53 / 52.89 tok/s)
and `inkling-local-chat-vision-run{1,2,3}.json` (46.25 / 46.81 / 47.10 tok/s).
`inkling-final-summarize_log.py` is the run-3 generated script; it passes
`test_summarize_log.py`. `vision_chart.png` is the exact image used for the vision
task (ground truth Alpha=12, Beta=7, Gamma=19).

Known failure modes preserved on purpose: the naive `Modelfile` (no renderer)
produced prompt-continuation output; direct MLX inference of the original
checkpoint failed with Metal GPU timeouts on this host. See
`OLLAMA_LOCAL_IMPORT.md` for the working import.
