mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2210] [Bug]: Windows HIP gfx1031: prompt reading ~30 % slower on the 0.1.43 engine than 0.1.40 (same model and server) #878
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#878
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 @huy-sec on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2210
What happened
After updating from 0.1.40 to 0.1.43, prompt reading (prefill) is about 30 % slower on this card. Decode is unchanged. Running the 0.1.40 engine under the 0.1.43 server, same model, same prompts, brings the speed back, so the change is in the engine.
Method. One server start per setting, a short warm-up, then three fresh prompts (~16k, ~19k, ~16k tokens; non-overlapping slices of Markdown text, a unique first line so nothing is reused,
max_tokens: 1). Speed is taken from the engine'sprompt N tokens = 0 reused + N read in T msline. The same slices in the same order for every setting. E–H ran back to back in alternating order, so file-cache warmth or background load can't favour one engine.--ple-io direct,STRATA_WATCHDOG_S=900--prefill 8192Request history on this PC agrees: fresh prompts of 4k+ tokens read at a median 540–578 tok/s on 0.1.40 in every size bucket (160 requests), and 303–395 on 0.1.43 (42 requests).
Ruled out
--ple-io mmap. Forcingdirect(run B, watchdog raised so a slow first read can't trip it) changes nothing, and in the rematch (E, G) its probe keptdirecton its own: still ~395.--prefill 7168earlier measured about the same as 6144.bc089d5d): Linux-only since2a8cdedd.Same model on both engines: decode 39.2 vs 39.3 tok/s, and the same answers on a small set of tool-use, coding and log tasks.
Settings (from setup):
--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp ... --max-context 131072 --kv int8 --kv-resident 32768, envSTRATA_HIP_PROMPT_F16=1.I can bisect v0.1.40..v0.1.43 on this card, or run a build with diagnostics, if that helps.
Strata version, GPU, OS
Server 0.1.43 (
7695859a); engines 0.1.43 and 0.1.40, both self-built withtools\hip\build_windows.bat,STRATA_HIP_ARCHS=gfx1031, ROCm 10.2.0a20260930 · RX 6700 XT 12 GB (gfx1031) · Ryzen 5 5500, 64 GB RAM · Windows 11 Pro (26200)Engine log
0.1.43 (run E), start and prompt lines (generation part trimmed):
0.1.40 (run F), the same prompts:
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks @huy-sec for the careful A/B. This looks like #2055: prompt reads on gfx103x about 30% slower since 0.1.40.2, decode unchanged. Our own change #1240 (in 0.1.40.2) stopped creating the MTP drafter's side stream on HIP. On gfx103x the stream's mere existence makes the prompt path's copies faster (RX 6800, Windows: 7.9K tokens 584-596 -> 798-808 tok/s with it). 0.1.43.1 creates it again on gfx103x, and
STRATA_MTP_SIDE_STREAM=1/=0forces either way. Your 0.1.40 build is from before #1240, which is why swapping the binary restores the speed.One more gfx103x prompt change between 0.1.40 and 0.1.43, the one your run I already found: Windows HIP caps a bare
--prefill autoat 6144-token chunks (#1630, 0.1.42; your 0.1.40 read in 8192).--prefill auto:8192takes it back if your card has the room.Could you rerun your E-H rematch with an engine built from 0.1.43.1? If it is still below 0.1.40, run it again with
STRATA_MTP_SIDE_STREAM=1set explicitly, and then a bisect would be the next step.@huy-sec commented on GitHub (Oct 23, 2026):
Thanks, that was it. I built 0.1.45 for gfx1031 (same ROCm 10.2.0a20260930,
tools\hip\build_windows.bat) and reran the A/B on the same RX 6700 XT, IQ3_XXS, same three fresh prompts (~16k, ~19k, ~16k tokens),STRATA_HIP_PROMPT_F16=1in every run. I did not setSTRATA_MTP_SIDE_STREAMexplicitly, so this is the gfx103x default. (Each config also loads the experimental speed projection vector, off for every one of these requests.)Prompt reading, tok/s:
--prefill auto= 6144 on Windows HIP)STRATA_RDNA2_SGEMM=1--prefill auto:8192--spec 3 --suffix-draft 3,STRATA_VERIFY_COHERENT=1 STRATA_DOORBELL_STORE=1So 0.1.45 at its defaults is already faster than 0.1.40, and
auto:8192adds about another 7%, as you said.STRATA_RDNA2_SGEMM=1made no measurable difference here, presumably becauseSTRATA_HIP_PROMPT_F16=1already sends the prompt GEMMs down the tuned FP16 path.Decode, alternating rematch, five ~400-token generations each (median): 0.1.40 33.2 tok/s, 0.1.45 with the P4 settings 34.2, the same with
--spec 432.9.Fine to close from my side. One side note in case it helps someone else: my first 0.1.45 build in a fresh folder failed on every
.cufile withclang++: error: unsupported CUDA gpu architecture: gfx1031. The log began with'vswhere.exe' is not recognized:vcvars64.batcouldn't find vswhere on PATH, CMake configured the HIP language without-x hip, and the sources went to clang as CUDA. Adding%ProgramFiles(x86)%\Microsoft Visual Studio\Installerto PATH and deletingbuild-hip-winfixed it.@Niko1221 commented on GitHub (Oct 29, 2026):
Thank you for the careful A/B on 0.1.45. Closing: the gfx103x prompt slowdown was the MTP drafter's side stream (fixed in 0.1.43.1, #2055), and your numbers show 0.1.45 at its defaults above 0.1.40 (570/568/614 against 530/536/498 tok/s), with
--prefill auto:8192adding about 7% on top.Release: https://github.com/Niko1221/Strata/releases/tag/v0.1.43.1