mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1233] `` Windows + Strix Halo (gfx1151, Radeon 8060S): UD-IQ4_XS runs end-to-end — decode flat 29.5-30.4 tok/s at 1K-32K, but a GPU driver timeout (TDR) during a cold 32K prefill `` #505
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#505
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 @Facostarr on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1233
[!] no hipBLASLt tuning table for gfx1151 with hipBLASLt 100500 (have: gfx1151-hipblaslt-100401.txt):
the prompt's dense matrix products use plain hipBLAS
@ankardon commented on GitHub (Oct 6, 2026):
Same issue here.
Setup
Numbers
What I checked / tried in addition
token graph hit: 24575 resident experts decided on the deviceprompt chunk auto: 8192 tokens, a 96-slot ring--ple-io mmap+STRATA_RING_BYTES=1+STRATA_HIP_PROMPT_F16=1together: prefill went up to ~200 tok/s, but the output was only "!!!!!!" repeated and then truncated. looks like NaN logits (token 0). Without the F16 switch, prefill is back at ~80–100, sommapand the byte-budget ring made no measurable difference on their own.gfx1151-hipblaslt-100500.txtfrom PR #944. The log still reports thatSTRATA_HCD_EXACThas no hipBLASLt tuning table loaded and the hyper-connection down projection stays on hipBLASSTRATA_HCD_EXACT=0: prefill still slow@ankardon commented on GitHub (Oct 7, 2026):
I increased my GPU carve out from 16gb in my initial comment to 64 gb. Now I reach ~140 prefill for a 4k prompt, ~183 for a 40k prompt
@gt50 commented on GitHub (Oct 7, 2026):
Same setup here, with numbers and two settings that together take Windows prefill from ~155 to ~550-600 tok/s on 0.1.40.2.
System
strata-windows-x64-hip.zip0.1.40, then 0.1.40.2; ROCm 10.2.0a20260930, hipBLASLt 100500--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto (8192 chunk) --spec 4 --spec-min-p 0.5 --mtp, expert cache auto (all 24,576 experts in the cache, 55.43 GiB)Prefill (prompt tok/s, server log, fresh prompts of ~7-8K tokens)
gfx1151-hipblaslt-100500.txt(32 rows)--no-prefill-borrowNotes:
PF_FUSED,PF_GEMM,HC_UPMIX,PA_FAST,HIP_WMMA,SELECT_WMMA,HC_Q8. I left outPF_SWITCH_MIN_Tso short prompts benefit too: ~2K-token prompts went from 155-165 to 243-272 tok/s.--no-prefill-borrowrows are interleaved A/B/A/B, one engine restart per run.1666 blob reads from the fileper request). With it,the prompt path allocates its own buffers, file reads are 0, all 24,576 experts stay resident, and 28.6 GB of GPU memory is still free.STRATA_HIP_PROMPT_F16=1, given the garbage output reported above.Suggestion: make
--no-prefill-borrowthe default on Strix Halo when the expert cache holds every expert. This matches #1236 (+5% on Linux); on Windows the gain is much larger, likely because the borrowed slots' refill reads from the SSD there. Setup currently drops the flag on every update (it's a hand-added argument), so a default would make it stick.hipBLASLt table for the shapes this engine uses (optional)
I also calibrated a gfx1151/100500 table on this machine with
tune_hipblaslt, against TheRockrocm[libraries,devel,device-gfx1151]==10.2.0a20260930(the hipBLASLt DLL is byte-identical to the zip's).gfx1151-hipblaslt-100401.txt(T = 2047/2048/8191/8192/16383/16384). The shipped 100500 table has 32 rows at T = 4096/8192 only.hipblasGemmEx(3.51x-11.31x).hipBLASLt tuning enabled (84 rows, gfx1151, version 100500). The table is in the collapsed section at the end, in case the extra T values are useful.Two tuner issues:
hipblasGemmExbaseline withrocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98, both with the zip's rocBLAS and TheRock'sdevice-gfx1151package.tune_hipblasltexits on the first failing case and writes--tuning-outonly at the end. I had to run one--caseper process.Remaining gap
Linux on the same chip (docs/STRIX_HALO.md) reads ~1,160-1,300 tok/s, still about 2x what I see now. Happy to run profiling builds or more A/B tests on this machine.
gfx1151-hipblaslt-100500.txt: 84 rows, calibrated on Windows (click to expand)@gt50 commented on GitHub (Oct 7, 2026):
Follow-up to my comment above, correcting the hipBLASLt table result. With
--no-prefill-borrowon, a table gives a steady ~+15% prompt speed. Before, it was within noise, likely because the per-prompt refill from the SSD hid it.Same machine, 0.1.40.2, section 5 switches +
--no-prefill-borrow. Each column is a fresh engine start; the rounds are interleaved as none / upstream / mine, twice. Prompt tok/s (round 1 / round 2):gfx1151-hipblaslt-100500.txt(32 rows)--no-prefill-borrowand the shipped table.@gt50 commented on GitHub (Oct 8, 2026):
Follow-up with a night of measurements on the same machine: where Windows prefill time goes on Strix Halo, and what moved it. The biggest single factor was the drive holding the PLE table. Together with power mode, prefill on a 17.8K-token prompt now reads at ~760 tok/s (Balanced) and ~890 tok/s (performance), up from ~150 tok/s out of the box.
Machine. GMKtec EVO-X2, Ryzen AI Max+ 395 / Radeon 8060S (gfx1151), 128 GB LPDDR5X, Windows 11 Pro 10.0.26300, driver 32.0.31041.1004.
Strata. Official
strata-windows-x64-hip.zip0.1.40.2 (ROCm 10.2.0a20260930, hipBLASLt 100500), Unsloth UD-IQ4_XS.Settings, unless noted.
--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto --spec 4 --mtp --no-prefill-borrowPF_SWITCH_MIN_T, plus the shippedgfx1151-hipblaslt-100500.txt.STRATA_PREFILL_TIMING=1unless it says otherwise.1. Where the time goes: GPU-bound, and the expert stage includes waiting on PLE reads
Balanced mode, model files on the C: drive (Crucial P310 2 TB):
No Windows host overhead to speak of: GPU timeline ≈ wall, and host staging is 0 ms.
The fused expert kernels run fine in isolation. I built
hip_prefill_fused_iqfrom the 0.1.40.2 tree for gfx1151 withtools/hip/build_windows.bat. The self-built engine matches the official one (same speed, same greedy output hash).That's one layer, top 10 over 512 experts. At 8,192 tokens it works out to ~17 TFLOP/s at Balanced clocks (~2.0-2.4 GHz), in line with the ~25 TFLOP/s in #1258 at 2.9 GHz.
Most of the "gemm gate/up" stage is the GPU waiting for PLE rows. The fused path runs gate/up and down inside it, and across five runs that stage was ~8.1 s plus the host's PLE time:
--ple-inflight 1024--ple-row-cache 8388608--ple-io mmapSo the PLE reads sit on the critical path: the GPU idles while they complete. Even the remaining ~8 s is about 84 TFLOP of expert math at ~10 TFLOP/s, below the ~17 the kernel reaches alone. Routing skew, gathers or the real layer types may explain that; I couldn't separate them.
2. The drive holding the PLE table matters a lot on Windows
I put all three GGUF shards on D: (Samsung 990 EVO Plus 4 TB) and pointed
--nativethere. Interleaved runs, Balanced mode:That's +21% from the drive alone. I now keep
Strata-dataon D: through a directory junction, so the config paths are unchanged.Gotcha:
--ple-gguf <copy of shard 2 elsewhere>next to--native(whose folder still holds shard 2) stops the engine withnative dense: duplicate split shard number. Only moving all shards together worked.3. Reserved vs borrowed GPU memory: keep the 64 GB carve-out
Performance power mode, data on D:, same prompt:
--ple-io ram--ple-io ramworks on Windows (PLE table locked in RAM in 19.7 s, PLE 0 ms). But at 32 GB it can't make up for the borrowed-memory loss, and at 64 GB the 28.8 GB table doesn't fit next to the expert cache.4. Power mode
64 GB carve-out, data on D:, ADL sensors sampled twice a second while busy:
In performance mode, 8K / 14K / 24K prompts read at 796 / 897 / 926 tok/s. Decode is unchanged (~42 tok/s): it's bound by memory, not clocks.
5. Things I tried that didn't matter
multiProcessorCount20 for the 8060S (Linux reports 40), so the occupancy variant launchessms * 4= 80 blocks. With an override (STRATA_PF_OCC_GRID= 4 / 8 / 16 in a self-built engine), 8K prompts went 570 / 573 / 577 tok/s, so it isn't the bottleneck.NW_LB = 1per #1180) shows IQ4_XS gate/up at 210 VGPRs, 0 scratch, 7 waves, and IQ4_NL down at 213 VGPRs, 0 scratch, 7 waves. With-DSTRATA_W_LB=8they're 192 VGPRs, 12 / 36 bytes scratch, 8 waves. That's at most ~14% occupancy; I didn't run it end to end.--prefill auto:16384vsautomade no difference (8K-24K prompts, interleaved). With--no-prefill-borrowthe log doesn't print the chunk size, so I couldn't confirm 16384 was actually used.STRATA_PF_FUSED=0: 459 tok/s. The experts move to dequant 9.8 s + gate/up 9.9 s + down 7.3 s, so the fused path stays.Suggestions
--ple-ggufpoint at a copy elsewhere without the duplicate-shard error, or document that all shards must move together. Putting the n-gram table on the fastest drive is an easy win on Windows.--no-prefill-borrow;Unrelated, but in case it helps: #1434 adds GPU load, VRAM, temperature and power to the Monitor for AMD on Windows (#1380). It reads ADL sensors and the OS GPU memory counter, which is where the clocks and power above come from.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.