API / prompt format
Inkling 2 Mini Prompt Format & Chat Template
The exact Inkling 2 Mini prompt format produced by the official chat_template.jinja: special tokens, the effort_map for reasoning_effort, how images and tools are written, and ready request bodies for vLLM and llama-server.
Jinja Effort-Map Payload Previewer
This previewer re-implements the template logic in your browser for system, user, image and tool declarations, including its validation errors. Try a custom effort of 1.0 to see the range check.
Rendering.
Special tokens used by the template
| Token | Role in the prompt |
|---|---|
<|message_system|> | Starts a system message, including the effort line |
<|message_user|> | Starts a user message |
<|message_model|> | Starts a model (assistant) message |
<|message_tool|> | Starts a tool result; the tool name follows directly |
<|content_text|> | Text content part |
<|content_image|><|unused_200054|> | Image placeholder, user and tool turns only |
<|content_thinking|> | Reasoning content from a previous model turn |
<|content_invoke_tool_json|> | Tool call body as compact JSON |
<|content_xml|> | Tool declaration block after tool_declare |
<|end_message|> | Closes every message part |
<|content_model_end_sampling|> | End of a model turn; EOS token id 200006 |
The pad token is <|endoftext|> (id 199999). Token ids from config.json and generation_config.json.
How a conversation is laid out
The template writes every message part as a role token, a content token, the content and <|end_message|>. A user turn with text and an image becomes two parts, each starting with <|message_user|>. There is no separate turn header: the role token repeats for every part.
Ordering follows three rules. Tool declarations come first, before any message. System messages come next in the order you send them. Then, just before the first message that is not a system message, the template inserts its own system line carrying the effort level. If the conversation is only system messages, the effort line goes at the end.
The template has no add_generation_prompt branch, so the rendered string ends with the last message's <|end_message|>. Model turns in the history are wrapped in generation tags so training tools can mask them.
effort_map values
| Name | Number | Rendered line |
|---|---|---|
none | 0.0 | Thinking effort level: 0 |
minimal | 0.1 | Thinking effort level: 0.1 |
low | 0.2 | Thinking effort level: 0.2 |
medium | 0.7 | Thinking effort level: 0.7 |
high | 0.9 | Thinking effort level: 0.9 |
xhigh | 0.99 | Thinking effort level: 0.99 |
max | 0.99 | Thinking effort level: 0.99 |
Using reasoning_effort
The first line of the template defines effort_map. When reasoning_effort is a string it must be one of the seven names, otherwise the template raises Unknown reasoning_effort. When it is a number it is cast to float and must lie between 0.0 and 0.99; anything else raises reasoning_effort must be in [0.0, 0.99]. When it is missing or null the template uses 0.9.
The value is printed into a system message as Thinking effort level: followed by the number, with zero printed as 0. Note that xhigh and max both map to 0.99, so they produce identical prompts. A number such as 0.5 is accepted and gives you a level between low and medium.
Effort steers how long the model reasons in tokens. It does not change the loop: every token still runs three passes through the loop core. For latency-sensitive calls, a low effort plus a firm max_tokens limit gives the most predictable response time. The checkpoint's generation_config.json samples at temperature 1.0.
Tools, images and reasoning history
Tool declarations are normalized to four keys (description, name, parameters, type) and written as one compact JSON array with sorted keys after <|message_system|>tool_declare<|content_xml|>. A model tool call is rendered as <|message_model|>, the function name, <|content_invoke_tool_json|> and a JSON object holding name and args, with argument keys sorted.
Tool results use <|message_tool|> followed by the tool name, taken from the message's name or looked up through tool_call_id. Images may appear in user and tool messages only, any other role raises an error, and audio parts raise Inkling 2 does not accept audio input. Previous reasoning, passed as reasoning_content on a model message, is written back as a <|content_thinking|> part.
Serving with vLLM and llama-server
The vLLM recipe serves the model with --reasoning-parser inkling, which separates reasoning from the final answer, and with DSpark through --speculative-config using the dspark method and 7 speculative tokens. Tool calling uses the inkling tool-call parser. Support needs vLLM 0.35.0 or newer, which at the time of writing means the nightly build or the vllm/vllm-openai:nightly image.
Both vLLM and llama-server apply the chat template on the server, so you send ordinary OpenAI-style messages and pass effort through chat_template_kwargs. Start llama-server with --jinja so it uses the model's own template. The previewer above writes both request bodies.
Inkling 2 Mini Chat Template FAQ
Answers cross-checked against the Inkling 2 Mini model card, config.json, chat_template.jinja and the published GGUF repositories.
What prompt format does Inkling 2 Mini use?
Each message is written as a role token followed by a content token and closed with <|end_message|>. User turns start with <|message_user|>, system turns with <|message_system|>, model turns with <|message_model|> and tool results with <|message_tool|>. Text content uses <|content_text|>, images use <|content_image|> and reasoning uses <|content_thinking|>. A finished model turn ends with <|content_model_end_sampling|>, which is the EOS token (id 200006).
How do I set reasoning effort in an API request?
Pass reasoning_effort as a chat template argument. In vLLM and llama-server that is "chat_template_kwargs": {"reasoning_effort": "medium"}. Accepted values are none, minimal, low, medium, high, xhigh and max, or a number from 0.0 to 0.99. If you pass nothing the template uses 0.9, the same as high.
Can I turn reasoning off completely?
Setting effort to none writes Thinking effort level: 0 into the prompt, but the model card says minimum effort does not fully disable reasoning. Set a max_tokens limit as well; the card also reports that the model can get stuck in long reasoning loops, especially while debugging code.
Why does my tool call fail with a template error?
The template requires tool call arguments to be a parsed object. If arguments arrive as a JSON string it raises: tool call arguments must be a parsed object, not a JSON string. Decode the arguments before sending the conversation history back.