---
title: Run Inkling 2 Mini as a local model
description: Serve Thinking Machines' Inkling 2 Mini on vLLM, SGLang, llama.cpp or Ollama behind the orchestrator, set its context window, choose a reasoning effort, send it images, and know its open problems and licence terms.
section: orchestrator
order: 56
audience: [operator, user]
sources: [services/go-orchestrator/internal/quirks/inkling.go, services/go-orchestrator/internal/quirks/family.go, packages/harness/src/provider/index.ts, services/nodejs-cloud/contracts/model-family-vectors.json]
features: []
---

Inkling 2 Mini is an open-weights model from Thinking Machines, released on 2026-11-20. It takes text and images and returns text. It reasons before it answers and it can call tools.

**How this support was built.** Petawork's support was written from the model's published files (the chat template, the model card, and the vLLM, SGLang, Ollama, Unsloth and NVIDIA Dynamo recipes) as they read on 2026-11-27. It was not run against the model. The tests use recorded shapes, not the model's real output. If something below doesn't match what your server does, the server is right; please report it.

## What Petawork does for it {#support}

- **One family under every name.** `thinkingmachines/Inkling-2-Mini`, Ollama's `inkling-2-mini` (with or without the `latest`, `26b-a5b`, `26b-a5b-nvfp4` or `26b-a5b-iq4_NL` tag), `unsloth/Inkling-2-Mini-GGUF`, the file name `Inkling-2-Mini-UD-Q4_K_XL.gguf` and OpenRouter's `thinkingmachines/inkling-2-mini` all count as the same model, in any case ([variants](/docs/orchestrator/upstreams.md#variants)). Inkling 2 Small and the original Inkling are different models. Nothing is known about them yet, so none of this applies to them.
- **Images.** The model is on the known-vision list, so the agent sends it images even when the server doesn't say it takes them. `petawork doctor` still lists it as "image input guessed from the name" until you set `capabilities: {vision: true}`.
- **Reasoning effort.** The orchestrator puts your effort where the chat template reads it, and only in a form the template accepts ([below](#effort)).
- **Reasoning text.** The server's reasoning parser splits the thinking from the answer. The agent shows the thinking as thinking, whether the server calls the field `reasoning` or `reasoning_content`.
- **Context window.** Not set by Petawork. The model's config says 1,048,576 tokens, but what a server can hold depends on the machine. It comes from your server or your config ([below](#configure)).

## Serve it {#serve}

You need about 20 GB for the checkpoint. 32 GB of RAM or VRAM is recommended. Petawork does not download or ship the weights.

**vLLM** 0.35.0 or later (a nightly build as of 2026-11-27; the images `vllm/vllm-openai:nightly` and `vllm/vllm-openai:inkling-2-mini` have it):

```bash
vllm serve thinkingmachines/Inkling-2-Mini \
  --reasoning-parser inkling \
  --tool-call-parser inkling --enable-auto-tool-choice \
  --max-model-len 262144
```

The vLLM recipe caps the window at 262,144 tokens on an H100 or a DGX Spark. Set `--max-model-len` to what your machine holds.

**SGLang** from PR 51926, or the image `lmsysorg/sglang:inkling-2-mini`. Images need `--enable-multimodal`, and the tool parser here is `inkling2`:

```bash
python -m sglang.launch_server --model-path thinkingmachines/Inkling-2-Mini \
  --reasoning-parser inkling \
  --tool-call-parser inkling2 \
  --enable-multimodal
```

**llama.cpp**, built from Unsloth's fork (whether stock llama.cpp runs it is not confirmed). Use the GGUF from `unsloth/Inkling-2-Mini-GGUF`. Images need the projector file:

```bash
llama-server -m Inkling-2-Mini-UD-Q4_K_XL.gguf --mmproj mmproj-F16.gguf --jinja -c 65536 --port 8081
```

`--jinja` makes llama-server use the model's own chat template, which tool calls need. Pick `-c` for your memory; 65536 here is only an example.

**Ollama** lists the model with tools:

```bash
ollama run inkling-2-mini
```

Ollama's default context length for this model is not published. Check what it loaded with `ollama ps`, or set `num_ctx` yourself.

## Configure the orchestrator {#configure}

Add the server as an upstream and give the model a route. Set the context window by hand when the server doesn't report it, and declare image input:

```yaml
upstreams:
  - name: inkling
    kind: vllm                 # or sglang, llamacpp, ollama
    base_url: http://127.0.0.1:8000/v1
    max_inflight: 2
    model_info:
      thinkingmachines/Inkling-2-Mini:
        context_window: 262144 # what the server serves (--max-model-len), not the model's 1,048,576
        capabilities: {vision: true}

routes:
  - alias: inkling
    strategy: fallback
    targets:
      - {upstream: inkling, model: thinkingmachines/Inkling-2-Mini}
```

The `model` must be the id the server reports on `/v1/models`: for example `inkling-2-mini:26b-a5b` on Ollama, or the file name on llama.cpp. vLLM and SGLang report their window (`max_model_len`), so `context_window` can be left out there. If neither the server nor the config gives a window, `petawork doctor` lists the model as "context window unknown".

## Reasoning effort {#effort}

The chat template reads a variable `reasoning_effort`. When it is not set, the template uses 0.9. It accepts these names, or a number from 0.0 to 0.99:

| Name | Value |
|---|---|
| `none` | 0.0 |
| `minimal` | 0.1 |
| `low` | 0.2 |
| `medium` | 0.7 |
| `high` | 0.9 |
| `xhigh` | 0.99 |
| `max` | 0.99 |

Any other name, or a number outside that range, makes the template raise an error and the request fails. So the orchestrator cleans the value first. Names from the table go through as they are, in lower case. Numbers are clamped to 0.0–0.99. Anything else is removed, and the template's default applies.

Where the value goes depends on the kind of server:

| Upstream kind | What the orchestrator does |
|---|---|
| `vllm`, `sglang` | Moves `reasoning_effort` into `chat_template_kwargs.reasoning_effort`. A `chat_template_kwargs.reasoning_effort` you send yourself wins and is cleaned the same way. |
| `llamacpp` | Cleans a `chat_template_kwargs.reasoning_effort` you send. Leaves a top-level `reasoning_effort` as it is. |
| `ollama` | Nothing. |

Thinking Machines does not document where a request should carry the effort for Inkling 2 Mini. `chat_template_kwargs` is where NVIDIA's Dynamo recipe for the original Inkling puts it, so on vLLM and SGLang the effort may still be ignored. For llama.cpp and Ollama nothing is published, so Petawork leaves your request as you sent it. On vLLM and SGLang, the effort also reaches the model from a `/v1/responses` request. Other local models get no effort from such a request.

**There is no "off".** The model card says `none` "does not fully disable reasoning": it is the least reasoning, not none at all. Petawork's thinking level `off` sends no effort, so the template's default of 0.9 applies, which is the same as `high`. To make the model think less, choose `minimal` or `low`. A profile's `reasoning_effort` default (including `auto`) applies to this model on vLLM and SGLang. A fixed default is only sent when it is below `high`.

## Images {#images}

Send images as OpenAI `image_url` parts in user messages or tool results. The template raises an error for images in any other message, and for audio. On SGLang, start the server with `--enable-multimodal`; on llama.cpp, pass `--mmproj`.

## Known problems {#problems}

- **An empty answer that stops on length.** Reasoning counts toward `max_tokens`. If the limit is low, the model can spend all of it reasoning and return empty `content` with `finish_reason: "length"`. Petawork does not raise a low limit for this model. Give it room, or lower the effort.
- **Reasoning loops**, and turns that say they will call a tool and then end without calling it, are open reports against the model. The model card recommends limits on output tokens and on agent turns.
- **Destructive actions.** The model card warns that the model may take destructive actions without asking. Keep Petawork's permission prompts on for edits and shell commands when this model drives the agent.
- **Tool-call arguments.** The template refuses tool-call `arguments` given as a JSON string; they must be an object. Converting them is the server's job, and the orchestrator does not change them.
- **Sampling.** The model's generation config uses temperature 1.0. Unsloth recommends temperature 1.0, top_p 1.0 and top_k 0. Petawork doesn't set these, so set them in your client or server if you want them.

## Licence and acceptable use {#licence}

The weights are under the Apache 2.0 licence. A Model Acceptable Use Policy comes with them. It bars unlawful uses and a list of harmful ones, and it carries over to the people you serve with the model. It does not bar commercial or hosted use. Read both on the model's Hugging Face page before you offer the model to others, for example on a mesh.

## Sources {#sources}

Read on 2026-11-27: the model card and `chat_template.jinja` at huggingface.co/thinkingmachines/Inkling-2-Mini, Thinking Machines' announcement at thinkingmachines.ai/news/inkling-2-mini, the recipes at recipes.vllm.ai (Inkling-2-Mini), docs.sglang.io (cookbook, Inkling-2-Mini), ollama.com/library/inkling-2-mini and unsloth.ai/docs/models/inkling-2-mini, and NVIDIA's Dynamo recipe for the original Inkling at docs.nvidia.com/dynamo/dev/recipes/inkling.
