[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

Closed
opened 2026-11-04 01:43:36 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @Facostarr on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1233

**First end-to-end real-model run on Windows + gfx1151.** Issue #918 covers building, self-tests and the HIP ctest on this chip; as far as I can find, this is the first report of an actual model served on a Radeon 8060S under Windows. Related: #612 (feature request), #613 (a TDR on Windows AMD, discrete card), #953 (the Windows/AMD report format), #1141 (the prebuilt HIP zip on a discrete card), #979 and #505 (hipBLASLt tables on AMD).

## Hardware / OS / build

- Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB unified, 32 GB BIOS carve-out (Windows sees 95.6 GB).
- Windows 11 26H2, build 26300.9457. GPU driver 32.0.31041.1004 (Adrenalin 26.8.1). Driver was NOT touched before or after this test.
- Strata v0.1.40, ready-made `strata-windows-x64-hip.zip` (sha256 matched the published digest). `BUILD.json`: arch gfx1151, ROCm 10.2.0a20260930.
- Setup choices: Unsloth **UD-IQ4_XS**, context **32K**, KV **int8**. Written settings: `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 32768 --kv int8 --resident-budget-gib 55`, server on 127.0.0.1:8080. Strata reports the GPU as 104 GB.

## Measured (server-side timings, never wall clock; medians of 3 runs)

| Context | Prompt tok/s | Output tok/s |
| --- | --- | --- |
| 1K | 104.2 | 29.5 |
| 8K | 76.6 | 30.4 |
| 32K | 72.1 (1 cold run) | 29.5 |

The 32K prefill has a single cold sample — the 3-run pass was interrupted, see below. MTP draft on a warmup call: 13 drafted, 10 accepted.

Two observations that may be useful to you:

1. **Decode is flat from 1K to 32K (29.5–30.4 tok/s).** The expert streaming path holds up well here.
2. **Prefill is 13–18x below your published Linux numbers on the same machine class** (1,293 / 1,370 / 1,320 tok/s on Ryzen AI Max+ 395, 128 GB, UD-IQ4_XS).

## GPU driver timeout (TDR) during a cold 32K prefill

Window: 2026-10-06 ~19:38 local (UTC+2), during the first cold 32K prefill of the 3-run pass. AMD's tool raised: *"The AMD software detected a driver timeout on your system. A problem report has been created."* All earlier runs (decode 1K/8K/32K, prefill 1K/8K) completed normally. **The server survived**: `/health` kept answering `status: ok, loaded: true` afterwards.

Windows System and Application logs showed **no 4101/4102/4103** (and no amd/display provider entry) over the following 60 minutes at Error/Warning/Critical level, so I cannot give you a classic TDR event id — only the AMD tool's own report.

**Hypothesis, not a conclusion.** Setup printed:

[!] no hipBLASLt tuning table for gfx1151 with hipBLASLt 100500 (have: gfx1151-hipblaslt-100401.txt):
the prompt's dense matrix products use plain hipBLAS

So the prefill's dense GEMMs take the unoptimised path while the context is at its largest and the expert cache is under most pressure. That would explain the prefill gap, and a long unoptimised kernel is a plausible candidate for the watchdog. I have **not** regenerated a table, and I have not tried `STRATA_HIP_PROMPT_F16=1` — tell me if either is worth a run and I will report back on the same hardware.

For context on the table question: #979 reports a gfx1201 table for 100201 making prompts *slower* than no table, while #505 reports a 100202 table helping a lot on gfx1100 — so a gfx1151/100500 table is not obviously a win, which is why I did not spend the time unprompted.

## Caveats

- Single machine, single session, no tuning of the engine's 18 auto-on gfx1151 switches.
- A second engine (llama.cpp) baseline at the same context on the same box is being measured separately; I'll append it when it lands.
- Happy to run any instrumented build or flag set you want tested on this exact configuration.
Originally created by @Facostarr on GitHub (Oct 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1233 ```markdown **First end-to-end real-model run on Windows + gfx1151.** Issue #918 covers building, self-tests and the HIP ctest on this chip; as far as I can find, this is the first report of an actual model served on a Radeon 8060S under Windows. Related: #612 (feature request), #613 (a TDR on Windows AMD, discrete card), #953 (the Windows/AMD report format), #1141 (the prebuilt HIP zip on a discrete card), #979 and #505 (hipBLASLt tables on AMD). ## Hardware / OS / build - Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB unified, 32 GB BIOS carve-out (Windows sees 95.6 GB). - Windows 11 26H2, build 26300.9457. GPU driver 32.0.31041.1004 (Adrenalin 26.8.1). Driver was NOT touched before or after this test. - Strata v0.1.40, ready-made `strata-windows-x64-hip.zip` (sha256 matched the published digest). `BUILD.json`: arch gfx1151, ROCm 10.2.0a20260930. - Setup choices: Unsloth **UD-IQ4_XS**, context **32K**, KV **int8**. Written settings: `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 32768 --kv int8 --resident-budget-gib 55`, server on 127.0.0.1:8080. Strata reports the GPU as 104 GB. ## Measured (server-side timings, never wall clock; medians of 3 runs) | Context | Prompt tok/s | Output tok/s | | --- | --- | --- | | 1K | 104.2 | 29.5 | | 8K | 76.6 | 30.4 | | 32K | 72.1 (1 cold run) | 29.5 | The 32K prefill has a single cold sample — the 3-run pass was interrupted, see below. MTP draft on a warmup call: 13 drafted, 10 accepted. Two observations that may be useful to you: 1. **Decode is flat from 1K to 32K (29.5–30.4 tok/s).** The expert streaming path holds up well here. 2. **Prefill is 13–18x below your published Linux numbers on the same machine class** (1,293 / 1,370 / 1,320 tok/s on Ryzen AI Max+ 395, 128 GB, UD-IQ4_XS). ## GPU driver timeout (TDR) during a cold 32K prefill Window: 2026-10-06 ~19:38 local (UTC+2), during the first cold 32K prefill of the 3-run pass. AMD's tool raised: *"The AMD software detected a driver timeout on your system. A problem report has been created."* All earlier runs (decode 1K/8K/32K, prefill 1K/8K) completed normally. **The server survived**: `/health` kept answering `status: ok, loaded: true` afterwards. Windows System and Application logs showed **no 4101/4102/4103** (and no amd/display provider entry) over the following 60 minutes at Error/Warning/Critical level, so I cannot give you a classic TDR event id — only the AMD tool's own report. **Hypothesis, not a conclusion.** Setup printed: ``` [!] no hipBLASLt tuning table for gfx1151 with hipBLASLt 100500 (have: gfx1151-hipblaslt-100401.txt): the prompt's dense matrix products use plain hipBLAS ``` So the prefill's dense GEMMs take the unoptimised path while the context is at its largest and the expert cache is under most pressure. That would explain the prefill gap, and a long unoptimised kernel is a plausible candidate for the watchdog. I have **not** regenerated a table, and I have not tried `STRATA_HIP_PROMPT_F16=1` — tell me if either is worth a run and I will report back on the same hardware. For context on the table question: #979 reports a gfx1201 table for 100201 making prompts *slower* than no table, while #505 reports a 100202 table helping a lot on gfx1100 — so a gfx1151/100500 table is not obviously a win, which is why I did not spend the time unprompted. ## Caveats - Single machine, single session, no tuning of the engine's 18 auto-on gfx1151 switches. - A second engine (llama.cpp) baseline at the same context on the same box is being measured separately; I'll append it when it lands. - Happy to run any instrumented build or flag set you want tested on this exact configuration. ```
Author
Owner

@ankardon commented on GitHub (Oct 6, 2026):

Same issue here.

Setup

  • HP ZBook Ultra G1a, Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB unified RAM
  • Windows 11, Strata v0.1.40 installed via START-HERE.bat
  • Unsloth UD-IQ4_XS

Numbers

  • Decode: ~25–30 tok/s typical (range 20–45, mostly around 25 to 30 in my few tests)
  • Prefill: ~80–100 tok/s,
  • For comparison, llama.cpp (Vulkan, Unsloth build with MTP) on the same machine: ~150–280 tok/s prefill, ~15 to 30 tok/s decode

What I checked / tried in addition

  • log shows token graph hit: 24575 resident experts decided on the device
  • Prompt chunking: prompt chunk auto: 8192 tokens, a 96-slot ring
  • --ple-io mmap + STRATA_RING_BYTES=1 + STRATA_HIP_PROMPT_F16=1 together: 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, so mmap and the byte-budget ring made no measurable difference on their own.
  • Tried adding gfx1151-hipblaslt-100500.txt from PR #944. The log still reports that STRATA_HCD_EXACT has no hipBLASLt tuning table loaded and the hyper-connection down projection stays on hipBLAS
  • STRATA_HCD_EXACT=0: prefill still slow
<!-- gh-comment-id:6025116527 --> @ankardon commented on GitHub (Oct 6, 2026): Same issue here. **Setup** - HP ZBook Ultra G1a, Ryzen AI Max+ 395, Radeon 8060S (gfx1151), 128 GB unified RAM - Windows 11, Strata v0.1.40 installed via START-HERE.bat - Unsloth UD-IQ4_XS **Numbers** - Decode: ~25–30 tok/s typical (range 20–45, mostly around 25 to 30 in my few tests) - Prefill: ~80–100 tok/s, - For comparison, llama.cpp (Vulkan, Unsloth build with MTP) on the same machine: ~150–280 tok/s prefill, ~15 to 30 tok/s decode **What I checked / tried in addition** - log shows `token graph hit: 24575 resident experts decided on the device` - Prompt chunking: `prompt chunk auto: 8192 tokens, a 96-slot ring` - `--ple-io mmap` + `STRATA_RING_BYTES=1` + `STRATA_HIP_PROMPT_F16=1` together: 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, so `mmap` and the byte-budget ring made no measurable difference on their own. - Tried adding `gfx1151-hipblaslt-100500.txt` from PR #944. The log still reports that `STRATA_HCD_EXACT` has no hipBLASLt tuning table loaded and the hyper-connection down projection stays on hipBLAS - `STRATA_HCD_EXACT=0`: prefill still slow
Author
Owner

@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

<!-- gh-comment-id:6033967125 --> @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
Author
Owner

@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

CPU / GPU Ryzen AI Max+ 395 w/ Radeon 8060S (gfx1151)
Memory 128 GB; 64 GB BIOS carve-out, so Windows sees 64 GB
OS / driver Windows 11 Pro 10.0.26300, GPU driver 32.0.31041.1004
SSD NVMe
Strata ready-made strata-windows-x64-hip.zip 0.1.40, then 0.1.40.2; ROCm 10.2.0a20260930, hipBLASLt 100500
Model Unsloth UD-IQ4_XS
Settings --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)

Engine Configuration 8,091-8,135 tok 6,982-7,133 tok
0.1.40 defaults 151-156 166
0.1.40 + STRIX_HALO.md section 5 switches 256-300 288-350
0.1.40.2 section 5 switches + shipped gfx1151-hipblaslt-100500.txt (32 rows) 315-321 363-369
0.1.40.2 + --no-prefill-borrow 549-560 588-597

Notes:

  • Section 5 switches: PF_FUSED, PF_GEMM, HC_UPMIX, PA_FAST, HIP_WMMA, SELECT_WMMA, HC_Q8. I left out PF_SWITCH_MIN_T so short prompts benefit too: ~2K-token prompts went from 155-165 to 243-272 tok/s.
  • Measurement: the --no-prefill-borrow rows are interleaved A/B/A/B, one engine restart per run.
  • Why the flag helps: without it, each prompt borrows 1,666 cache slots (3.75 GiB) and re-reads them from the GGUF afterwards (1666 blob reads from the file per 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.
  • Decode with and without the flag is the same in 3 longer answers per arm (214/400/241 tokens: 50.1-54.5, 41.9-43.3, 43.1-44.2 tok/s), with identical draft acceptance.
  • Not tried: STRATA_HIP_PROMPT_F16=1, given the garbage output reported above.

Suggestion: make --no-prefill-borrow the 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 TheRock rocm[libraries,devel,device-gfx1151]==10.2.0a20260930 (the hipBLASLt DLL is byte-identical to the zip's).

  • Rows: 84 of the 90 shapes of gfx1151-hipblaslt-100401.txt (T = 2047/2048/8191/8192/16383/16384). The shipped 100500 table has 32 rows at T = 4096/8192 only.
  • Per GEMM: a median 6.34x over hipblasGemmEx (3.51x-11.31x).
  • End to end: within noise next to the section 5 switches on 0.1.40 (256-290 vs 284 tok/s at 8K).
  • Engine check: it loads as 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:

  1. 6 shapes can't be tuned: the bf16 N=1, K=2560 shapes fail in the hipblasGemmEx baseline with rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98, both with the zip's rocBLAS and TheRock's device-gfx1151 package.
  2. One failure loses the whole run: tune_hipblaslt exits on the first failing case and writes --tuning-out only at the end. I had to run one --case per 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)
# solution IDs are scoped to this hipBLASLt version and device architecture
STRATA_HIPBLASLT_TUNING_V1 gfx1151 100500
bf16 10240 320 10240 2047 1254
bf16 128 2560 128 2047 1254
bf16 2560 2560 2560 2047 1254
bf16 320 10240 320 2047 1253
bf16 48 2560 96 2047 1253
bf16 4 10240 4 2047 1251
bf16 512 2560 512 2047 1254
f16 10240 2560 10240 2047 2542
f16 12288 2560 12288 2047 2542
f16 2560 6144 2560 2047 2542
f16 2560 640 2560 2047 2542
f16 512 2560 512 2047 2542
f16 6144 2560 6144 2047 2542
f16 640 2560 640 2047 2542
bf16 10240 320 10240 2048 1254
bf16 128 2560 128 2048 1254
bf16 2560 2560 2560 2048 1254
bf16 320 10240 320 2048 1253
bf16 48 2560 96 2048 1254
bf16 4 10240 4 2048 1251
bf16 512 2560 512 2048 1254
f16 10240 2560 10240 2048 2542
f16 12288 2560 12288 2048 2542
f16 2560 6144 2560 2048 2542
f16 2560 640 2560 2048 2542
f16 512 2560 512 2048 2542
f16 6144 2560 6144 2048 2542
f16 640 2560 640 2048 2542
bf16 10240 320 10240 8191 1254
bf16 128 2560 128 8191 1254
bf16 2560 2560 2560 8191 1254
bf16 320 10240 320 8191 1254
bf16 48 2560 96 8191 1251
bf16 4 10240 4 8191 1251
bf16 512 2560 512 8191 1254
f16 10240 2560 10240 8191 2542
f16 12288 2560 12288 8191 2542
f16 2560 6144 2560 8191 2542
f16 2560 640 2560 8191 2542
f16 512 2560 512 8191 2542
f16 6144 2560 6144 8191 2542
f16 640 2560 640 8191 2542
bf16 10240 320 10240 8192 1254
bf16 128 2560 128 8192 1253
bf16 2560 2560 2560 8192 1254
bf16 320 10240 320 8192 1254
bf16 48 2560 96 8192 1252
bf16 4 10240 4 8192 1251
bf16 512 2560 512 8192 1254
f16 10240 2560 10240 8192 2542
f16 12288 2560 12288 8192 2542
f16 2560 6144 2560 8192 2542
f16 2560 640 2560 8192 2542
f16 512 2560 512 8192 2542
f16 6144 2560 6144 8192 2542
f16 640 2560 640 8192 2542
bf16 10240 320 10240 16383 1254
bf16 128 2560 128 16383 1253
bf16 2560 2560 2560 16383 1254
bf16 320 10240 320 16383 1254
bf16 48 2560 96 16383 1251
bf16 4 10240 4 16383 1252
bf16 512 2560 512 16383 1254
f16 10240 2560 10240 16383 2542
f16 12288 2560 12288 16383 2542
f16 2560 6144 2560 16383 2542
f16 2560 640 2560 16383 2542
f16 512 2560 512 16383 2542
f16 6144 2560 6144 16383 2542
f16 640 2560 640 16383 2542
bf16 10240 320 10240 16384 1254
bf16 128 2560 128 16384 1254
bf16 2560 2560 2560 16384 1254
bf16 320 10240 320 16384 1254
bf16 48 2560 96 16384 1252
bf16 4 10240 4 16384 1251
bf16 512 2560 512 16384 1254
f16 10240 2560 10240 16384 2542
f16 12288 2560 12288 16384 2542
f16 2560 6144 2560 16384 2542
f16 2560 640 2560 16384 2542
f16 512 2560 512 16384 2542
f16 6144 2560 6144 16384 2542
f16 640 2560 640 16384 2542
<!-- gh-comment-id:6043642121 --> @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 | | | | --- | --- | | CPU / GPU | Ryzen AI Max+ 395 w/ Radeon 8060S (gfx1151) | | Memory | 128 GB; **64 GB BIOS carve-out**, so Windows sees 64 GB | | OS / driver | Windows 11 Pro 10.0.26300, GPU driver 32.0.31041.1004 | | SSD | NVMe | | Strata | ready-made `strata-windows-x64-hip.zip` 0.1.40, then **0.1.40.2**; ROCm 10.2.0a20260930, hipBLASLt 100500 | | Model | Unsloth UD-IQ4_XS | | Settings | `--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) | Engine | Configuration | 8,091-8,135 tok | 6,982-7,133 tok | | --- | --- | ---: | ---: | | 0.1.40 | defaults | 151-156 | 166 | | 0.1.40 | + STRIX_HALO.md section 5 switches | 256-300 | 288-350 | | 0.1.40.2 | section 5 switches + shipped `gfx1151-hipblaslt-100500.txt` (32 rows) | 315-321 | 363-369 | | 0.1.40.2 | **+ `--no-prefill-borrow`** | **549-560** | **588-597** | Notes: - **Section 5 switches:** `PF_FUSED`, `PF_GEMM`, `HC_UPMIX`, `PA_FAST`, `HIP_WMMA`, `SELECT_WMMA`, `HC_Q8`. I left out `PF_SWITCH_MIN_T` so short prompts benefit too: ~2K-token prompts went from 155-165 to 243-272 tok/s. - **Measurement:** the `--no-prefill-borrow` rows are interleaved A/B/A/B, one engine restart per run. - **Why the flag helps:** without it, each prompt borrows 1,666 cache slots (3.75 GiB) and re-reads them from the GGUF afterwards (`1666 blob reads from the file` per 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. - **Decode** with and without the flag is the same in 3 longer answers per arm (214/400/241 tokens: 50.1-54.5, 41.9-43.3, 43.1-44.2 tok/s), with identical draft acceptance. - **Not tried:** `STRATA_HIP_PROMPT_F16=1`, given the garbage output reported above. **Suggestion:** make `--no-prefill-borrow` the 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 TheRock `rocm[libraries,devel,device-gfx1151]==10.2.0a20260930` (the hipBLASLt DLL is byte-identical to the zip's). - **Rows:** 84 of the 90 shapes of `gfx1151-hipblaslt-100401.txt` (T = 2047/2048/8191/8192/16383/16384). The shipped 100500 table has 32 rows at T = 4096/8192 only. - **Per GEMM:** a median 6.34x over `hipblasGemmEx` (3.51x-11.31x). - **End to end:** within noise next to the section 5 switches on 0.1.40 (256-290 vs 284 tok/s at 8K). - **Engine check:** it loads as `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: 1. **6 shapes can't be tuned:** the bf16 N=1, K=2560 shapes fail in the `hipblasGemmEx` baseline with `rocBLAS error from hip error code: 'hipErrorInvalidDeviceFunction':98`, both with the zip's rocBLAS and TheRock's `device-gfx1151` package. 2. **One failure loses the whole run:** `tune_hipblaslt` exits on the first failing case and writes `--tuning-out` only at the end. I had to run one `--case` per 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. <details> <summary><code>gfx1151-hipblaslt-100500.txt</code>: 84 rows, calibrated on Windows (click to expand)</summary> ``` # solution IDs are scoped to this hipBLASLt version and device architecture STRATA_HIPBLASLT_TUNING_V1 gfx1151 100500 bf16 10240 320 10240 2047 1254 bf16 128 2560 128 2047 1254 bf16 2560 2560 2560 2047 1254 bf16 320 10240 320 2047 1253 bf16 48 2560 96 2047 1253 bf16 4 10240 4 2047 1251 bf16 512 2560 512 2047 1254 f16 10240 2560 10240 2047 2542 f16 12288 2560 12288 2047 2542 f16 2560 6144 2560 2047 2542 f16 2560 640 2560 2047 2542 f16 512 2560 512 2047 2542 f16 6144 2560 6144 2047 2542 f16 640 2560 640 2047 2542 bf16 10240 320 10240 2048 1254 bf16 128 2560 128 2048 1254 bf16 2560 2560 2560 2048 1254 bf16 320 10240 320 2048 1253 bf16 48 2560 96 2048 1254 bf16 4 10240 4 2048 1251 bf16 512 2560 512 2048 1254 f16 10240 2560 10240 2048 2542 f16 12288 2560 12288 2048 2542 f16 2560 6144 2560 2048 2542 f16 2560 640 2560 2048 2542 f16 512 2560 512 2048 2542 f16 6144 2560 6144 2048 2542 f16 640 2560 640 2048 2542 bf16 10240 320 10240 8191 1254 bf16 128 2560 128 8191 1254 bf16 2560 2560 2560 8191 1254 bf16 320 10240 320 8191 1254 bf16 48 2560 96 8191 1251 bf16 4 10240 4 8191 1251 bf16 512 2560 512 8191 1254 f16 10240 2560 10240 8191 2542 f16 12288 2560 12288 8191 2542 f16 2560 6144 2560 8191 2542 f16 2560 640 2560 8191 2542 f16 512 2560 512 8191 2542 f16 6144 2560 6144 8191 2542 f16 640 2560 640 8191 2542 bf16 10240 320 10240 8192 1254 bf16 128 2560 128 8192 1253 bf16 2560 2560 2560 8192 1254 bf16 320 10240 320 8192 1254 bf16 48 2560 96 8192 1252 bf16 4 10240 4 8192 1251 bf16 512 2560 512 8192 1254 f16 10240 2560 10240 8192 2542 f16 12288 2560 12288 8192 2542 f16 2560 6144 2560 8192 2542 f16 2560 640 2560 8192 2542 f16 512 2560 512 8192 2542 f16 6144 2560 6144 8192 2542 f16 640 2560 640 8192 2542 bf16 10240 320 10240 16383 1254 bf16 128 2560 128 16383 1253 bf16 2560 2560 2560 16383 1254 bf16 320 10240 320 16383 1254 bf16 48 2560 96 16383 1251 bf16 4 10240 4 16383 1252 bf16 512 2560 512 16383 1254 f16 10240 2560 10240 16383 2542 f16 12288 2560 12288 16383 2542 f16 2560 6144 2560 16383 2542 f16 2560 640 2560 16383 2542 f16 512 2560 512 16383 2542 f16 6144 2560 6144 16383 2542 f16 640 2560 640 16383 2542 bf16 10240 320 10240 16384 1254 bf16 128 2560 128 16384 1254 bf16 2560 2560 2560 16384 1254 bf16 320 10240 320 16384 1254 bf16 48 2560 96 16384 1252 bf16 4 10240 4 16384 1251 bf16 512 2560 512 16384 1254 f16 10240 2560 10240 16384 2542 f16 12288 2560 12288 16384 2542 f16 2560 6144 2560 16384 2542 f16 2560 640 2560 16384 2542 f16 512 2560 512 16384 2542 f16 6144 2560 6144 16384 2542 f16 640 2560 640 16384 2542 ``` </details>
Author
Owner

@gt50 commented on GitHub (Oct 7, 2026):

Follow-up to my comment above, correcting the hipBLASLt table result. With --no-prefill-borrow on, 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):

Prompt No table Shipped gfx1151-hipblaslt-100500.txt (32 rows) My 84-row table
1,891 tokens 301 / 341 373 / 376 373 / 373
2,018 tokens 342 / 363 406 / 407 406 / 406
8,135 tokens 499 / 520 572 / 576 572 / 575
7,133 tokens 507 / 527 599 / 602 601 / 602
13,844 tokens 608 / 625 715 / 714 714 / 718
mean 463 534 534
  • The shipped 32-row table is as good as my 84-row one, so the extra T values aren't needed. I'm using the shipped one.
  • Decode is the same in all three, about 30-37 tok/s on these short answers.
  • Overall on Windows: from ~155 tok/s out of the box to ~570-715 tok/s at 7K-14K with the section 5 switches, --no-prefill-borrow and the shipped table.
<!-- gh-comment-id:6043997296 --> @gt50 commented on GitHub (Oct 7, 2026): Follow-up to my comment above, correcting the hipBLASLt table result. **With `--no-prefill-borrow` on, 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): | Prompt | No table | Shipped `gfx1151-hipblaslt-100500.txt` (32 rows) | My 84-row table | | --- | ---: | ---: | ---: | | 1,891 tokens | 301 / 341 | 373 / 376 | 373 / 373 | | 2,018 tokens | 342 / 363 | 406 / 407 | 406 / 406 | | 8,135 tokens | 499 / 520 | 572 / 576 | 572 / 575 | | 7,133 tokens | 507 / 527 | 599 / 602 | 601 / 602 | | 13,844 tokens | 608 / 625 | 715 / 714 | 714 / 718 | | **mean** | **463** | **534** | **534** | - **The shipped 32-row table is as good as my 84-row one**, so the extra T values aren't needed. I'm using the shipped one. - **Decode** is the same in all three, about 30-37 tok/s on these short answers. - **Overall on Windows:** from ~155 tok/s out of the box to ~570-715 tok/s at 7K-14K with the section 5 switches, `--no-prefill-borrow` and the shipped table.
Author
Owner

