mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2960] [Engine] Windows HIP, one RX 7900 XTX: about 1 engine start in 10 answers long prompts and pictures wrong (KV streaming 0 block reads), still in 0.2.0-beta #1194
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#1194
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 @jerem91150 on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2960
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Other: the engine from the release packages,
strata.exe --servestarted by a small script (the full command is at the top of each log below).What happened
Re-tested on 0.2.0-beta: still there.
Some engine starts come up in a bad state. In that state the answers have nothing to do with the prompt (
Based on the image provided, ...with no image sent, or generic Chinese text), while the prompt is read in full (0 reused) and the speed looks normal. It is decided at start: a bad start stays bad for all its requests, a good one stays good. With--kv-resident 32768the log shows which start is bad, because the KV streaming counter stays at zero from the first request on:A good start, same config, same run:
Expected: the right answer (
18802, a number that is in the prompt) on every start.Counts on 2026-10-20,
--kv-resident 32768, 0.1.45.3 and 0.1.44.1 alternated, 30 fresh starts, nothing else changed:100.00% of 0 block readsThe two always go together: every bad start gave a wrong answer, every good start the right one (30 of 30). On the bad 0.1.45.3 start the 26K answer was Chinese, about "the picture you provided".
With the runs from the original report and the days after:
So roughly 1 start in 10 to 15, on every version I have; the 0 of 19 on 0.1.45 was most likely luck.
It is not tied to
--kv-resident 32768. My original workaround (--kv-resident 131072, all K/V in VRAM) does not avoid it, it only hides the counter. The same night, on that production config:Based on the image provided, here is a breakdown of the text and its meaning:;--vision(CPU encoder): in 1 session of 4 all three picture questions got answers about some other picture (Based on the image provided, here is a description of its content: ... a screenshot of a digital interface, then generic Chinese). So it also hits short prompts of a few hundred image tokens, not only long ones.That makes 2 bad sessions out of 8 on the production config that night.
Startup logs of bad and good starts differ only in timings: same slots, same residency, same probe results, same
verifycaptures without errors. One difference I noticed: on the bad 0.1.44.1 start the 26K prompt read at 228 tok/s instead of ~930; on the bad 0.1.45.3 one at normal speed (827 tok/s).Possibly related to #2594 (
0 block readson a layer split), but here it is one card, only some starts, and the answers are wrong.Smallest steps or command that reproduce it
--max-context 131072 --kv int8 --kv-resident 32768 --spec 4 --mtp ... --expert-cache auto --vision --vram-reserve-mib 1536).KV streamingline.100.00% of 0 block readsat step 2 and a wrong answer at step 3.Reproduction status
Reproduced locally
Strata version
Strata 0.2.0-beta · engine 0.1.45.3 (
strata-engine-0.1.45.3-windows-x86_64-hip-rdna3.tar.gz, BUILD.json commit18f7b90ca), and 0.1.44.1 (strata-windows-x64-hip.zip)Graphics card, memory and system
AMD Radeon RX 7900 XTX 24 GB (gfx1100) · Ryzen 9 7900X3D · 64 GB RAM · Windows 11 Pro 26100
Model, size and settings
Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS (native pack iq3_xxs) · 131072 context ·
--kv int8,--kv-resident 32768(and 131072) · MTP--spec 4· pictures on (--vision, CPU encoder)Logs
Four bad sessions and one good one from the same run, in the comment below.
Original report (0.1.44.1, before the tracker reset)
Native Windows 11, one RX 7900 XTX (gfx1100), 64 GB RAM, Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS, 0.1.44.1 HIP build,
--max-context 131072 --kv int8 --kv-resident 32768, MTP draft (--spec 4),--expert-cache auto,--vram-reserve-mib 1536.What happens. Some engine starts answer every long prompt wrong. The prompt is read in full (
0 reused), the speed looks normal, but the answer has nothing to do with it. The test is a fresh ~66K-token prompt (Python source files) ending with "which port does the router listen on (the PORT variable)? Answer with the number only", then a fresh ~113K one with the same question. The answer is in the text (18802). Good starts answer18802both times. Bad starts answered things like:(no image was sent), and the follow-up in the same conversation went "the code visible in the image is incomplete".
It is decided at start, and the log shows which start is bad. In the bad starts the KV streaming counter reads zero from the first request on:
while a good start, same config, same prompts:
Startup lines are the same in both (same expert cache:
17.89 GiB free ... -> 7472 slots, same residency line).Counts, 16 fresh starts today, alternated:
0 block reads--kv-resident 32768(K/V past 32K in RAM; 2 of these withSTRATA_HIP_WMMA=1, both good)--kv-resident 131072(all K/V in VRAM)So for us the wrong answers and the zero counter go together 10 out of 10 times. Short prompts (we never saw a wrong answer under ~27K) look fine even in a bad start, so it only shows once a conversation goes past the resident part.
This looks related to #2594 (
0 block readson a layer split), except here it is one card, it only happens on some starts, and the answers are wrong, so it is not just the counter.Workaround for now:
--kv-resident 131072. On this card it costs ~2% on fresh long prompts (66K: 59.0 against 58.1 s, 113K: 103.7 against 101.8 s), decode at 113K the same.I can send full engine logs of a good and a bad start, or run a build with extra logging.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@jerem91150 commented on GitHub (Oct 20, 2026):
Logs from the 0.2.0-beta night (2026-10-20), paths shortened to
<STRATA_DIR>. Each is the full engine log from start to stop.opt-1020-0.1.45.3-t5-0.log: bad start, 0.1.45.3, --kv-resident 32768
opt-1020-0.1.44.1-t7-1.log: bad start, 0.1.44.1, --kv-resident 32768 (26K read at 228 tok/s)
opt-1020-banc-0.1.44.1-t1-long.log: bad session, 0.1.44.1, production config --kv-resident 131072
opt-1020-vision-cpu-t2.log: bad session, 0.1.45.3, production config 131072 + --vision, wrong answers to 3 pictures
opt-1020-0.1.45.3-t4-2.log: good start, 0.1.45.3, --kv-resident 32768, same run
@jerem91150 commented on GitHub (Oct 20, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@GoldenLeafBird commented on GitHub (Oct 20, 2026):
Another single-GPU RX 7900 XTX Windows HIP box hit this, caught by the new
standard-v1 suite. Data point from 2026-10-20:
90767252), sourcecheckout, Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS pack, context 131072, KV int8,
--spec 4with the MTP draft.strata bench run --suite standard-v1drew a bad start. The whole runwas wrong, from the warm-up to the last request: sanity scored 0 of 12. I4
answers an essay titled "Top 5 Most Popular Programming Languages", the
short performance cases loop in degenerate Chinese, I1's reasoning describes
"a series of system tags".
messages, a direct render with the pack's
chat_template.jinjareproducesthe intended prompt byte for byte, and the engine's own prompt token counts
equal the frozen fixture counts on all 22 requests.
strata serve: KV streaming: 100.00% of 0 block reads hit VRAM, 0.0 MiB read from RAM(issue 2274 prompt-path tuning present and stripped,
--spec 4and--spec 2), replayed two of the exact recorded requests and answered bothcorrectly every time. None of the five logs shows the marker. So the state
is per start, not per configuration.
Two extra observations from the same run:
(previous prompt plus the answer plus ~18 fresh tokens) that the standard
runner cannot see. A bad start can therefore be partially masked in the
recorded outputs.
engine start, different text on an immediate resend), which makes bad-start
states hard to reproduce on demand even with the suite's fixed seeds.
Full run artifacts (results.json, outputs.jsonl, per-request records):
https://github.com/Niko1221/Strata/pull/3436
@jerem91150 commented on GitHub (Oct 21, 2026):
0.2.1 (engine 0.1.46, Windows hip-rdna3), same test as before:
--kv-resident 32768, a 20-token question then a fresh 27K prompt on each start, 10 rounds of (0.1.46, 0.1.44.1, 0.1.46). 30 starts, 0 bad: the KV counter showed 2748 to 3552 block reads every time, and every 27K answer was right.That is not proof of a fix. With 0.1.44.1 at 4 bad starts in 45 so far, 0 in 20 happens about 1 time in 7 even if 0.1.46 still has the defect (0.1.45 also had 0 in 19 before 0.1.45.3 showed it again). The 0.2.1 notes don't mention it either. I'll keep counting on 0.1.46.
@jerem91150 commented on GitHub (Oct 22, 2026):
#3431 looks close to this one (one RX 7900 XTX under Windows, the state is decided at engine start and every long prompt of the session is misread), and
STRATA_PLE_BATCH=0took its bad starts from 3 / 24 to 0 / 24. I tried it here on 0.1.44.1 with the same test as before (--kv-resident 32768, a 20-token question, a 189-token prompt with the answer in it, then a fresh 27K prompt), 15 interleaved rounds of (default,STRATA_PLE_BATCH=0):STRATA_PLE_BATCH=0The bad start with
STRATA_PLE_BATCH=0has the same signature as before: "KV streaming: 100.00% of 0 block reads hit VRAM" from the first question, and the 27K answer "Based on the analysis of the provided text, which includes a…" instead of the number. So the PLE batch workaround does not prevent this defect here. One difference with #3431: in that bad start the 189-token prompt was answered correctly, but with this config (--short-read 4096) short prompts go through the verification windows rather than the batched prefill, so it is not the same test as theirs.Counts so far, all with a fresh 27K prompt on each start: 0.1.44.1 4 bad in 70 (default), 0.1.46 0 in 20, 0.1.47 0 in 20, 0.1.44.1 with
STRATA_PLE_BATCH=01 in 15.@jerem91150 commented on GitHub (Oct 29, 2026):
The cause looks like the one @giacomobord-prog found in #3431: a thread's stack can land inside the GPU alias of the registered expert arena, and from then on small host/device copies silently copy nothing. That matches everything here (about 1 start in 16, long prompts and pictures answered about an "image" that was never sent, "0 block reads", short prompts fine).
STRATA_ARENA_PIN_GIB=none(0.1.46 and later) gave 0 bad starts in 60 on 0.1.50 and 0.1.52, against 2 in 30 without it; the numbers are in #3431. Since #3431 has the root cause and a fix, this one can be closed as a duplicate.@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.