[GH-ISSUE #1386] 2x RX 7900 XTX (gfx1100, layer split): STRATA_PF_GEMM is worth ~7% prefill and is off by default #561

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

Originally created by @yalu-arch on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1386

2× RX 7900 XTX (gfx1100, layer split): STRATA_PF_GEMM is worth ~7% prefill and is off by default

TL;DR

  • On gfx1100 with a 125B-class MoE (IQ3_S native experts on a 2-card layer split), 0.1.40 improves two of the three
    directions a lot: cold start 166 s → 95 s (−43%, #699 read-ahead) and decode 46.7 → 56.6 tok/s
    (+21%, shared-expert fork default-off, #826/#816)
    . Both claims verified on AMD hardware here.
  • But 0.1.40 measured 9–11% slower prefill than 0.1.39 for me until I found that the new STRATA_PF_GEMM is
    opt-in and off by default
    . That switch is worth +7.4% over the 0.1.40 default, which brings prefill back to
    within 3% of 0.1.39. Worth a release-note line, or a default-on for gfx11 if the numbers hold elsewhere.
  • I calibrated gfx1100-hipblaslt-100201.txt with tools/hip/tune_hipblaslt for this ROCm (hipBLASLt 1.2.1 →
    version number 100201); the shipped tables are 100100/100200/100202/100401/100500, so 1.2.1 is refused by the
    version check. The table loads, hip_prefill_hipblaslt_gemm reports fallbacks=0, and it is end-to-end neutral
    on my model
    (my dense GEMMs are WMMA-dominated) although single shapes gain up to 5.46× over hipBLASEx in
    the tuner. Happy to send it as a PR (like #745) if you want that library version covered.
  • Open question: with a self-calibrated table, hip_prefill_hcd_exact_parity stays skipped with
    the table sends no tested T to solution 1176 / 1177, i.e. the HCD-exact kernel never engages. Expected?

Environment

GPUs 2× Radeon RX 7900 XTX (gfx1100, 24 GB each), layer split: layers 0-24 (card 0), 25-47 (card 1), one hand-off per window
Host Dell Precision T7910, 2× Xeon E5-2683 v4 (32 threads), 125 GB RAM, Ubuntu; 4 GPUs total (the other two serve unrelated work)
ROCm 7.2.0 (7.2.26015-fc0010cf6a), hipBLASLt 1.2.1 → version number 100201, ROCM-SMI-LIB 7.8.0
Engine self-built HIP/gfx1100 from the v0.1.40.1 tree (BUILD.json: version 0.1.40, backend hip, archs gfx1100, vision: none), pinned llama.cpp 3cf0325
Server serve/ from v0.1.40.1 (the engine is the 0.1.40 one, as your release note says)
Model Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 48 layers, pack built with tools/iq_pack.py (native experts); the PLE shard is passed as --ple-gguf
Flags --max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --layer-split auto
Env STRATA_WMMA_GEMM=1 (+ the switches discussed below)
Loaded state 19,084 expert slots, 78% of the experts resident, 592 MiB VRAM free, prompt chunk auto 8192 / 96-slot ring, MTP draft head 212.9 MiB

All measurements below are the engine's own strata serve: prompt … lines, same pack, same config, same script per
pair; prompts are greedy, reasoning_effort=none, generation capped at 8 tokens for the ladder cells (so the numbers
are prefill throughput, not end-to-end).

1. Cold start: read-ahead (#699) works on RDNA3

166 s → 95 s (−43%) to HTTP-ready, both arms after evicting the page cache by reading an unrelated 80 GB file
(the box has no passwordless sudo, so no drop_caches; reading the other model's weights is my substitute, same
method for both arms). Warm restart of the same config: 60–79 s. Nothing here claims your RTX 5090 number
(920 s → 70 s); this is just the AMD-side confirmation.

2. Decode: shared-expert fork default-off matches your claim

arm decode, 400 generated tokens ×3 (median)
0.1.39 (fork default on there) 46.7 tok/s
0.1.40 default (fork off on HIP) 56.6 tok/s (+21%)
0.1.40 with STRATA_SH_STREAM=1 50.2 tok/s

The fork is decode-only on this box: across three arms (default, STRATA_SH_STREAM=1, STRATA_PF_BK64=0) the
same 152,068-token cold read measured 1,688.4 / 1,688.4 / 1,688.4 tok/s. So defaulting it off on HIP is right here.

3. STRATA_PF_GEMM (new, opt-in) is worth ~7% prefill on gfx1100 — the main finding

Same pack, same config; the only difference is the env var. Five cold-read cells plus the small-prompt warmup:

cell (prompt tokens) 0.1.40 default STRATA_PF_GEMM=1 Δ
8,468 (warmup) 842.2 849.4 +0.9%
33,668 1,453.4 1,560.9 +7.4%
67,268 1,381.8 1,481.6 +7.2%
122,148 1,492.9 1,603.4 +7.4%
201,668 1,451.9 1,550.5 +6.8%
152,068 (cold, no reuse) 1,688.4 1,822.7 +8.0%
decode 400 tok ×3 (median) 56.6 55.3 −2.3% (inside our ±7%)
cancel latency (134 k, 5 s disconnect) 13.7 s 12.3 s better

Against 0.1.39 (same pack/config/script) the picture becomes: prefill 1,603.0 / 1,660.8 / 1,891.7 for 33k / 122k / the
152 k cold read, i.e. with PF_GEMM=1 0.1.40 is only −2.6% … −3.6% behind instead of −9% … −11%.

Ask: is off-by-default deliberate on gfx11 (does it regress on some card/quant you tested?), or is gfx1100 simply
untested for it? From src/prefill/gemm.cu the S23 path runs before the WMMA path in Gemm::f16 when
pf_on && T >= pf_min_t (default 0), and it returns false for shapes it does not take — on our IQ3_S expert shapes it
looks like a straight win. If you want, I can re-run the pair a few more times and post the raw engine lines.

4. Negative / neutral results (so nobody re-tests them)

switch result on this box
STRATA_SH_STREAM=1 decode 56.6 → 50.2 (−11%), prefill unchanged
STRATA_PF_BK64=0 no change (prefill identical cell by cell)
STRATA_IQ3S_MT1=1 prefill slightly worse (p33k 1,560.9 → 1,438.2), decode unchanged
STRATA_PF_SWITCH_MIN_T=4096 no change (our ladder cells are all ≥ 33 k, so a threshold only affects small T)
STRATA_PF_PAD=1 +0.1…0.8% on all five cells — inside our ±1% noise; its only large number (+6.2% at an 8.5 k prompt) was falsified by the parallel arm without it (909.4 vs 901.7 tok/s), i.e. noise
STRATA_PA_WMMA (env) no effect — 0.1.40 turned it into an internal arch macro, so an env gate is ignored (fine, just noting that the old env var is now silent)

5. A calibrated hipBLASLt table for 100201 (offer to contribute)

cmake --build build-hip --target tune_hipblaslt
CASES=$(awk 'NR>2 {printf " --case %s,%s,%s,%s,%s", $1,$5,$2,$3,$4}' tools/hip/gfx1100-hipblaslt-100200.txt)
./build-hip/tune_hipblaslt $CASES --tuning-out tools/hip/gfx1100-hipblaslt-100201.txt
  • 26 shapes, 68 s, 28-line file, header STRATA_HIPBLASLT_TUNING_V1 gfx1100 100201.
  • STRATA_HIPBLASLT_TUNING=<file> ./build-hip/hip_prefill_hipblaslt_gemm → rc 0, 4 cases PASS, fallbacks=0;
    the engine logs prefill gemm: hipBLASLt tuning enabled (26 rows, gfx1100, version 100201).
  • Micro: e.g. f16 T=8192 N=12288 K=2560: hipBLASEx 35.43 ms → hipBLASLt solution 1147 6.48 ms (5.46×).
  • End-to-end on my model: no change (p33k 1,450.6 vs 1,453.4; 152 k cold 1,687.6 vs 1,688.4; decode unchanged) —
    my dense prefill work goes through the WMMA path, so hipBLASLt only catches leftovers.
  • hip_prefill_hcd_exact_parity stays SKIP: the table sends no tested T to solution 1176 / 1177. So a
    self-calibrated table silently leaves the HCD-exact kernel off. Is that intended (those two ids only being valid for
    the library build the shipped table was measured on), or should the tuner be steered to prefer 1176/1177 for the
    N 320 / K 10240 shape so the exact kernel can engage?

I can open a PR that adds tools/hip/gfx1100-hipblaslt-100201.txt (setup picks <arch>-hipblaslt-<version>.txt by
name, so the file is the whole change) and a line in the README's shipped-table list — say the word if that ROCm
version matters to you.

6. Variance, in case it is useful for the docs

  • Cold reads at a large T (33 k–200 k): ±1% run-to-run — usable for sub-percent A/B decisions.
  • A 8.5 k prompt: ±7% (two arms of the same configuration: 849.4 vs 909.4 tok/s) — cannot judge sub-percent.
  • Decode 400 tokens: ±7% (also seen on 0.1.38 → 0.1.39, where a first-sample "+8.6%" turned into a dead heat on
    A/B/A).
  • Recommendation that follows: A/B a switch on the big-T cold-read cells and require the whole row to move, not one
    cell.

7. What I did not test

Single card, 4-GPU, other quantisations (Q2_0 / IQ2_XS / Q4_0), other architectures, --vision (not built here),
--parallel / --batch-mtp, Windows, and the #848 resident-RAM-mode soak beyond what the default split mode does.
No GPU faults, stalls, errors or 500s in ~3 h of 0.1.40 with repeated 200 k-token prompts, 134 k cancellations and one
long-context recall probe (4/4 markers, pp 1,841.6 tok/s, TTFT 116.1 s).

Originally created by @yalu-arch on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1386 # 2× RX 7900 XTX (gfx1100, layer split): `STRATA_PF_GEMM` is worth ~7% prefill and is off by default **TL;DR** - On gfx1100 with a 125B-class MoE (IQ3_S native experts on a 2-card layer split), 0.1.40 improves two of the three directions a lot: **cold start 166 s → 95 s (−43%, #699 read-ahead)** and **decode 46.7 → 56.6 tok/s (+21%, shared-expert fork default-off, #826/#816)**. Both claims verified on AMD hardware here. - But 0.1.40 measured **9–11% slower prefill** than 0.1.39 for me until I found that the new **`STRATA_PF_GEMM` is opt-in and off by default**. That switch is worth **+7.4%** over the 0.1.40 default, which brings prefill back to **within 3% of 0.1.39**. Worth a release-note line, or a default-on for gfx11 if the numbers hold elsewhere. - I calibrated `gfx1100-hipblaslt-100201.txt` with `tools/hip/tune_hipblaslt` for this ROCm (hipBLASLt 1.2.1 → version number `100201`); the shipped tables are 100100/100200/100202/100401/100500, so 1.2.1 is refused by the version check. The table loads, `hip_prefill_hipblaslt_gemm` reports `fallbacks=0`, and it is **end-to-end neutral on my model** (my dense GEMMs are WMMA-dominated) although single shapes gain up to **5.46×** over hipBLASEx in the tuner. Happy to send it as a PR (like #745) if you want that library version covered. - **Open question**: with a self-calibrated table, `hip_prefill_hcd_exact_parity` stays skipped with `the table sends no tested T to solution 1176 / 1177`, i.e. the HCD-exact kernel never engages. Expected? ## Environment | | | |---|---| | GPUs | 2× Radeon RX 7900 XTX (gfx1100, 24 GB each), **layer split**: layers 0-24 (card 0), 25-47 (card 1), one hand-off per window | | Host | Dell Precision T7910, 2× Xeon E5-2683 v4 (32 threads), 125 GB RAM, Ubuntu; 4 GPUs total (the other two serve unrelated work) | | ROCm | **7.2.0** (`7.2.26015-fc0010cf6a`), hipBLASLt **1.2.1 → version number 100201**, ROCM-SMI-LIB 7.8.0 | | Engine | self-built HIP/gfx1100 from the **v0.1.40.1** tree (`BUILD.json`: version 0.1.40, backend hip, archs gfx1100, `vision: none`), pinned llama.cpp `3cf0325` | | Server | `serve/` from v0.1.40.1 (the engine is the 0.1.40 one, as your release note says) | | Model | Qwen3.8-Flash-Next GSQ-RCO **IQ3_S**, 48 layers, pack built with `tools/iq_pack.py` (native experts); the PLE shard is passed as `--ple-gguf` | | Flags | `--max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --layer-split auto` | | Env | `STRATA_WMMA_GEMM=1` (+ the switches discussed below) | | Loaded state | 19,084 expert slots, **78% of the experts resident**, 592 MiB VRAM free, prompt chunk auto 8192 / 96-slot ring, MTP draft head 212.9 MiB | All measurements below are the engine's own `strata serve: prompt …` lines, same pack, same config, same script per pair; prompts are greedy, `reasoning_effort=none`, generation capped at 8 tokens for the ladder cells (so the numbers are prefill throughput, not end-to-end). ## 1. Cold start: read-ahead (#699) works on RDNA3 166 s → 95 s (**−43%**) to HTTP-ready, both arms after evicting the page cache by reading an unrelated 80 GB file (the box has no passwordless sudo, so no `drop_caches`; reading the other model's weights is my substitute, same method for both arms). Warm restart of the same config: 60–79 s. Nothing here claims your RTX 5090 number (920 s → 70 s); this is just the AMD-side confirmation. ## 2. Decode: shared-expert fork default-off matches your claim | arm | decode, 400 generated tokens ×3 (median) | |---|---:| | 0.1.39 (fork default on there) | 46.7 tok/s | | **0.1.40 default (fork off on HIP)** | **56.6 tok/s (+21%)** | | 0.1.40 with `STRATA_SH_STREAM=1` | 50.2 tok/s | The fork is **decode-only** on this box: across three arms (default, `STRATA_SH_STREAM=1`, `STRATA_PF_BK64=0`) the same 152,068-token cold read measured 1,688.4 / 1,688.4 / 1,688.4 tok/s. So defaulting it off on HIP is right here. ## 3. `STRATA_PF_GEMM` (new, opt-in) is worth ~7% prefill on gfx1100 — the main finding Same pack, same config; the only difference is the env var. Five cold-read cells plus the small-prompt warmup: | cell (prompt tokens) | 0.1.40 default | **`STRATA_PF_GEMM=1`** | Δ | |---|---:|---:|---:| | 8,468 (warmup) | 842.2 | 849.4 | +0.9% | | 33,668 | 1,453.4 | **1,560.9** | **+7.4%** | | 67,268 | 1,381.8 | **1,481.6** | **+7.2%** | | 122,148 | 1,492.9 | **1,603.4** | **+7.4%** | | 201,668 | 1,451.9 | **1,550.5** | **+6.8%** | | 152,068 (cold, no reuse) | 1,688.4 | **1,822.7** | **+8.0%** | | decode 400 tok ×3 (median) | 56.6 | 55.3 | −2.3% (inside our ±7%) | | cancel latency (134 k, 5 s disconnect) | 13.7 s | 12.3 s | better | Against 0.1.39 (same pack/config/script) the picture becomes: prefill 1,603.0 / 1,660.8 / 1,891.7 for 33k / 122k / the 152 k cold read, i.e. with `PF_GEMM=1` 0.1.40 is only **−2.6% … −3.6%** behind instead of −9% … −11%. **Ask:** is off-by-default deliberate on gfx11 (does it regress on some card/quant you tested?), or is gfx1100 simply untested for it? From `src/prefill/gemm.cu` the S23 path runs *before* the WMMA path in `Gemm::f16` when `pf_on && T >= pf_min_t` (default 0), and it returns false for shapes it does not take — on our IQ3_S expert shapes it looks like a straight win. If you want, I can re-run the pair a few more times and post the raw engine lines. ## 4. Negative / neutral results (so nobody re-tests them) | switch | result on this box | |---|---| | `STRATA_SH_STREAM=1` | decode 56.6 → 50.2 (−11%), prefill unchanged | | `STRATA_PF_BK64=0` | no change (prefill identical cell by cell) | | `STRATA_IQ3S_MT1=1` | prefill slightly *worse* (p33k 1,560.9 → 1,438.2), decode unchanged | | `STRATA_PF_SWITCH_MIN_T=4096` | no change (our ladder cells are all ≥ 33 k, so a threshold only affects small T) | | `STRATA_PF_PAD=1` | +0.1…0.8% on all five cells — inside our ±1% noise; its only large number (+6.2% at an 8.5 k prompt) was falsified by the parallel arm *without* it (909.4 vs 901.7 tok/s), i.e. noise | | `STRATA_PA_WMMA` (env) | no effect — 0.1.40 turned it into an internal arch macro, so an env gate is ignored (fine, just noting that the old env var is now silent) | ## 5. A calibrated hipBLASLt table for 100201 (offer to contribute) ```sh cmake --build build-hip --target tune_hipblaslt CASES=$(awk 'NR>2 {printf " --case %s,%s,%s,%s,%s", $1,$5,$2,$3,$4}' tools/hip/gfx1100-hipblaslt-100200.txt) ./build-hip/tune_hipblaslt $CASES --tuning-out tools/hip/gfx1100-hipblaslt-100201.txt ``` - 26 shapes, **68 s**, 28-line file, header `STRATA_HIPBLASLT_TUNING_V1 gfx1100 100201`. - `STRATA_HIPBLASLT_TUNING=<file> ./build-hip/hip_prefill_hipblaslt_gemm` → **rc 0, 4 cases PASS, `fallbacks=0`**; the engine logs `prefill gemm: hipBLASLt tuning enabled (26 rows, gfx1100, version 100201)`. - Micro: e.g. `f16 T=8192 N=12288 K=2560`: hipBLASEx 35.43 ms → hipBLASLt solution 1147 **6.48 ms (5.46×)**. - **End-to-end on my model: no change** (p33k 1,450.6 vs 1,453.4; 152 k cold 1,687.6 vs 1,688.4; decode unchanged) — my dense prefill work goes through the WMMA path, so hipBLASLt only catches leftovers. - `hip_prefill_hcd_exact_parity` stays **SKIP**: `the table sends no tested T to solution 1176 / 1177`. So a self-calibrated table silently leaves the HCD-exact kernel off. Is that intended (those two ids only being valid for the library build the shipped table was measured on), or should the tuner be steered to prefer 1176/1177 for the N 320 / K 10240 shape so the exact kernel can engage? I can open a PR that adds `tools/hip/gfx1100-hipblaslt-100201.txt` (setup picks `<arch>-hipblaslt-<version>.txt` by name, so the file is the whole change) and a line in the README's shipped-table list — say the word if that ROCm version matters to you. ## 6. Variance, in case it is useful for the docs - Cold reads at a large T (33 k–200 k): **±1%** run-to-run — usable for sub-percent A/B decisions. - A 8.5 k prompt: **±7%** (two arms of the *same* configuration: 849.4 vs 909.4 tok/s) — cannot judge sub-percent. - Decode 400 tokens: **±7%** (also seen on 0.1.38 → 0.1.39, where a first-sample "+8.6%" turned into a dead heat on A/B/A). - Recommendation that follows: A/B a switch on the big-T cold-read cells and require the whole row to move, not one cell. ## 7. What I did *not* test Single card, 4-GPU, other quantisations (Q2_0 / IQ2_XS / Q4_0), other architectures, `--vision` (not built here), `--parallel` / `--batch-mtp`, Windows, and the #848 resident-RAM-mode soak beyond what the default split mode does. No GPU faults, stalls, errors or 500s in ~3 h of 0.1.40 with repeated 200 k-token prompts, 134 k cancellations and one long-context recall probe (4/4 markers, pp 1,841.6 tok/s, TTFT 116.1 s).
Author
Owner

@yalu-arch commented on GitHub (Oct 8, 2026):

Raw harness output behind the ~7% claim (2x 7900 XTX, gfx1100, layer split)

Same pack / config / script, each arm = fresh process start (68–69 s) + warm-up, then the same ladder. Both arms below are 0.1.40, measured on the same day, one env var apart.

Env (baseline): STRATA_HIPBLASLT_TUNING=<hipblaslt-100201 table>, STRATA_WMMA_GEMM=1, STRATA_PA_WMMA=1. The test arm adds STRATA_PF_GEMM=1 and nothing else.
Args: --pack (IQ3_S native experts), --expert-cache auto, --prefill auto (8192 chunk), --spec 4 --spec-min-p 0.5 --mtp, --kv int8 --kv-resident 32768, --max-context 262144, layer split across GPUs [2,3]. Both arms self-report 0.1.40 | slots 19084 | vram_free 592.

Baseline (PF_GEMM off) — from sc117.sc117tuned.txt:

[warmup] strata serve: prompt 8468 tokens = 0 reused + 8468 read in 9969 ms (849.4 tok/s), 8 generated in 201 ms (39.7 tok/s), drafts accepted 7 of 9, 1 checkpoints
[p33k]   strata serve: prompt 33668 tokens = 0 reused + 33668 read in 23209 ms (1450.6 tok/s), 8 generated in 166 ms (48.2 tok/s), drafts accepted 7 of 9, 3 checkpoints
[p67k]   strata serve: prompt 67268 tokens = 32768 reused + 34500 read in 25037 ms (1377.9 tok/s), 8 generated in 183 ms (43.8 tok/s), drafts accepted 6 of 8, 5 checkpoints
[p122k]  strata serve: prompt 122148 tokens = 65536 reused + 56612 read in 37916 ms (1493.1 tok/s), 8 generated in 191 ms (42.0 tok/s), drafts accepted 6 of 8, 6 checkpoints
[p200k]  strata serve: prompt 201668 tokens = 114688 reused + 86980 read in 59972 ms (1450.4 tok/s), 8 generated in 127 ms (63.0 tok/s), drafts accepted 6 of 6, 6 checkpoints
[p180kU] strata serve: prompt 152068 tokens = 0 reused + 152068 read in 90110 ms (1687.6 tok/s), 8 generated in 126 ms (63.3 tok/s), drafts accepted 6 of 6, 6 checkpoints
[dec400_2] strata serve: prompt 80 tokens = 75 reused + 5 read in 58 ms (86.2 tok/s), 400 generated in 7083 ms (56.5 tok/s), drafts accepted 210 of 310, 1 checkpoints
short latency after cancel: 13.6 s
long req 引擎行: prompt 134468 tokens = 0 reused + 24576 of 134468 read in 16557 ms (1484.3 tok/s) (cancelled)

Test arm, STRATA_PF_GEMM=1 — from sc117.pfgemm1.txt:

[warmup] strata serve: prompt 8468 tokens = 0 reused + 8468 read in 9314 ms (909.1 tok/s), 8 generated in 193 ms (41.4 tok/s), drafts accepted 7 of 9, 1 checkpoints
[p33k]   strata serve: prompt 33668 tokens = 0 reused + 33668 read in 21570 ms (1560.9 tok/s), 8 generated in 163 ms (49.0 tok/s), drafts accepted 7 of 9, 3 checkpoints
[p67k]   strata serve: prompt 67268 tokens = 32768 reused + 34500 read in 23285 ms (1481.6 tok/s), 8 generated in 200 ms (39.9 tok/s), drafts accepted 6 of 8, 5 checkpoints
[p122k]  strata serve: prompt 122148 tokens = 65536 reused + 56612 read in 35308 ms (1603.4 tok/s), 8 generated in 186 ms (42.9 tok/s), drafts accepted 6 of 8, 6 checkpoints
[p200k]  strata serve: prompt 201668 tokens = 114688 reused + 86980 read in 56096 ms (1550.5 tok/s), 8 generated in 127 ms (63.1 tok/s), drafts accepted 6 of 6, 6 checkpoints
[p180kU] strata serve: prompt 152068 tokens = 0 reused + 152068 read in 83429 ms (1822.7 tok/s), 8 generated in 127 ms (63.1 tok/s), drafts accepted 6 of 6, 6 checkpoints
[dec400_2] strata serve: prompt 80 tokens = 75 reused + 5 read in 59 ms (85.2 tok/s), 400 generated in 7238 ms (55.3 tok/s), drafts accepted 210 of 311, 1 checkpoints
short latency after cancel: 12.3 s
long req 引擎行: prompt 134468 tokens = 0 reused + 24576 of 134468 read in 15188 ms (1618.2 tok/s) (cancelled)
cell PF_GEMM off =1 Δ
p33k 1,450.6 1,560.9 +7.6%
p67k 1,377.9 1,481.6 +7.5%
p122k 1,493.1 1,603.4 +7.4%
p200k 1,450.4 1,550.5 +6.9%
unique 152k, cold 1,687.6 1,822.7 +8.0%
decode 400 tok (2nd of 3) 56.5 55.3 −2% (inside noise)
time to cancel, 134.5k prompt 13.6 s 12.3 s −1.3 s

Spread inside one run (same config, different cells): ±1% on the big-T cells, ±7% on the 8.5k warm-up cell (849.4 vs 909.1 here) — so only the big-T columns above carry weight; the warm-up row and the decode delta are not.

The other switches we ran in the same harness (so the effect is specific to PF_GEMM, not a general "more knobs = faster"):

  • STRATA_IQ3S_MT1=1 (PF_GEMM off): p33k 1,438.2, p67k 1,363.4, p122k 1,476.4, p200k 1,438.8, unique 152k 1,674.1, decode 53.9 / 54.1 / 57.7, cancel 13.5 s ⇒ slightly negative.
  • STRATA_SH_STREAM=1: decode 47.8 / 50.2 / 51.4 tok/s (vs 53.8 / 56.5 / 56.6 on the default env) ⇒ we keep it off.
  • STRATA_PF_BK64=0, STRATA_PF_SWITCH_MIN_T=4096, STRATA_PF_PAD=1: all within noise. The one apparently-good cell from PF_PAD (+6% on the 8.5k warm-up) was refuted by its paired arm, which read the same 909.4 without it.

Happy to run more arms if you want them — the ladder is scripted (33k / 67k / 122k / 200k + a 152k unique cold prompt + 3×400-token decode + a cancel probe), each arm costs about 10 minutes including the restart. I can also capture STRATA_PREFILL_TIMING=1 lines for the S23-dense vs WMMA path on this pair if the kernel-level split is useful.

<!-- gh-comment-id:6050269177 --> @yalu-arch commented on GitHub (Oct 8, 2026): ## Raw harness output behind the ~7% claim (2x 7900 XTX, gfx1100, layer split) Same pack / config / script, each arm = fresh process start (68–69 s) + warm-up, then the same ladder. Both arms below are **0.1.40, measured on the same day, one env var apart**. **Env (baseline):** `STRATA_HIPBLASLT_TUNING=<hipblaslt-100201 table>`, `STRATA_WMMA_GEMM=1`, `STRATA_PA_WMMA=1`. The test arm adds `STRATA_PF_GEMM=1` and nothing else. **Args:** `--pack` (IQ3_S native experts), `--expert-cache auto`, `--prefill auto` (8192 chunk), `--spec 4 --spec-min-p 0.5 --mtp`, `--kv int8 --kv-resident 32768`, `--max-context 262144`, layer split across GPUs [2,3]. Both arms self-report `0.1.40 | slots 19084 | vram_free 592`. **Baseline (PF_GEMM off)** — from `sc117.sc117tuned.txt`: ```text [warmup] strata serve: prompt 8468 tokens = 0 reused + 8468 read in 9969 ms (849.4 tok/s), 8 generated in 201 ms (39.7 tok/s), drafts accepted 7 of 9, 1 checkpoints [p33k] strata serve: prompt 33668 tokens = 0 reused + 33668 read in 23209 ms (1450.6 tok/s), 8 generated in 166 ms (48.2 tok/s), drafts accepted 7 of 9, 3 checkpoints [p67k] strata serve: prompt 67268 tokens = 32768 reused + 34500 read in 25037 ms (1377.9 tok/s), 8 generated in 183 ms (43.8 tok/s), drafts accepted 6 of 8, 5 checkpoints [p122k] strata serve: prompt 122148 tokens = 65536 reused + 56612 read in 37916 ms (1493.1 tok/s), 8 generated in 191 ms (42.0 tok/s), drafts accepted 6 of 8, 6 checkpoints [p200k] strata serve: prompt 201668 tokens = 114688 reused + 86980 read in 59972 ms (1450.4 tok/s), 8 generated in 127 ms (63.0 tok/s), drafts accepted 6 of 6, 6 checkpoints [p180kU] strata serve: prompt 152068 tokens = 0 reused + 152068 read in 90110 ms (1687.6 tok/s), 8 generated in 126 ms (63.3 tok/s), drafts accepted 6 of 6, 6 checkpoints [dec400_2] strata serve: prompt 80 tokens = 75 reused + 5 read in 58 ms (86.2 tok/s), 400 generated in 7083 ms (56.5 tok/s), drafts accepted 210 of 310, 1 checkpoints short latency after cancel: 13.6 s long req 引擎行: prompt 134468 tokens = 0 reused + 24576 of 134468 read in 16557 ms (1484.3 tok/s) (cancelled) ``` **Test arm, `STRATA_PF_GEMM=1`** — from `sc117.pfgemm1.txt`: ```text [warmup] strata serve: prompt 8468 tokens = 0 reused + 8468 read in 9314 ms (909.1 tok/s), 8 generated in 193 ms (41.4 tok/s), drafts accepted 7 of 9, 1 checkpoints [p33k] strata serve: prompt 33668 tokens = 0 reused + 33668 read in 21570 ms (1560.9 tok/s), 8 generated in 163 ms (49.0 tok/s), drafts accepted 7 of 9, 3 checkpoints [p67k] strata serve: prompt 67268 tokens = 32768 reused + 34500 read in 23285 ms (1481.6 tok/s), 8 generated in 200 ms (39.9 tok/s), drafts accepted 6 of 8, 5 checkpoints [p122k] strata serve: prompt 122148 tokens = 65536 reused + 56612 read in 35308 ms (1603.4 tok/s), 8 generated in 186 ms (42.9 tok/s), drafts accepted 6 of 8, 6 checkpoints [p200k] strata serve: prompt 201668 tokens = 114688 reused + 86980 read in 56096 ms (1550.5 tok/s), 8 generated in 127 ms (63.1 tok/s), drafts accepted 6 of 6, 6 checkpoints [p180kU] strata serve: prompt 152068 tokens = 0 reused + 152068 read in 83429 ms (1822.7 tok/s), 8 generated in 127 ms (63.1 tok/s), drafts accepted 6 of 6, 6 checkpoints [dec400_2] strata serve: prompt 80 tokens = 75 reused + 5 read in 59 ms (85.2 tok/s), 400 generated in 7238 ms (55.3 tok/s), drafts accepted 210 of 311, 1 checkpoints short latency after cancel: 12.3 s long req 引擎行: prompt 134468 tokens = 0 reused + 24576 of 134468 read in 15188 ms (1618.2 tok/s) (cancelled) ``` | cell | PF_GEMM off | =1 | Δ | |---|---:|---:|---:| | p33k | 1,450.6 | 1,560.9 | **+7.6%** | | p67k | 1,377.9 | 1,481.6 | +7.5% | | p122k | 1,493.1 | 1,603.4 | +7.4% | | p200k | 1,450.4 | 1,550.5 | +6.9% | | unique 152k, cold | 1,687.6 | 1,822.7 | +8.0% | | decode 400 tok (2nd of 3) | 56.5 | 55.3 | −2% (inside noise) | | time to cancel, 134.5k prompt | 13.6 s | 12.3 s | −1.3 s | **Spread inside one run** (same config, different cells): ±1% on the big-T cells, **±7% on the 8.5k warm-up cell** (849.4 vs 909.1 here) — so only the big-T columns above carry weight; the warm-up row and the decode delta are not. **The other switches we ran in the same harness** (so the effect is specific to PF_GEMM, not a general "more knobs = faster"): - `STRATA_IQ3S_MT1=1` (PF_GEMM off): p33k 1,438.2, p67k 1,363.4, p122k 1,476.4, p200k 1,438.8, unique 152k 1,674.1, decode 53.9 / 54.1 / 57.7, cancel 13.5 s ⇒ slightly negative. - `STRATA_SH_STREAM=1`: decode 47.8 / 50.2 / 51.4 tok/s (vs 53.8 / 56.5 / 56.6 on the default env) ⇒ we keep it off. - `STRATA_PF_BK64=0`, `STRATA_PF_SWITCH_MIN_T=4096`, `STRATA_PF_PAD=1`: all within noise. The one apparently-good cell from `PF_PAD` (+6% on the 8.5k warm-up) was refuted by its paired arm, which read the same 909.4 without it. Happy to run more arms if you want them — the ladder is scripted (33k / 67k / 122k / 200k + a 152k unique cold prompt + 3×400-token decode + a cancel probe), each arm costs about 10 minutes including the restart. I can also capture `STRATA_PREFILL_TIMING=1` lines for the S23-dense vs WMMA path on this pair if the kernel-level split is useful.
Author
Owner

@Niko1221 commented on GitHub (Oct 8, 2026):

Thanks for the clean A/B. We checked STRATA_PF_GEMM on an R9700 (gfx1201), 1 GPU, Q2_0, 5 interleaved on/off pairs: identical within noise, which is expected, because the kernel is gfx11-only (strata_wmma_gfx11_device() is false on gfx12 and the call falls through). So we have no gfx1201 effect to weigh against your +7%, and no gfx1100 card. We will not turn it on by default for gfx1100 on one reporter's two-card measurement; if a second 7900 XTX / XT owner confirms the +7% we will add gfx1100 to the per-arch defaults the way gfx1151 is. Until then it stays opt-in and the docs carry your number.

Yes please to the gfx1100-hipblaslt-100201.txt PR (like #745). The loader refuses a table whose version does not match the library, so it cannot affect other versions.

On your open question: the HCD-exact kernel reproduces hipBLASLt solutions 1176/1177, the ids in the shipped gfx1151 table. A self-calibrated table picks other ids, so 'the table sends no tested T to solution 1176/1177' and the kernel staying off is expected, not a bug.

<!-- gh-comment-id:6059667897 --> @Niko1221 commented on GitHub (Oct 8, 2026): Thanks for the clean A/B. We checked `STRATA_PF_GEMM` on an R9700 (gfx1201), 1 GPU, Q2_0, 5 interleaved on/off pairs: identical within noise, which is expected, because the kernel is gfx11-only (`strata_wmma_gfx11_device()` is false on gfx12 and the call falls through). So we have no gfx1201 effect to weigh against your +7%, and no gfx1100 card. We will not turn it on by default for gfx1100 on one reporter's two-card measurement; if a second 7900 XTX / XT owner confirms the +7% we will add gfx1100 to the per-arch defaults the way gfx1151 is. Until then it stays opt-in and the docs carry your number. Yes please to the `gfx1100-hipblaslt-100201.txt` PR (like #745). The loader refuses a table whose version does not match the library, so it cannot affect other versions. On your open question: the HCD-exact kernel reproduces hipBLASLt solutions 1176/1177, the ids in the shipped gfx1151 table. A self-calibrated table picks other ids, so 'the table sends no tested T to solution 1176/1177' and the kernel staying off is expected, not a bug.
Author
Owner

@afterthought325 commented on GitHub (Oct 8, 2026):

Second gfx1100 data point (single RX 7900 XT, IQ3_XXS native pack, v0.1.40.2, single GPU): STRATA_PF_GEMM=1 + STRATA_PF_PAD=1 + STRATA_PF_SWITCH_MIN_T=4096, 32K-token fresh prompts: 1586 (n=2) -> 1628 (n=5) tok/s, +2.6%. Ranges adjacent (1580-1592 vs 1588-1635), so weak-positive rather than clean separation; direction matches your +7.4%. Qualifiers: my hipBLASLt table already matched the library (no Lt fallbacks at baseline) and STRATA_SELECT_WMMA=1 was already on, so less headroom than your setup. Kept on here (stacks, zero risk). Happy to post the full arm table if useful.

<!-- gh-comment-id:6066452719 --> @afterthought325 commented on GitHub (Oct 8, 2026): Second gfx1100 data point (single RX 7900 XT, IQ3_XXS native pack, v0.1.40.2, single GPU): STRATA_PF_GEMM=1 + STRATA_PF_PAD=1 + STRATA_PF_SWITCH_MIN_T=4096, 32K-token fresh prompts: 1586 (n=2) -> 1628 (n=5) tok/s, +2.6%. Ranges adjacent (1580-1592 vs 1588-1635), so weak-positive rather than clean separation; direction matches your +7.4%. Qualifiers: my hipBLASLt table already matched the library (no Lt fallbacks at baseline) and STRATA_SELECT_WMMA=1 was already on, so less headroom than your setup. Kept on here (stacks, zero risk). Happy to post the full arm table if useful.
Author
Owner

@afterthought325 commented on GitHub (Oct 8, 2026):

Follow-up gfx1100 data (single RX 7900 XT, IQ3_XXS native, v0.1.40.2): the phase timer showed qsa attn at 30% of prefill, and code-reading found the cause — without STRATA_HIP_WMMA=1, qsa_prompt_attn_batch returns false on HIP and the host silently keeps the old kernel (no log line; only the opt-in prints). STRATA_HIP_WMMA=1 alone: 1852 -> 2520 tok/s @32K (+36%, n=3 tight). Stacked STRATA_PA_FAST=1: -> 2611 (+3.6%, 5/5 quality probes bit-identical to no-FAST control). Stacked STRATA_HC_UPMIX=1: -> 2673 (+2.4%, CHECK gate rel RMS ~3e-07). STRATA_HCD_EXACT=1 cleanly declines here (table gives solution 542, not 1176/1177). Running total on this box across the campaign: 1586 -> 2676 @32K (+69%). Suggest a docs line that HIP_WMMA is what selects the WMMA prompt-attention on gfx11 — easy to miss since SELECT_WMMA sounds like the same thing.

<!-- gh-comment-id:6066668719 --> @afterthought325 commented on GitHub (Oct 8, 2026): Follow-up gfx1100 data (single RX 7900 XT, IQ3_XXS native, v0.1.40.2): the phase timer showed qsa attn at 30% of prefill, and code-reading found the cause — without STRATA_HIP_WMMA=1, qsa_prompt_attn_batch returns false on HIP and the host silently keeps the old kernel (no log line; only the opt-in prints). STRATA_HIP_WMMA=1 alone: 1852 -> 2520 tok/s @32K (+36%, n=3 tight). Stacked STRATA_PA_FAST=1: -> 2611 (+3.6%, 5/5 quality probes bit-identical to no-FAST control). Stacked STRATA_HC_UPMIX=1: -> 2673 (+2.4%, CHECK gate rel RMS ~3e-07). STRATA_HCD_EXACT=1 cleanly declines here (table gives solution 542, not 1176/1177). Running total on this box across the campaign: 1586 -> 2676 @32K (+69%). Suggest a docs line that HIP_WMMA is what selects the WMMA prompt-attention on gfx11 — easy to miss since SELECT_WMMA sounds like the same thing.
Author
Owner

@Vop3p commented on GitHub (Oct 9, 2026):

From a 2x RX 6900 XT (gfx1030, Linux, ROCm 10.0) layer split, a few things that moved the numbers there and are not gfx1030-specific in mechanism, so they may be worth an A/B on gfx1100 (the numbers are in #1657 and the two earlier reports from this box):

  • STRATA_SH_STREAM=1: on gfx1030 the shared-expert stream fork on is +5-9% decode, the opposite of the #816 result that made it default-off. Your +21% went the other way, so it is card-dependent either way - worth measuring rather than taking the default.
  • The decode window: --spec 3 --spec-min-p 0.7 --pipeline-windows 2 together is +19 / +20 / +11% decode at 4K / 32K / 128K on the split (64.7 → 77.2, 68.8 → 82.3, 68.3 → 75.7 tok/s); each alone had measured neutral or worse (a 16-point spec × min-p grid at pipeline-windows 1, and pipeline-windows 2 with the default draft). The shorter draft is accepted 83% instead of 68%, so the speculative second window hits. Greedy output differs between server starts with it on.
  • layer_split by hand: the auto split point moved 32K decode by 8% here (layers 0-24/25-47 against 0-26/27-47, same binary; the larger second-card cache was the slower one). A sweep of a few split points is cheap.
  • The BLAS solution per GEMM shape: on gfx1030 rocBLAS's heuristic picks a 5-7x slower kernel for the GDN projection shapes below 1,152 tokens (#1167 is the table; our build keeps a per-device cache measured on the card). gfx1100 is on hipBLASLt so the mechanism differs, but the check is the same: rocprofv3 --kernel-trace on a short prompt and look at GPU time per GEMM shape, not per kernel name.
  • The QSA block scores on rocBLAS SGEMM or the FP32 SIMT scorer (#1151): a 128K prompt +7.4% on gfx1030, byte-identical scores.

Developed with an AI coding assistant; every number above was measured on 2x RX 6900 XT (gfx1030, PCIe 4.0 x8 each) / Ryzen 5 5600X, ROCm 10.0.

<!-- gh-comment-id:6074272639 --> @Vop3p commented on GitHub (Oct 9, 2026): From a 2x RX 6900 XT (gfx1030, Linux, ROCm 10.0) layer split, a few things that moved the numbers there and are not gfx1030-specific in mechanism, so they may be worth an A/B on gfx1100 (the numbers are in #1657 and the two earlier reports from this box): - **`STRATA_SH_STREAM=1`**: on gfx1030 the shared-expert stream fork *on* is +5-9% decode, the opposite of the #816 result that made it default-off. Your +21% went the other way, so it is card-dependent either way - worth measuring rather than taking the default. - **The decode window**: `--spec 3 --spec-min-p 0.7 --pipeline-windows 2` together is +19 / +20 / +11% decode at 4K / 32K / 128K on the split (64.7 → 77.2, 68.8 → 82.3, 68.3 → 75.7 tok/s); each alone had measured neutral or worse (a 16-point spec × min-p grid at pipeline-windows 1, and pipeline-windows 2 with the default draft). The shorter draft is accepted 83% instead of 68%, so the speculative second window hits. Greedy output differs between server starts with it on. - **`layer_split` by hand**: the auto split point moved 32K decode by 8% here (layers 0-24/25-47 against 0-26/27-47, same binary; the larger second-card cache was the slower one). A sweep of a few split points is cheap. - **The BLAS solution per GEMM shape**: on gfx1030 rocBLAS's heuristic picks a 5-7x slower kernel for the GDN projection shapes below 1,152 tokens (#1167 is the table; our build keeps a per-device cache measured on the card). gfx1100 is on hipBLASLt so the mechanism differs, but the check is the same: `rocprofv3 --kernel-trace` on a short prompt and look at GPU time per GEMM shape, not per kernel name. - **The QSA block scores** on rocBLAS SGEMM or the FP32 SIMT scorer (#1151): a 128K prompt +7.4% on gfx1030, byte-identical scores. Developed with an AI coding assistant; every number above was measured on 2x RX 6900 XT (gfx1030, PCIe 4.0 x8 each) / Ryzen 5 5600X, ROCm 10.0.
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:6156079749 --> @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#561
No description provided.