Run Inkling 2 Mini as a local model
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.
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
- One family under every name.
thinkingmachines/Inkling-2-Mini, Ollama'sinkling-2-mini(with or without thelatest,26b-a5b,26b-a5b-nvfp4or26b-a5b-iq4_NLtag),unsloth/Inkling-2-Mini-GGUF, the file nameInkling-2-Mini-UD-Q4_K_XL.ggufand OpenRouter'sthinkingmachines/inkling-2-miniall count as the same model, in any case (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 doctorstill lists it as "image input guessed from the name" until you setcapabilities: {vision: true}. - Reasoning effort. The orchestrator puts your effort where the chat template reads it, and only in a form the template accepts (below).
- 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
reasoningorreasoning_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).
Serve it
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):
vllm serve thinkingmachines/Inkling-2-Mini \
--reasoning-parser inkling \
--tool-call-parser inkling --enable-auto-tool-choice \
--max-model-len 262144The 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:
python -m sglang.launch_server --model-path thinkingmachines/Inkling-2-Mini \
--reasoning-parser inkling \
--tool-call-parser inkling2 \
--enable-multimodalllama.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:
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:
ollama run inkling-2-miniOllama'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
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:
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
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
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
- 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 emptycontentwithfinish_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
argumentsgiven 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
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
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.