mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 21:05:40 +07:00
[GH-ISSUE #5009] [Engine] 0.1.55 16-row window is CPU-bound on 6-P-core hosts (gfx1100) #2314
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#2314
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 @ditupao on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5009
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (a build from a checkout)
What happened
On a single RX 7900 XTX (gfx1100), the 0.1.55 engine shipped in 0.2.9 is ~20% slower at prompt prefill
than the 0.1.53 engine shipped in 0.2.7.1. Same model, same options, same environment variables, same
CPU pinning. Decode is unchanged.
Raw runs (32K prefill, t/s): 0.1.53
2908.2 / 2934.1 / 2756.7; 0.1.55 shipped2362.1 / 2316.8 / 2295.3; 0.1.55 with 8 rows2962.7 / 2885.3 / 2913.9.Other engines on the same box: 0.1.45 2,947.5; 0.1.47 2,957.7; 0.1.50 2,977.2; 0.1.53 2,908.2;
0.1.55 (0.2.9) 2,316.8; 0.1.55 rebuilt 8-row 2,913.9. 0.1.45-0.1.50 are flat, so the drop lands
between 0.1.53 and 0.1.55, matching the 0.2.8 note: "The HIP engines now check and batch up to 16 rows
at once instead of 8" and "The 16-row windows are a build option (-DSTRATA_WINDOW_MAX_T=8); there is no
switch at run time."
The 16-row window was added for the four-card R9700 profile and multi-request batching. On one gfx1100
card with a single request it does not raise occupancy and appears to make the prompt path stage work
less efficiently. Decode is unaffected (70.9 -> 70.3), consistent with a prompt/batch-path change.
Smallest steps or command that reproduce it
config and environment (below), pinned to the same cores.
of timings.prompt_per_second from the engine's own API response.
The prefill returns to 0.1.53's level (2,913.9).
Reproduction status
Reproduced locally
Strata version
Strata 0.2.9 - engine 0.1.55 (control: Strata 0.2.7.1 - engine 0.1.53)
Graphics card, memory and system
RX 7900 XTX 24 GB (gfx1100, PCIe 4.0 x16) - 128 GB DDR4-2666 - Ubuntu 24.04.5 (kernel 6.17.0-42) -
ROCm 7.2.4 (hipBLASLt 1.2.2) - Intel i5-13500 (6P + 8E; the run is pinned to the 6 P-cores, taskset -c 0-11)
Model, size and settings
Swift-1.5-Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS, native pack swift-iq3_xxs - 256K context
(--max-context 262144 --kv int8 --kv-resident 32768) - MTP draft - pictures on.
Launch:
--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto:32768 --spec 4 --spec-min-p 0.70 --mtp <rt> --pcie-frac 0 --expert-cache autoEnvironment (the RDNA3 single-GPU set from docs/RDNA3_SETTINGS.md, identical for every engine compared):
STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1 STRATA_GR_RDNA=1 STRATA_GR_RDNA_Q8=1 STRATA_RDNA_Q6K=1 STRATA_GR_RDNA_A8=1 STRATA_QFUSE=1 STRATA_COMBINE_CPU=1 STRATA_PF_FUSED=1 STRATA_PREFILL_RING=192 STRATA_PREFILL_CPU_SHARE=auto STRATA_PREFILL_CPU_SHARE_MAX=6144 STRATA_PREFILL_MMQ_TILE_ROWS=32 STRATA_PF_F16=2 STRATA_PF_GEMM=1 STRATA_PF_HCDOWN=1 STRATA_PF_PAD=1 STRATA_GDN_CHUNKED=1 STRATA_GDN_CONVL2=1 STRATA_GDN_HEAD=1 STRATA_GDN_NOY=1 STRATA_GDN_PP=1 STRATA_PA_FAST=1 STRATA_KV_HOST_DMA=1 STRATA_STAGER_RING=64 GPU_MAX_HW_QUEUES=6 STRATA_HIPBLASLT_TUNING=gfx1100-hipblaslt-100200.txtLogs
Not attached: the logs only show the expert-cache fill and the ready line. Every number above comes
from the engine's timings fields, not from the Monitor.
Suggested fixes: (1) default the window per architecture - keep 16 rows for the multi-card /
multi-request cases, default to 8 on a single gfx1100 card; (2) expose a runtime switch such as
STRATA_WINDOW_MAX_T=8 so the regression can be recovered without a rebuild; (3) if neither, document
the rebuild flag in the 0.2.9 release notes.
Happy to run more configurations (more repeats, 131K/250K prompts, decode-only, or a second
quantization) to confirm.
@github-actions[bot] commented on GitHub (Nov 2, 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
@ditupao commented on GitHub (Nov 3, 2026):
Follow-up: the regression disappeared after a CPU upgrade
I changed the host CPU (i5-13500 → i7-14700K) and re-ran the same test. The GPU (RX 7900 XTX), ROCm 7.2.4, the IQ3_S model and pack, the launch options and the RDNA3 environment are all unchanged — only the CPU differs.
32K prompt, greedy,
presence_penalty 0, 2 runs, median:-DSTRATA_WINDOW_MAX_T=8On the old 6-core host the 16-row window lost 20% and the 8-row rebuild recovered it. On the 14700K the stock 0.1.55 build matches the 8-row rebuild — the gap is gone.
So this was not a kernel regression: the wider verify window is CPU-bound on a 6-P-core host (the prompt path could not be fed), and the 16-row default is fine once the CPU can keep up. My original report measured a real effect, but I attributed it to the kernel instead of the CPU throughput limit.
No rebuild flag is needed on this machine; I run the stock 0.1.55 package.
Thanks for the
-DSTRATA_WINDOW_MAX_Thint — without it the diagnosis would not have been possible.