@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.zip 0.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-borrow
  • The section 5 switches without PF_SWITCH_MIN_T, plus the shipped gfx1151-hipblaslt-100500.txt.
  • All 24,576 experts in the cache (55.43 GiB).
  • Every number is a fresh 17,844-token prompt with STRATA_PREFILL_TIMING=1 unless 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):

17837 tokens, GPU timeline 28409 ms, wall 28423 ms, host staging 0 ms:
  gemm gate/up 15783 (55.6%)  hc read 3101  qsa select 1397  combine 1346  dequant 1027  gdn recurrence 976 ...
host: chunk setup 27 ms, waiting for each chunk 502 ms, after each chunk 171 ms, PLE 7472 ms

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_iq from the 0.1.40.2 tree for gfx1151 with tools/hip/build_windows.bat. The self-built engine matches the official one (same speed, same greedy output hash).

Layer type 2,048 tokens 3,584 tokens 8,192 tokens
IQ3_S / IQ4_NL 15.1 ms 24.7 ms 46.2 ms
IQ3_XXS / IQ4_NL 14.8 ms 24.0 ms 45.6 ms

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 setting prompt tok/s gemm gate/up stage host PLE stage − PLE
direct (default) 638 15.4 s 7.3 s 8.1 s
--ple-inflight 1024 653 14.8 s 6.7 s 8.1 s
--ple-row-cache 8388608 651 14.8 s 6.7 s 8.1 s
--ple-io mmap 481 24.5 s 16.6 s 7.9 s
direct (again) 654 14.8 s 6.6 s 8.2 s

