1029 words
5 minutes
Inkling 2 Mini with thinking enabled returns nothing: why the reasoning budget is a fake switch in Strata

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#

PatchWhat it fixesWithout it
Thinking-channel patchLets the client select an effort level per request; the trace comes back in reasoning_contentThe server always treats the model as having no thinking mode: effort hardcoded to 0, thinking segments discarded
Thinking-budget patchMakes Strata’s own answer_room actually apply to InklingThinking 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:

LocationOriginal 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 room

The 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 = True

For 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 content with finish_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:

  1. Read the phase from events: reasoning events count as thinking, content / tool events count as answering;
  2. Apply the same budget rules to Inkling;
  3. 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 thinking

3. Measurements: same puzzle, before and after#

An ARC abstraction puzzle (3 examples plus a 9×9 grid to solve, five transform types):

ModeBeforeAfter
none (off)3.6 s / 163 tokens / echoes the input backSame (no thinking already answers directly)
low82 s / hit the 4000 cap / empty content / finish_reason=length45.8 s / 2417 tokens / answer / stop
high117 s / empty content / 8476 NULs in the trace44.8 s / answer / 0 NULs

Regression cases after the budget patch:

CaseResult
Thinking off + ordinary question1.3 s, direct answer
low + ordinary question3.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=40011.0 s, thinking truncated near 400, answer complete
low + coding task3.8 s, 497 characters of thinking, correct code

4. Usage#

Request fieldEffect
omittedThinking off (default, fastest)
reasoning_effort: none / minimal / low / medium / high / xhighMaps to Thinking effort level: 0 / 0.1 / 0.2 / 0.7 / 0.9 / 0.99
reasoning_budget_tokens: NCap thinking at N tokens (only honoured by Inkling after the budget patch)
chat_template_kwargs: {"reasoning_effort": "high"}vLLM / llama.cpp style also supported
Terminal window
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 window
terminal\python\python.exe scripts\patch_inkling_budget.py --revert
terminal\python\python.exe scripts\patch_inkling_thinking.py --revert

Backups: 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:

Terminal window
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: none 29.9 s / 1048 tokens / 4 correct; low 79.2 s / 3091 tokens / 4 correct; high 110.1 s / 4329 tokens / 3 correct. Leave it off for everyday Q&A, coding, and translation.
  • high is still not recommended: it gets stuck most easily (3668 characters of thinking without solving the ARC puzzle) and does not outperform low.
  • 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#

  1. Identify the layer first: effort level stuck at 0 in the prompt → channel bug; budget logged but no “budget reached” line → budget bug.
  2. Fix the budget patch first — it is the direct cause of empty replies.
  3. Afterwards, keep thinking off by default; for multi-step reasoning use low or medium with max_tokens at 1500–3000, and set reasoning_budget_tokens: 800 if you want a hard ceiling.

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.

Inkling 2 Mini with thinking enabled returns nothing: why the reasoning budget is a fake switch in Strata
https://yunyingai.net/en/posts/inkling-2-mini-thinking-budget-fix/
Author
云樱梦海
Published at
2026-11-24
License
CC BY-NC-SA 4.0