mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4590] [Engine] Flash-Next IQ2_XS repeats prior JSON after a new user task on original and SC117 weights (0.1.52, CUDA, Windows) #2078
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#2078
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 @xli21-code on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4590
Observed behavior
On the released Windows CUDA engine 0.1.52, Flash-Next IQ2_XS can repeat the previous assistant JSON and stop normally instead of following a new user instruction. This is a finite, wrong answer, not
!!!!degeneration or an endless reasoning loop.The saved conversation has four messages:
Expected: answer the new editing-plan request. Actual: return the old four-code JSON again,
finish_reason=stop, 79–85 tokens despitemax_tokens=3072.Environment
0.1.52,BUILD.jsoncommita42cc3d7df70; released engine, not locally patched.ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, IQ2_XS, revisioned59f92082b1e93c0e96d60a8b11aab089b52f09.SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF, IQ2_XS, revision90a3350cd800ec1fe0d1660a38414ad9e985782fand its own separately built native pack.vocab.json,merges.txt,token_type.json, andchat_template.jinjawere hash-compared and are byte-identical. Original weight SHA256 values match their pinned publisher metadata.--max-context 131072 --kv int8 --kv-resident 32768 --prefill auto --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp <rt> --vision --vram-reserve-mib 2048with the pack/native/PLE/profile paths for the corresponding model. Single GPU, one inference slot.cvec=0), tools, MCP, orresponse_format. Request explicitly sends temperature 0.7, top_p 0.8, top_k 20, min_p 0, seed 42 andenable_thinking=false; this is not a request with omitted sampling fields.Reproduced results
The cold original/SC117 comparisons retained identical request fields except the model alias. The exact original request was also independently replayed remotely, and the compact reproducer below was executed on the original model through the non-streaming API: it returned the 79-token old JSON. SSE reproduces too. The standalone control removes the earlier JSON task and assistant JSON, and is intentionally a different prompt condition, not a replacement for the failed result.
All replies above ended with
stop. No OOM, NaN, engine restart or repeated-token watchdog error was present for these requests. Rendering the saved request with the installed template/parser confirmed that the final user instruction and final assistant generation header are present. This rules out missing-message construction in this client; it does not isolate the model from all shared engine paths.Standalone synthetic reproducer
Python 3 standard library only. This generates the exact tested message contents; there is no private corpus, external tool, adapter or image input. Use the original model's 128K configuration and change BASE/MODEL only if necessary for the local server. A newly started process reproduces too; the
usagefield distinguishes cached from full-read requests.reproduce.py
Observed answer:
Scope / question
This is reproducible on these saved messages on both original and abliterated weights, and at 128K as well as 256K; I am not claiming it is a 256K capacity issue or that abliteration is the cause. The fresh-task control also shows that the engine can still generate long prose.
Not tested: same messages in llama.cpp, IQ3_XXS/IQ3_S, MTP off, suffix lookup off, or a full plain-decode reference. I cannot yet distinguish base-model/low-bit instruction-following behavior from an inference-path effect. Failed replies use suffix drafts heavily, but that alone does not establish causality.
Related reports searched: #710 / #728 concern cross-request or reasoning loops; #1392 loses an empty assistant message (ours is nonempty and retained); #2980 concerns
n_predict:0follow-ups without a new user question (ours has a new question and max_tokens=3072); #606/#879 concern a different degeneration signature. I have not found a confirmed matching cause/fix for this finite old-answer replay.Is there a recommended matched reference configuration for this case, or does the supplied request expose a known issue? Raw request/response/timing files are retained; the reproducer above is sufficient to regenerate the synthetic input without uploading user documents.
Disclosure: an AI assistant helped run remote tests and draft this report. Counts and behavior above were checked against saved requests, actual answers, health and engine logs; diagnosis remains unconfirmed.
@xli21-code commented on GitHub (Oct 29, 2026):
Additional controlled follow-up on the same host, still release engine 0.1.52 and original ISTA IQ2_XS, without upgrading or patching:
--suffix-draft 0 --lookup-chain 0--mtp, suffix/lookup disabledAll three arms used the same original weight files, tokenizer, saved messages and common request sampler. I requested the same fixed expert-cache setting in each arm, and
/metricsreported the same effective 9454 expert slots in all three. Other capacity/vision settings were kept. The native pack still used--spec 4as required by its interface; in the no-MTP/no-lookup arm the log reported 0 drafts offered/accepted. Thus neither MTP nor suffix lookup is necessary to reproduce this saved case. This is not evidence for simply disabling either feature as a fix.Other observations, with limits:
Raw per-arm configs, SSE streams, answers and metrics were retained. The original saved model config was restored unchanged after the temporary tests. The root cause remains unresolved; I am reporting both successful and failed continuations rather than replacing the original failure with a passing rerun.
@vvsvvt commented on GitHub (Oct 29, 2026):
Corroboration from the HIP side: same prior-answer replay on IQ3_S and
UD-Q5_K_XL in short multi-turn chats (engine 0.1.52, R9700), with a
log-level signature that may help narrow this down.
Environment
0.1.52 (strata-engine-0.1.52-windows-x86_64-hip-rx9070), i5-14600K,
128 GB RAM.
Unsloth UD-Q5_K_XL. Client in all cases: the bundled Strata WebUI.
and the previous assistant answer is produced again, ending with a
normal stop. It reproduces with reasoning on and off.
What I see (four sessions)
IQ3_S, reasoning OFF, a short five-turn general chat. The first
four turns reuse ~100% of history and answer correctly. Between
turns 4 and 5 the serve log shows the conversation being parked
(
conversation cache: parked 1566 tokens). Turn 5 then reads:prompt 1581 tokens = 580 reused + 1001 read. The total is exactlyright (1565 + 16), so the full history arrived; but the reuse point
(580) lands where turn 4's question had just been read, i.e. before
turn 4's 978-token answer. Turn 5's reply does not address turn 5's
question at all: it repeats material from turns 2 and 4. A probe in
turn 6 confirmed the model believed the most recent question was
turn 4's, not turn 5's.
IQ3_S, reasoning ON. Every turn parks and borrows
(
borrowed 48 tokens from a parked conversation, thenborrowed 71 tokens). From turn 3 on, the model kept answeringturn 2's question; turn 3's reuse is frozen at the same borrowed
checkpoint (71 tokens).
UD-Q5_K_XL, reasoning ON,
--conversation-cache-mib 0setexplicitly, fresh engine start, no park/borrow lines anywhere.
Derailment reported from turn 4. The serve log's prompt accounting:
In every continuation,
reusedequals the previous turn's prompttotal minus 5: the previous assistant answer is never part of the
reused prefix and is re-read as fresh text, and the re-read falls
short of what was actually generated (36/64/423/275 read vs
39/84/566/670 generated), the shortfall growing with the previous
turn's reasoning length.
After clearing browser cache and storage, a fresh WebUI session
reproduced it again: turn 3's reasoning collapsed to a single
character before the answer, and turn 4 repeated turn 3's answer.
Relation to this issue
short contexts (53-1900 token prompts, turns 3-5) rather than a
single 32K second turn.
necessary, so I am not claiming the signatures above are the root
cause. They do correlate turn-by-turn with the derailment in the
short-chat cases: whenever a turn starts, in effect, from a state
that stops before the latest assistant answer - via a parked
snapshot restore, or because the re-rendered history (reasoning is
not sent back by the WebUI for normal turns) diverges from the
generated token stream at every assistant turn - the model ends up
answering the question that sits right before that point.
--adapt-async 1 --adapt-every 1 --adapt-decay 0.98 --adapt-swaps 64and the conversation cache at the serve auto size (8192 MiB / 4,
flag absent); session 3 ran adapt defaults with the cache
explicitly off. Suffix lookup and MTP were on in all sessions;
like the reporter, I have not yet run the suffix-off / spec-0
discriminating tests.
Diagnosis unconfirmed; the token arithmetic above is taken directly
from the serve logs if anyone wants to check the same signature on
their side (
prompt N = R reused + X readper turn).@Tsury commented on GitHub (Oct 30, 2026):
Reproduces on Linux CUDA with IQ3_S, on 0.1.52 and on 0.2.8 (engine 0.1.54).
reproduce.pyfrom this issue was run unchanged, except for BASE and MODEL.All four requests ended with
stop. There were no errors in the engine log. This adds IQ3_S and Linux to the reported conditions, and shows that 0.2.8 does not fix it.@xli21-code commented on GitHub (Oct 30, 2026):
Follow-up measurements on 0.1.52 CUDA, SC117 IQ2_XS, 128K, same saved 4-message conversation.
Cache paths did not change the first-token distribution here. Replay and park/return were identical to the source state to three decimals. Borrow stayed inside cold-read spread. This does not contradict the HIP report above: no WebUI, no stripped reasoning, no adapt flags, and first-token logprobs were not available with thinking on.
Cold reads are not numerically repeatable by default. The same request after a restart gave P("```") from .27 to .41. With
STRATA_PREFILL_CPU_SHARE=0andSTRATA_ROUTE_TAIL_SKIP=0set together, four restarts gave .394 each time. Seed sweeps on one cached state are therefore not independent draws of that spread; our earlier MTP/lookup differences are explained by this plus a fixed seed.Two separate factors on a fixed state (48 seeds per arm):
The default applies to the non-thinking path. The new task contains digits inside the 64-token window, and the correct opening token is
1. Rewriting the digits as words reduced the penalty's effect, which suggests the penalty lands on prompt tokens. We have not measured this at token level. Logprobs appear to be reported before the penalty, since greedy picks "```" while1has the higher reported probability.Question for maintainers: is it intended that the instruct-mode
presence_penaltywindow counts prompt tokens, and that reported logprobs exclude it?