So 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 --native there. Interleaved runs, Balanced mode:

PLE table on host PLE prompt tok/s
C: Crucial P310 7.25 s 625-637
D: Samsung 990 EVO Plus 1.6-1.75 s 769-770

That's +21% from the drive alone. I now keep Strata-data on 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 with native 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:

BIOS carve-out prompt tok/s GPU timeline non-expert stages decode (300-token answer) RAM left with Strata loaded
32 GB 794 22.2 s 12.7 s 40.8 tok/s 35.7 GB free
32 GB + --ple-io ram 829 21.3 s 13.1 s (PLE 0 ms) 40.4 tok/s 10.5 GB free
64 GB 887 19.9 s 10.9 s 42.0 tok/s comfortable
96 GB 879 20.1 s 11.5 s 42.7 tok/s 5.6 GB available, commit 100.6 of 102.1 GB
  • 32 GB is slower. All 24,576 experts still fit, but more of the GPU's data lives in borrowed (shared) memory, and the non-expert stages get ~1.8 s slower at the same clocks. That matches your 16 → 64 GB observation above.
  • 96 GB gains nothing and starves Windows.
  • --ple-io ram works 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.
  • The greedy answer was byte-identical in every configuration.

4. Power mode

64 GB carve-out, data on D:, ADL sensors sampled twice a second while busy:

