mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4949] [Engine] Qwen3.8-Flash-Next: thinking passes spent on "the last message was just system instructions - there's no actual task" #2278
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TheIronWolfModding on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4949
Title
Qwen3.8-Flash-Next: thinking passes spent on "the last message was just system instructions — there's no actual task"
Setup
unsloth UD-Q4_K_XLpack, 256K context0.1.55, engine component0.1.55-linux-x86_64-cuda-cuda13--spec 4 --spec-min-p 0.5 --mtp <rt> --max-context 262144 --kv int8 --ple-io ram --kv-resident 32768 --vision --pcie-frac 0.20/v1/chat/completions(streaming), sendingchat_template_kwargs: {"enable_thinking": true, "preserve_thinking": true}What happens
On some turns the model's entire thinking output is meta-commentary about whether it has been asked anything, instead of reasoning about the actual task. Verbatim (clipped):
The turn then usually continues and the work gets done, so it is not fatal — but it costs a thinking pass and occasionally derails the reply.
Measured over the 60 most recent transcripts from the harness: 201 thinking blocks matching that pattern. It is not a first-turn-only artifact — in the 20 most recent transcripts the occurrences sit at assistant turn 5, 6, 19, 21, 23, 24, 25, 25, 39, 39, 41, 44, 46, 48, …, i.e. mid-session, commonly right after a batch of tool results.
What it is not
Not a reasoning-channel failure:
reasoning_content(serve/server.py:6430), never incontent— 0 occurrences in content blocks across those transcripts;serve/server.py:9293), byte-identical to the bundled fallback (9993 chars,md5 2a79880b328d0e0387c8ecb62c4c0c80);/propsreportschat_template_caps.supports_preserve_reasoning: true.So this is not the "template mismatch leaks reasoning/tool calls into text" class of problem — e.g. the same symptom reported for a different harness in itayinbarr/little-coder#129 was that class; mine is not.
The part that looks server-side
Two specifics in that output are strings the client never sends:
So at those moments the model is reconstructing a system prompt it was not handed, and concluding the request consists of instructions only. I have not yet captured the rendered prompt for such a turn, so I cannot yet tell whether the rendered prompt is at fault (empty
<think>blocks, the effort sentence, the checkpointing/--tail-role-tokensplit, orpreserve_thinkingreplay) or whether this is simply Q38FN behaviour.Places I suspect, from reading the source:
chat_template.jinja:74-75, 90-92andEFFORT_TEXTinserve/server.py:204-209— makes "instructions" the dominant instruction-shaped block in front of the model;chat_template.jinja:119-120: if a client does not replayreasoning_content, every past assistant turn is rendered with an empty<think>block. My client does replay it, but if the replay ever lands under a different field name the branch degrades silently;xhigh(chat_template.jinja:59) — the meta-reasoning looks like what an uncapped xhigh pass produces when it has nothing to chew on.Questions
xhigh? Doesmedium/lowmeasurably reduce it?preserve_thinkingreplay failing (or landing on the wrong field) be loud rather than silent — e.g. a note in the slot log when an assistant history message carries content but noreasoning_content?--spec 4/ MTP) worth ruling out with respect to the<think>literal handling (mark_think_literals,REASONING_CLOSE)?Happy to provide / test
api_monitor: true+/api/requestscapture of the request body for one offending turn, scrubbed of private content;xhigh/medium/low;--mtp offand--drafting off;@github-actions[bot] commented on GitHub (Nov 1, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 1, 2026):
Thanks, this follows the format now.
@Megal commented on GitHub (Nov 1, 2026):
I'm using same model. Observed this issue on 0.1.45. Using pi harness v 1.4.0.
@bob-u commented on GitHub (Nov 2, 2026):
I have seen this with the same model even with the latest 0.1.54 engine. It stopped after turning off the tail skip, although I have not run it for long after the fix to be 100% that was it.
@dandandelion commented on GitHub (Nov 2, 2026):
tail skip=0 does not stop it, I run mine with it at 0, some thinking turns still spits out "No task" message. Never experienced before tho this could be down to the model OR the engine. Already tried multiple jinja templates to no avail.
@TheIronWolfModding commented on GitHub (Nov 2, 2026):
This problem sometimes gets very bad - I had a long session where some early prompt stuck and then entire session would, pretty verbosely, answer it in reasoning between tool calls.
@dan64 commented on GitHub (Nov 2, 2026):
I have encountered the same problem and, at times, even something worse: LLM hallucinations.
I opened the PR#4932 to fix it.
I suggest to use this shared-settings (which will work after the implementation of PR#4932):