mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3431] [Engine] Windows HIP (gfx1100): batched PLE block silently misreads prompts in ~1 of 8 engine starts; STRATA_PLE_BATCH=0 fixes it #1390
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#1390
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 @giacomobord-prog on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3431
Setup
tools\hip\build_windows.bat(STRATA_HIP_ARCHS=gfx1100,STRATA_NO_VISION=1), ROCm 10.2.0a20260930 (TheRock wheels)"gpu": 0), 64K context,--kv int8, MTP--spec 4,--prefill auto, no hipBLASLt tuning tableSymptom
In some engine starts every prompt longer than ~64 tokens is misread for the whole session: no error, no NaN, the model answers fluently but about something else ("your message is just
##", answers in Chinese, an invented question). Prompts of 64 tokens or fewer are always read correctly. Restarting the engine usually clears it. The log of a bad start is identical to a good one (same slots, free VRAM, chunk size); the only visible difference is that a 176-token prompt is read ~15% faster in bad sessions (1.39-1.44 s vs 1.62-1.70 s).Reproduction
A script that starts the server, sends two prompts (102 and 176 tokens, answer must contain a given word/number) and stops it, repeated:
STRATA_PF_STEP_SYNC=1STRATA_WMMA_GEMM=1STRATA_PLE_BATCH=0So the batched PLE block at layer 1 (
prefill.cpp,if (l == 1 && ple_on && ple_batch): the BF16 key/value GEMMs +native_ple_postops_batch) is involved. It does not look like a race between prefill steps (step sync does not help) nor hipBLAS alone (WMMA GEMMs still failed once). The bad state seems to be decided once per engine start and then stays for the session. Possibly related: #224 (illegal memory access in the same block) and #541 (HIP stall avoided bySTRATA_PLE_BATCH=0), both closed - here it fails silently instead.Workaround
"env": {"STRATA_PLE_BATCH": "0"}in the run config. Cost on this machine: prompt 810 -> 710 tok/s at 3.5K tokens, 865 -> 814 tok/s at 10.7K; decode unchanged (52-70 tok/s).Logs of failing starts and the test script are available if useful.
@ahmetem commented on GitHub (Oct 22, 2026):
Same symptom on a second gfx1100 card with engine 0.1.47 (Strata 0.2.2, release package
strata-engine-0.1.47-windows-x86_64-hip-rdna3), and hereSTRATA_PLE_BATCH=0did not prevent it.Setup: RX 7900 XTX 24 GB, Ryzen 9 9950X, 62.7 GiB RAM, Windows 11 (10.0.26300), driver 32.0.32015.7029. Swift 1.5 Qwen3.8-Flash-Next IQ3_S with
--ple-gguf(log:PLE on),--max-context 131072 --kv int8 --spec 4 --spec-min-p 0.5 --mtp <draft> --prefill auto --expert-cache auto,STRATA_HC_Q8=1.Check per fresh start:
tools/needle_bench.py --lengths 4k(three prompts of about 3.3K tokens, greedy, thinking off). Default andSTRATA_PLE_BATCH=0(in the config'senv) starts alternated, 10 each:STRATA_PLE_BATCH=0The variable reached the engine: in every
STRATA_PLE_BATCH=0start the same 3.3K prompts read in 4.26-4.30 s, against 4.07-4.15 s with the default.A bad start: all three needles missed, and every answer ran to the 40-token cap describing something else ("Based on the visual cues provided in your prompt ..."). Short questions (43-51 tokens) looked normal. Earlier, two full
strata_bench.py --longruns had also landed on bad starts: there the 609-token first agent turn ran to its 64-token cap every time instead of a reply of about 12 tokens. Restarting cleared it. The engine log of a bad start has the same lines as a good one, with no errors.Timing: at 3.3K tokens good and bad starts read at the same speed. In the two bad full runs the 609-token first agent turn read in 2.28-2.34 s (engine prompt time, 6 of 6 turns), against 3.00-3.20 s in six good runs (18 of 18), which matches your "bad sessions read faster".
Also seen once: in an otherwise good start, one 609-token request was misread (it answered with unrelated code; read time normal, 3.10 s) and the requests after it were fine.
The per-start logs and
/api/requestsdumps are available if useful.@giacomobord-prog commented on GitHub (Oct 22, 2026):
Thanks for the second data point, @ahmetem, and for the needle_bench check. I opened this issue; here is how my numbers compare, in case it helps narrow things down.
My data (engine 0.1.45.3, built locally for gfx1100, ROCm 10.2.0a20260930, Windows 11, RX 7900 XTX + XT, Adrenalin 26.9.2; Qwen3.8-Flash-Next IQ3_S, single card, 64K context,
--kv int8, MTP,--prefill auto). Scripted loop, one engine start per iteration, two prompts per start (102 and 176 tokens, answer must contain a known word), 88 starts in total:STRATA_PF_STEP_SYNC=1STRATA_WMMA_GEMM=1STRATA_PLE_BATCH=0Bad starts looked exactly like what you describe: the model answers fluently but about something else (e.g. "Based on the fragments you provided…", "I don't have access to the context needed…"), short prompts are fine, the engine log is identical to a good start, and a restart clears it. Like yours, my bad sessions read the longer prompt faster than good ones (about 15% faster for the 176-token prompt), which makes me suspect that a bad start takes a cheaper code path, or skips some work, rather than computing something wrong in a random way (this is only a guess).
How this fits your result.
STRATA_PLE_BATCH=0were about 1 in 10 like yours, getting 0 of 24 would happen roughly 8% of the time, so my data does not exclude that the variable only lowers the rate, or that it behaves differently between 0.1.45.3 and 0.1.47. Is there any chance that 0.1.47 changed how the PLE block / prefill is dispatched, so the variable no longer reaches the same path?--resident-experts, vision reader), so I cannot say whether the 0/24 still holds there.What I can do. I can repeat the loop with
needle_bench.py --lengths 4kon 0.1.45.3, 20+ alternating starts with and withoutSTRATA_PLE_BATCH=0, and post the per-start logs (I already have the logs of the failing starts from the first series). If a maintainer knows of any state that is decided once per engine start (kernel or algorithm selection, an allocation, a cache) and then stays fixed for the session, that would explain why a restart clears it and where to look.@ahmetem commented on GitHub (Oct 22, 2026):
Thanks, the 0/24 with short prompts is a useful contrast.
On the dispatch question: I compared the source of the two releases I have here, 0.1.45 and 0.2.2 (engine 0.1.47). The
STRATA_PLE_BATCHchecks read the same in both:prefill.cpp(ple_batch_env, off when the value is0) andverify.cpp(the S25 key/value batch). No PLE kernel source differs between the two trees; the only PLE files that changed areple_fp8_parity.cppandple_reader_test.cpp, both tests. So on 0.1.47 the variable should still turn off the same paths, and the timing says it did change something (+4 % prompt time in every start with it). That leaves two readings that 1 of 10 against 0 of 24 cannot separate: a second start-time cause besides batched PLE, or a lower but non-zero rate with the variable off.One data point on the "cheaper path" idea: at 3.3K tokens my bad starts read at the same speed as the good ones. With the default, the bad start read its second and third needle prompts in 4.11 / 4.11 s, against 4.07-4.15 s in the good starts. With
STRATA_PLE_BATCH=0it was 4.28 / 4.26 s, against 4.26-4.30 s. Only the 609-token first agent turn of the two bad full-suite runs was faster (2.28-2.34 s against 3.00-3.20 s). So the speed difference may depend on prompt length, or show up only on some prompts.A
needle_bench.py --lengths 4kseries on 0.1.45.3 with alternating starts would be a good comparison, since it would show whether the longer prompt also finds bad starts with the variable off on your build.@giacomobord-prog commented on GitHub (Oct 22, 2026):
I ran the series @ahmetem suggested, on my build.
Setup. Engine 0.1.45.3 (built locally for gfx1100, ROCm 10.2.0a20260930), Windows 11, RX 7900 XTX, Adrenalin 26.9.2. Qwen3.8-Flash-Next IQ3_S, single card,
--max-context 131072 --kv int8, MTP,--prefill auto,--expert-cache auto, default (full) expert arena, no vision reader, no hipBLASLt table. 24 engine starts, alternating default andSTRATA_PLE_BATCH=0(12 each); after every start,tools/needle_bench.py --lengths 4k --depths 10,50,90(three prompts of about 4,000 tokens, greedy, thinking off).STRATA_PLE_BATCH=0A bad start missed all three needles (0/3); every good start found all three (3/3). The bad answers were fluent and about something else ("Based on the visual cues from your description, here is an analysis of the situation…", "Based on the analysis of the provided text, here is the solution to complete the sentence…"), the same symptom you describe.
What this says
STRATA_PLE_BATCH=0does not prevent bad starts: 1 of 12 with it, so the title of this issue was too optimistic. 2/12 against 1/12 is far too few starts to say whether it lowers the rate at all.I have the engine logs of the three bad starts and the per-start CSV; I have not compared the bad logs with good ones yet. If a maintainer has an idea for a variable or a flag worth trying (I can repeat 20+ starts in about 20 minutes), or knows of state that is decided once per engine start and then stays fixed for the session, I'm happy to run it and post the results.
@giacomobord-prog commented on GitHub (Oct 23, 2026):
Update with a root cause, and a fix that works on my build. Short version: this is not the PLE. It is a collision between the address a thread's stack lives at and the GPU-side alias the HIP runtime gives to the pinned expert arena.
What happens
cudaHostRegister(PinnedArena,src/core/pinned.cu; on my machine the whole-arena register is refused and it falls back to 47 slices of about 1 GiB). With theMappedflag the runtime gives every registered range an alias in the GPU's address space (cudaHostGetDevicePointer).cudaMemcpyfrom or to a local variable "succeeds" (no error) but copies nothing, for the rest of the process. Everything that passes scalars and small parameters through the stack (the long-prompt paths) computes with wrong values; short prompts mostly do not use them. That is the whole symptom: fluent answers about something else for prompts longer than about 64 tokens, until restart.How I found it
Weights on the device are byte-identical between a good and a bad start (hash of every tensor of blocks 0-2). The key GEMM of the PLE block gives about 1e-12 instead of 0.03 in a bad start, and the same wrong result with a fresh GEMM handle and with fresh copies of the inputs and weights. After the first half of layer 0 the residual already differs.
A 16-byte round trip (host to device to host, compare) at several points of the process: fine until the arena is pinned, then it returns zeros in bad starts, from one slice on. Which slice differs by start (5, 8, 17, 19, 25, 29, 33, 35, 36, 40, 43, 44...), and registering the arena again at another address hits the same slice, so it does not depend on the arena's host address or pages.
At the moment of failure,
hipPointerGetAttributeson a plain stack variable returns type 1 (host registered) withhostPointerinside the arena, and its address lies inside the alias range of the bad slice. Three cases:Bisecting the bad slice shows that a zone of only 45-60 KB (the part of the stack in use) is enough to break it.
That explains what we saw earlier:
STRATA_PLE_BATCH=0and the other variables only changed which copies happened to go through the stack, so they moved the odds without removing the cause;STRATA_WMMA_GEMM=1,STRATA_PREFILL_WARM=0etc. made no difference (2/16 and 2/11 bad starts).Fix on my build (Windows only,
src/program/generate.cpp)mainnow reserves (MEM_RESERVE, nothing committed) all the free address space below 1 TiB, then runs the oldmainon a new thread. The stacks of that thread, and of the threads it starts, are created above 1 TiB, away from the aliases (I saw them at 0x10003FFF8CC and above); the first thread only waits.STRATA_STACK_ISOLATE=0turns it off. Inpinned.cua 16-byte round trip after each slice is registered unpins the arena if it ever fails (slower but correct).Results (engine 0.1.45.3, RX 7900 XTX, Qwen3.8-Flash-Next IQ3_S, 128K context,
--kv int8, MTP; every start checked with a 1,150-token prompt with a code word, andneedle_bench.py --lengths 4k,16k --depths 10,50,90)STRATA_PLE_BATCHunset (four series; the last one with the instrumentation removed)In every one of the 210 starts the arena was pinned in all 47 slices and the probe never failed. Prompt speed at 15K tokens went from 801 tok/s (with
STRATA_PLE_BATCH=0) to 830-835 tok/s (unset); write speed is unchanged.What I have not checked
@ahmetem commented on GitHub (Oct 23, 2026):
I ran a check that needs no rebuild on the prebuilt 0.1.47 (Strata 0.2.2,
hip-rdna3release package).STRATA_ARENA_PIN_GIB=noneleaves the expert arena unregistered (log:expert arena: NOT registered with the GPU driver ...; locked 47965 MiB via working-set minimum + VirtualLock), so the arena gets no mapped alias at all.Same machine and model as before (RX 7900 XTX, Swift 1.5 Flash-Next IQ3_S, 131K context,
--kv int8, MTP), fresh starts,needle_bench.py --lengths 4kafter each:STRATA_PLE_BATCH=0STRATA_ARENA_PIN_GIB=noneIf the rate were still 1 in 10, 0 of 30 would happen about 4 % of the time. So this supports your explanation on 0.1.47 too, but it is not proof on its own. I can't run the 16-byte round trip here, because this is the release binary, not a build.
The workaround has a cost on this PC: the experts reach the GPU by copy, so prompts read noticeably slower. 4K went from 956 to 772-787 tok/s and 16K from 1,207 to 899-918 tok/s (two
strata_bench.py --runs 1runs with the variable, against the 3-run medians of a default start); the 3.3K needle prompts went from 4.07-4.15 s to 4.51-4.76 s. Decode moved by less than the noise (short chat 61-71 tok/s, agent turns 79-80, against 71 and 69). Your stack-isolation fix keeps the arena pinned, so it is the better fix.STRATA_ARENA_PIN_GIB=noneis a slower stopgap for anyone on a release binary until a fix ships.@sylvesterpious commented on GitHub (Oct 26, 2026):
I have hit the same bug on RDNA4.
Running an ASRock Radeon AI PRO R9700 Creator 32GB (gfx1201) on an Intel platform (Core Ultra 7 270k Plus, ASUS PRO WS880-ACE SE), Windows 11 Pro.
Software:
When running with kv int8 (tried with f16 as well) see the same markers (KV streaming 100.00% of 0 block reads) and same fluent answers about unrelated subjects on long prompts until restart.
Been at it for a week and 5 in 70 starts have had this issue. Short prompts are unaffected.
@giacomobord-prog, could you open your stack-isolation fix as a PR? It looks like the fix for this issue, and I am happy to test it on gfx1201.
The worst part is that a bad start returns HTTP 200 with fluent text. When an automated setup is used to switch models, it silently produces wrong results! Love the speed, but this is unreliable.
@giacomobord-prog commented on GitHub (Oct 26, 2026):
@sylvesterpious thank you for the data point: gfx1201, an official 0.1.44.1 and two driver versions make it very unlikely that this is my build or one card. The marker you quote ("KV streaming 100.00% of 0 block reads") is a good cheap detector of a bad start.
I'd rather not open a PR against a tree I have not built, so here is the fix as a diff, and what I would like to learn from a test on your card.
What the fix does (Windows only, two files, ~110 lines)
generate.cpp:mainbecomesengine_main. A newmainfirst reserves (MEM_RESERVE, nothing committed) all the free address space below 1 TiB, then runsengine_mainon a new thread with a 64 MiB stack reservation. Stacks created after the reservation (that thread's and the ones it starts) land above 1 TiB, away from the GPU-side aliases of the pinned arena.STRATA_STACK_ISOLATE=0turns it off. The log shows one line:strata: the engine runs on its own thread (1023 GiB of low address space kept free of stacks ...).pinned.cu: after each slice is registered, a 16-byte host-to-device-to-host round trip; if it does not come back, the arena is unpinned (slower but correct). It never fired in the 210 starts below, because the first change keeps the stacks out of the way.STRATA_PIN_REPAIR=0turns it off.Numbers (gfx1100, RX 7900 XTX, 0.1.45.3 sources, ROCm 10.2.0a20260930, Windows 11): 17 bad starts in 178 before; 0 in 210 with the fix (a start is "bad" when a 1,150-token prompt with a code word does not return the word). The pinned arena stayed in 47 slices every time, prompt speed is unchanged, and a 192K-token prompt at 256K context still reads at about 1,220 tok/s.
What I could not do: it is tested on one card only, against the 0.1.45.3 tree (not current main), and I have not ported it to 0.2.3. If a maintainer prefers a PR against main, say so and I will do it.
If you can build from source on gfx1201, an A/B would be the most useful thing: the same start loop you ran (
needle_bench.py --lengths 4kafter each start, or your marker) with and withoutSTRATA_STACK_ISOLATE=0, 50+ starts each; plus, if you can, the 16-byte probe after the arena is pinned in a bad start (a bad start returns zeros). If you only have the release binary, @ahmetem measured a workaround that needs no rebuild:STRATA_ARENA_PIN_GIB=none(0 bad starts in 30 on 0.1.47, but prompts read about 20% slower).On your last point: I agree that HTTP 200 with fluent text is the worst part. On my side I added a start check in the server (a 1,150-token prompt with a hidden word, restart the engine if it is missed). It cost about 10 s per start and caught every bad start in 24 of mine, so a setup that switches models automatically can use the same idea until the root cause is fixed upstream.
generate.cpp diff
pinned.cu diff
@jerem91150 commented on GitHub (Oct 29, 2026):
Release-binary A/B on a second RX 7900 XTX (gfx1100), Windows 11, as you asked. Qwen3.8-Flash-Next IQ3_XXS,
--kv int8, MTP,--kv-resident 32768, thehip-rdna3packages as published. After each fresh start: a 189-token prompt whose answer is in the text, then a fresh 27K prompt with a known answer. A bad start is the one you describe: "KV streaming ... of 0 block reads", fluent answers about an "image" that was never sent, while the short prompt stays right.STRATA_ARENA_PIN_GIB=noneSTRATA_ARENA_PIN_GIB=noneOver the last ten days 0.1.44.1 had 5 bad starts in 80 here, so 0 in 60 with
nonefits your explanation. The log line confirms the setting took:expert arena: NOT registered with the GPU driver.Cost on this PC, production config (131072 context), two rounds each: fresh prompts read 15-20% slower (27K in 26.7-28.0 s instead of 22.5-23.8 s, 9K in 10.7-11.5 s instead of 9.1-9.5 s). Writing (56-64 tok/s) and pictures are unchanged. On 0.1.52,
STRATA_KVA=1wins that back and more: four starts, ten fresh prompts each with a known answer (a sentence hidden at the start, middle or end of 20K to 100K tokens), 40/40 right with it and 40/40 without, and 27K read in 23.1 s instead of 26.8 s, 40K in 30.5 instead of 38.1 s, 100K in 75.9 instead of 95.6 s.0.1.44.1 does not know
none(only a cap), so on that version the workaround means updating. I'm running 0.1.52 withnonein production now.@GoldenLeafBird commented on GitHub (Oct 31, 2026):
I tested a third RX 7900 XTX (gfx1100), with engine 0.1.54 (Strata 0.2.8) on Windows 10 19044. PR #4787 has a fix. The fix builds on the stack-isolation diff of @giacomobord-prog. This comment gives four findings that are not in this thread yet. The first finding helps all users of a release binary now.
Setup
--kv int8,--kv-resident 32768, MTP--spec 4,--expert-cache auto.1. The
0 block readsmarker shows on the first request, also on a short one.KV streaming: 100.00% of 0 block readsto the log. A 22-token prompt also writes this line, also when its answer is correct.of 1176 block readsas the first request.So a start check does not need a long prompt. The check sends one short request (8 output tokens, thinking off). Then it reads the new lines of the engine log. The check takes less than 1 s. A long code-word prompt takes about 10 s.
On this PC, a small wrapper script does this check:
serve/server.pyon a private port.0 block reads, the script stops the server and starts it again. The script tries at most 5 times.A start that passed the check was ready in 28.3 s. Without the script, a start was ready in 27.7 s. In 30 starts, the script found 2 bad starts and started them again. All 30 code-word answers were correct. The script uses only the Python standard library. I can post it if it is useful.
2. A bad start also writes into the pinned arena.
An earlier comment says that the small copies copy nothing. Our measurement shows that the copies go to the arena. A stack variable can lie inside the alias of a slice. The runtime then uses the address "slice host address + (variable − alias)" instead of the variable:
A standalone program shows this behavior every time:
So a bad start can also change expert data in RAM, in addition to the values on the stack.
3. Why a stack can lie under an alias
cudaMallocmemory.VirtualQueryshowsMEM_RESERVEfor that range.VirtualQueryshowsMEM_FREEfor that range. So Windows can put a new stack there.cudaHostAllocmemory has the same host and device address here. So that memory has no separate alias.This behavior is probably a defect in the HIP runtime on Windows. A short search found no ROCm report of this defect.
4. Memory from before
maincan still lie under an alias.The diff puts every later stack above 1 TiB. But the stack of the first thread stays low. A few memory blocks from before
mainalso stay low. In 7 of 110 starts (about 6 %), an alias covered such memory. I do not know if these starts give wrong answers. The first thread only waits, and the other blocks are not known stacks.So the PR does two more things:
A start with such a range gives correct answers, but it reads prompts 2–9 % slower. The PR had 0 bad starts in 110 starts.
The workaround on this PC
STRATA_ARENA_PIN_GIB=nonemade prompts 9–12 % slower here. I ranstrata_bench.py --longtwo times for each setting, in alternation. The values are medians of 3 runs:none, run 1 / run 2Other users in this thread measured 15–25 %. So the cost changes from PC to PC. In the same series, the PR build had the speed of the pinned release package.
@sylvesterpious commented on GitHub (Oct 31, 2026):
@giacomobord-prog # Strata issue #3431 patch validation - final report (31 October 2026)
On my machine the issue #3431 patch (stack isolation + pinned-slice copy check, Oct 26 comment by giacomobord-prog) removed the startup corruption we see:
13 of 150 unpatched (control) fresh processes were bad starts; 0 of 150 patched processes were. Every control failure had the issue's marker (
KV streaming ... 0 block reads) and fluent but unrelated answers on all three needle prompts. No other failure type occurred.Design (same in all runs)
477ac13c) + the exact two-file patch (sha256 26d3353d...), ROCm 10.2.0a20260930, AMD clang 24.0.0git, MSVC 14.44.35207, SDK 10.0.22621.0. One executable for both arms, sha256 d148d079...ad8da, unchanged before and after every run.STRATA_STACK_ISOLATE=0,STRATA_PIN_REPAIR=0; patched both1. The stack-isolation log line appeared only in patched processes (checked per process by the runner).--servedirectly, so no dashboard startup check and no hidden retries) answered three exact 4096-token needle prompts (10/50/90% depth), greedy, thinking off, 40 output tokens. The three prompts are one startup observation. Matched prompts within each pair, AB/BA alternating order, every attempt kept, no discards.System information
477ac13c, plus the issue #3431 patch (sha256 26d3353d...2038)Results: bad-start rate and significance
Fisher exact test, two-sided; Wilson 95% intervals.
All 13 failures were zero-KV starts (Q5 7, Q8 6); 0 answer misses with positive KV, 0 pin-probe fallbacks, 0 device/protocol/cleanup failures. Correction to an earlier chat remark: main-v1 alone is not significant (p = 0.117), not p = 0.04; significance comes from main-v2 and the pooled data. Combined rates are similar across the two runs (8% and 9%), supporting repeatability.
What this does and does not show:
Speed
Passing requests only, medians; Mann-Whitney p.
4096-token prompt, ~10-token answers (300 processes, ~450 requests per arm):
Output rates here come from ~10-token answers and are indicative only.
Dedicated small speed benchmark (speed-v1: 10 pairs = 20 fresh processes, 4096- and 16384-token prompts, 256 generated tokens each, matched prompts, paired by pair):
Per model medians (unpaired, n=5 per cell): Q5 output 37.2 -> 36.7 (4K) and 43.7 -> 42.5 (16K) tok/s; Q8 24.0 -> 23.6 and 27.2 -> 27.0; prefill within 1.2% (Q5 953/942 at 4K, 1308/1303 at 16K; Q8 809/804, 1078/1075). Interpretation: any speed cost is small, of the order of 1-3% on output, with borderline significance in the small paired benchmark (p about 0.04) and no significant effect in the 300-process data. Prefill means are skewed by a few large positive outliers (up to +25%), so medians are quoted. 20 pairs cannot exclude a few-percent effect either way; treat "about 0-3% slower decode" as the working estimate, not a measured constant. Pooled "ALL" medians that mix Q5 and Q8 are not meaningful and are not quoted.
Housekeeping and verification
crashpad_log/setup.exerecords at 06:58 AEDT from an unrelated installer. No new WHEA, bugcheck or GPU fault; the WER burst is the known ~4-hourly re-filing, not a new fault. (39 old records dropped out of the query window; the query is capped.)Files (all under
exports/strata-3431-validation-20261031)main-v1/,main-v2/,speed-v1/(per-start folders with native stdout/stderr, prompts, answers, timings, host/admission snapshots).report-v1/,report-v2/(per-run),combined-v1-v2.json(pooled statistics),speed-v1/paired-and-unpaired-analysis.txt.github-comment-FINAL-DRAFT.txt.strata_3431_startup_ab_v1.py,strata_3431_speed_v1.py,strata_3431_combine_v1.py,strata_3431_speed_paired_v1.py,summarize_strata_3431_v1.py,strata_3431_repeat_rounds_v1.ps1(has a state-field bug: it reads nonexistent fields and stops after the first round; not used for the results).@crkva commented on GitHub (Nov 1, 2026):
Data from another RX 7900 XTX (gfx1100): Windows 11 26200, Ryzen 7 7800X3D, 64 GB, driver 32.0.31041.1004.
Qwen3.8-Flash-Next IQ3_XXS,
--kv int8 --kv-resident 32768, MTP--spec 4,--expert-cache auto, 32K-256K windows.windows-x86_64-hip-rdna30.1.55 (v0.2.9, signed feed): 1 bad start in 79 fresh engine starts.The bad one logged
KV streaming: 100.00% of 0 block readson all 22 requests; short prompts were right, 8K/32Kprompts and a picture got fluent unrelated answers (partly Chinese). That start had no
--resident-expertsand theGPU picture reader on.
--resident-experts0/12; without it 0/12;without it +
STRATA_ARENA_PIN_GIB=none0/12; without it + GPU picture reader (the bad start's configuration) 0/12;--resident-experts+ CPU picture reader 0/12. So 0/60, and the one bad start did not repeat in its own configuration.of 0 block readsline in ~45 engine starts.--resident-expertsthe log showsFileExpertSource: mapped pinned cache complement ready ... page-locked and mapped, andSTRATA_ARENA_PIN_GIB=nonedoes not change that line. Does the alias guardalso cover that registration, or only
PinnedArena?/v1/unloadas soon asof 0 block readsappears, so the next request gets a fresh engine (tested with a simulated line: unloaded within 8 s).With
lazy_load+idle_unload_sthe engine restarts many times a day, so a server-side check that restarts theengine on that marker would limit a bad start to the one request that revealed it.