prompt tok/s GPU clock (median) chip power (ASIC) GFX temp
Balanced 747-770 2.0-2.46 GHz ~85 W sustained (peaks 110) up to 81 °C
Performance 887 2.75 GHz ~121 W (peaks 138) median 79-85, peaks 92 °C

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

  • Launch grid. HIP on Windows reports multiProcessorCount 20 for the 8060S (Linux reports 40), so the occupancy variant launches sms * 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.
  • Register cap. The kernel resource report for the clang in ROCm 10.2 (NW_LB = 1 per #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=8 they're 192 VGPRs, 12 / 36 bytes scratch, 8 waves. That's at most ~14% occupancy; I didn't run it end to end.
  • Bigger chunks. --prefill auto:16384 vs auto made no difference (8K-24K prompts, interleaved). With --no-prefill-borrow the 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

  1. Overlap the PLE row reads with GPU work, for example by fetching the next chunk's rows during the current chunk. On this machine they're fully exposed: 1.5-7 s per 17.8K prompt depending on the drive.
  2. Let --ple-gguf point 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.
  3. A Windows Strix Halo note in docs/STRIX_HALO.md:
    • keep the carve-out at 64 GB (reserved memory is faster for the GPU than shared memory on Windows, and 96 GB starves the OS);
    • --no-prefill-borrow;
    • the section 5 switches;
    • model data on the fastest NVMe.
  4. Print the prompt chunk size when the prompt path allocates its own buffers.

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.

<!-- gh-comment-id:6055657012 --> @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.zip` 0.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-borrow` - The section 5 switches without `PF_SWITCH_MIN_T`, plus the shipped `gfx1151-hipblaslt-100500.txt`. - All 24,576 experts in the cache (55.43 GiB). - Every number is a fresh 17,844-token prompt with `STRATA_PREFILL_TIMING=1` unless 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): ``` 17837 tokens, GPU timeline 28409 ms, wall 28423 ms, host staging 0 ms: gemm gate/up 15783 (55.6%) hc read 3101 qsa select 1397 combine 1346 dequant 1027 gdn recurrence 976 ... host: chunk setup 27 ms, waiting for each chunk 502 ms, after each chunk 171 ms, PLE 7472 ms ``` **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_iq` from the 0.1.40.2 tree for gfx1151 with `tools/hip/build_windows.bat`. The self-built engine matches the official one (same speed, same greedy output hash). | Layer type | 2,048 tokens | 3,584 tokens | 8,192 tokens | | --- | ---: | ---: | ---: | | IQ3_S / IQ4_NL | 15.1 ms | 24.7 ms | 46.2 ms | | IQ3_XXS / IQ4_NL | 14.8 ms | 24.0 ms | 45.6 ms | 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 setting | prompt tok/s | gemm gate/up stage | host PLE | stage − PLE | | --- | ---: | ---: | ---: | ---: | | direct (default) | 638 | 15.4 s | 7.3 s | 8.1 s | | `--ple-inflight 1024` | 653 | 14.8 s | 6.7 s | 8.1 s | | `--ple-row-cache 8388608` | 651 | 14.8 s | 6.7 s | 8.1 s | | `--ple-io mmap` | 481 | 24.5 s | 16.6 s | 7.9 s | | direct (again) | 654 | 14.8 s | 6.6 s | 8.2 s | So 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 `--native` there. Interleaved runs, Balanced mode: | PLE table on | host PLE | prompt tok/s | | --- | ---: | ---: | | C: Crucial P310 | 7.25 s | 625-637 | | D: Samsung 990 EVO Plus | 1.6-1.75 s | 769-770 | That's +21% from the drive alone. I now keep `Strata-data` on 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 with `native 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: | BIOS carve-out | prompt tok/s | GPU timeline | non-expert stages | decode (300-token answer) | RAM left with Strata loaded | | --- | ---: | ---: | ---: | ---: | --- | | 32 GB | 794 | 22.2 s | 12.7 s | 40.8 tok/s | 35.7 GB free | | 32 GB + `--ple-io ram` | 829 | 21.3 s | 13.1 s (PLE 0 ms) | 40.4 tok/s | 10.5 GB free | | **64 GB** | **887** | **19.9 s** | **10.9 s** | 42.0 tok/s | comfortable | | 96 GB | 879 | 20.1 s | 11.5 s | 42.7 tok/s | 5.6 GB available, commit 100.6 of 102.1 GB | - **32 GB is slower.** All 24,576 experts still fit, but more of the GPU's data lives in borrowed (shared) memory, and the non-expert stages get ~1.8 s slower at the same clocks. That matches your 16 → 64 GB observation above. - **96 GB gains nothing and starves Windows.** - **`--ple-io ram` works 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. - The greedy answer was byte-identical in every configuration. ### 4. Power mode 64 GB carve-out, data on D:, ADL sensors sampled twice a second while busy: | | prompt tok/s | GPU clock (median) | chip power (ASIC) | GFX temp | | --- | ---: | --- | --- | --- | | Balanced | 747-770 | 2.0-2.46 GHz | ~85 W sustained (peaks 110) | up to 81 °C | | Performance | 887 | 2.75 GHz | ~121 W (peaks 138) | median 79-85, peaks 92 °C | 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 - **Launch grid.** HIP on Windows reports `multiProcessorCount` **20** for the 8060S (Linux reports 40), so the occupancy variant launches `sms * 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. - **Register cap.** The kernel resource report for the clang in ROCm 10.2 (`NW_LB = 1` per #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=8` they're 192 VGPRs, 12 / 36 bytes scratch, 8 waves. That's at most ~14% occupancy; I didn't run it end to end. - **Bigger chunks.** `--prefill auto:16384` vs `auto` made no difference (8K-24K prompts, interleaved). With `--no-prefill-borrow` the 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 1. **Overlap the PLE row reads with GPU work**, for example by fetching the next chunk's rows during the current chunk. On this machine they're fully exposed: 1.5-7 s per 17.8K prompt depending on the drive. 2. **Let `--ple-gguf` point 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. 3. **A Windows Strix Halo note in docs/STRIX_HALO.md:** - keep the carve-out at 64 GB (reserved memory is faster for the GPU than shared memory on Windows, and 96 GB starves the OS); - `--no-prefill-borrow`; - the section 5 switches; - model data on the fastest NVMe. 4. **Print the prompt chunk size** when the prompt path allocates its own buffers. 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.
Author
Owner

@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.

<!-- gh-comment-id:6156037104 --> @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](https://github.com/Niko1221/Strata/releases/tag/v0.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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#505
No description provided.