Pass reasoning_effort: high to Inkling 2 Mini through Strata and the client receives empty content, finish_reason: length, and a token budget burned to zero. The first instinct is “the model thinks too long”. The actual cause is two mechanisms failing at once: the adapter layer turns the thinking channel off and swallows the trace, and the generation loop’s thinking budget never applies to Inkling’s custom parser.
This is not a capability problem. After two patches, the same ARC abstraction puzzle went from “82 s / empty reply” to “45.8 s / answer / finish_reason=stop”.
Environment: Strata portable bundle + Inkling 2 Mini SQ-10, RTX 3060 12 GB / 16K context, measured locally in November 2026. Single-machine samples, not an official benchmark.
Conclusion first: two patches, both required
| Patch | What it fixes | Without it |
|---|---|---|
| Thinking-channel patch | Lets the client select an effort level per request; the trace comes back in reasoning_content | The server always treats the model as having no thinking mode: effort hardcoded to 0, thinking segments discarded |
| Thinking-budget patch | Makes Strata’s own answer_room actually apply to Inkling | Thinking burns to max_tokens, the answer is squeezed out entirely, client gets an empty reply |
Neither patch changes default behaviour: no reasoning_effort means no thinking. The channel patch’s master switch is the environment variable STRATA_INKLING_THINKING=1.
1. Why Strata made Inkling “unable to think”
In terminal/serve/inkling_dialect.py, Inkling 2 Mini is registered as a model without a thinking mode:
| Location | Original behaviour |
|---|---|
normalize_effort() | Every level normalises to none; the prompt hardcodes Thinking effort level: 0 |
template_kwargs() | Forces enable_thinking = False |
finish_prompt() | Appends <|message_model|><|content_text|> so the model starts answering immediately |
_emit_typed() | Drops <|content_thinking|> segments outright |
So even when the client asks for reasoning, the server rewrites the effort level to 0 and eats the trace. The first patch reconnects that path: per-request effort selection, with the trace returned in reasoning_content.
2. The second patch: why the budget never applied
Strata has an “leave room for the answer” mechanism: answer_room (on by default) caps thinking at 3/4 of max_tokens, leaving the last quarter for the answer. The log looks like this:
[strata] thinking limited to 2250 of max_tokens 3000 so the answer has roomThe generation loop in terminal/serve/server.py decides whether to stop thinking like this:
if budget and parser.state == "reasoning": thought += 1 if thought >= budget and parser.clean and not detok.pending(): wrap = TrueFor Inkling this condition is never true. InklingOutputParser hands thinking out as an event (Event("reasoning", chunk)) instead of feeding the base OutputParser, so the base state stays at "content" forever. Consequences:
- The budget is decorative; thinking runs until
max_tokens; - The wrapping
</think>is Qwen syntax — that token does not exist in Inkling’s tokenizer; - The client gets empty
contentwithfinish_reason=length; - When thinking is cut hard at high effort, the model also emits NUL bytes (measured: 8476 of 8107 characters were
\x00).
The second patch touches three places, all gated on self.inkling, so Qwen / Hy4 are unaffected:
- Read the phase from events:
reasoningevents count as thinking,content/ tool events count as answering; - Apply the same budget rules to Inkling;
- Switch the wrap-up to Inkling’s own channel syntax:
<|end_message|>closes the thinking turn,<|message_model|><|content_text|>opens the answer turn. All three are single control tokens in the tokenizer (200010 / 200001 / 200004), which is what makes the continuation prompt shape correct.
After patching, one extra log line appears — that is how you know it took effect:
[strata] thinking budget reached (2250 tokens): wrapping up the thinking3. Measurements: same puzzle, before and after
An ARC abstraction puzzle (3 examples plus a 9×9 grid to solve, five transform types):
| Mode | Before | After |
|---|---|---|
none (off) | 3.6 s / 163 tokens / echoes the input back | Same (no thinking already answers directly) |
low | 82 s / hit the 4000 cap / empty content / finish_reason=length | 45.8 s / 2417 tokens / answer / stop |
high | 117 s / empty content / 8476 NULs in the trace | 44.8 s / answer / 0 NULs |
Regression cases after the budget patch:
| Case | Result |
|---|---|
| Thinking off + ordinary question | 1.3 s, direct answer |
low + ordinary question | 3.4 s, model stops thinking on its own |
ARC puzzle, max_tokens=1200 (budget 900) | 16.3 s, finish_reason=stop |
Explicit reasoning_budget_tokens=400 | 11.0 s, thinking truncated near 400, answer complete |
low + coding task | 3.8 s, 497 characters of thinking, correct code |
4. Usage
| Request field | Effect |
|---|---|
| omitted | Thinking off (default, fastest) |
reasoning_effort: none / minimal / low / medium / high / xhigh | Maps to Thinking effort level: 0 / 0.1 / 0.2 / 0.7 / 0.9 / 0.99 |
reasoning_budget_tokens: N | Cap thinking at N tokens (only honoured by Inkling after the budget patch) |
chat_template_kwargs: {"reasoning_effort": "high"} | vLLM / llama.cpp style also supported |
curl.exe -s --noproxy '*' -X POST http://127.0.0.1:8080/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{"model":"inkling-2-mini-sq-10","messages":[{"role":"user","content":"..."}], "max_tokens":1500,"reasoning_effort":"low"}'Responses gain a reasoning_content field: the thinking comes back in English, the answer in Chinese.
5. Rollback
The patches are independent; revert budget first, then channel:
terminal\python\python.exe scripts\patch_inkling_budget.py --revertterminal\python\python.exe scripts\patch_inkling_thinking.py --revertBackups: terminal/serve/server.py.orig-budget, terminal/serve/inkling_dialect.py.orig. Setting STRATA_INKLING_THINKING to 0 in scripts/portable_env.bat also works — the patch code stays but is inert. Restart the model service after any change:
cmd /c "cd /d D:\Strata-Inkling2Mini-Portable && start-api.bat"Cold water: the limits of these conclusions
- For Inkling 2 Mini, thinking costs 3–4× and buys no accuracy. Earlier four-question test:
none29.9 s / 1048 tokens / 4 correct;low79.2 s / 3091 tokens / 4 correct;high110.1 s / 4329 tokens / 3 correct. Leave it off for everyday Q&A, coding, and translation. highis still not recommended: it gets stuck most easily (3668 characters of thinking without solving the ARC puzzle) and does not outperformlow.- Both patches target only the Inkling branch in Strata. Qwen / Hy4 keep the original logic. After a Strata upgrade, file paths and tag names may move — do not treat line numbers here as permanent truth.
- Numbers are single-sample: one machine, one model, one question set. Not a benchmark.
How to choose
- Identify the layer first: effort level stuck at 0 in the prompt → channel bug; budget logged but no “budget reached” line → budget bug.
- Fix the budget patch first — it is the direct cause of empty replies.
- Afterwards, keep thinking off by default; for multi-step reasoning use
lowormediumwithmax_tokensat 1500–3000, and setreasoning_budget_tokens: 800if you want a hard ceiling.
Links
- Inkling 2 Mini model and local setup (earlier post, in Chinese): https://yunyingai.net/posts/inkling-2-mini-local-coding-model/
- OpenAI Chat Completions API: https://platform.openai.com/docs/api-reference/chat
- vLLM reasoning parameters: https://docs.vllm.ai/en/latest/serving/openai_compatible_server/
Disclosure: a personal debugging log. No affiliation with or endorsement by Strata, Thinking Machines, or related projects. All figures and behaviour reflect the author’s machine in November 2026 and may change in later versions; verify against official docs and actual source before acting.