okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

minibench: community report, Radeon 8060S (gfx1151) on a Ryzen AI Max+ 395 (PR #917)16fd58b8c

main
4.8 KiB75 linesraw

Controlled Radeon 8060S (gfx1151) HIP comparison

Measured on 2026-10-05 on a Radeon 8060S / Ryzen AI Max+ 395 system with 128 GB of unified memory. The model was Qwen3.8-Flash-Next GSQ-RCO Q2_0. All 24,576 routed experts were resident in the 31.64 GiB GPU expert cache. KV streaming kept 32,768 of 131,072 cells per QSA layer in VRAM and used 1.55 GiB of pinned RAM.

The source revision was a68d0b7fd88c206d55c2ca1d3c2811300b07bd14. It contains the gfx1151 enablement from PR #895, the opt-in dense MMQ path from PR #820, and a gfx1151 hipBLASLt 1.5.0 tuning table adapted from the work in PR #755. PR #855 was not included. The HIP runtime reported version 7.17.26392-0000000; the tuning table is for hipBLASLt version 100500 and contains 32 rows.

Method

tools/hip/bench_prefill.py sent a warm-up followed by fresh prompts containing 140, 280, 140 and 280 generated JavaScript functions. Every fresh prompt had zero reused KV tokens. Each fresh request was followed by one cached request. Sampling was fixed at temperature 0, top-k 1, top-p 1, min-p 0 and seed 42, with reasoning disabled. Every measured request generated 128 tokens and stopped at the intentional length limit.

The server was restarted between arms. STRATA_SH_STREAM defaults to enabled in this revision, so C and D are the same effective configuration; D merely sets the default explicitly.

ArmRuntime environmentResult fileEngine log
ASTRATA_DENSE_MMQ=0, no tuning table; SH stream default ongfx1151-plain.jsonengine-A.log
BA plus the gfx1151 hipBLASLt tuning tablegfx1151-B-tuningTables.jsonengine-B.log
CB plus STRATA_DENSE_MMQ=1; SH stream default ongfx1151-C-tuningTables-denseMMQ.jsonengine-C.log
DC plus explicit STRATA_SH_STREAM=1gfx1151-D-tuningTables-denseMMQ-PR826.jsonengine-D.log
EC with STRATA_SH_STREAM=0gfx1151-E-tuningTables-denseMMQ-noPR826.jsonengine-E.log

The engine logs confirmed that B-E loaded 32 tuning rows for gfx1151 / 100500, and that C-E enabled dense MMQ.

Fresh-prompt results

The table reports the engine's prompt-processing rate. "First" and "warmed" describe execution order within an arm; zero KV reuse does not imply a cold filesystem or GPU-library cache.

Fresh promptA: plain hipBLASB: tuned hipBLASLtC: + dense MMQD: SH stream onE: SH stream off
4,210 tokens, first261.6549.7554.8567.4568.9
8,830 tokens, first250.9525.0526.0527.0528.1
4,210 tokens, warmed247.5526.1528.5527.6526.0
8,830 tokens, warmed247.7524.6523.4524.7524.2
Weighted rate250.91528.91529.96532.43532.58

Rates are tokens per second. The weighted row divides the 26,080 fresh tokens in each arm by their combined engine prefill time.

The tuning table raised weighted fresh-prompt throughput from 250.91 to 528.91 tok/s: 2.11x, or 110.8% faster. The four matched improvements were 109-113%, so the effect was present at both prompt sizes and on both passes. The combined wall time of the four fresh requests, including their 128-token answers, fell from 114.50 to 59.97 seconds (47.6%).

Dense MMQ changed the weighted B result by only +0.2%. C-E differ by less than 0.5%, which is consistent with normal run-to-run variation rather than a measurable prefill benefit from dense MMQ or SH streaming on this workload.

Shared-expert stream result

D and E isolate STRATA_SH_STREAM: their prompts, generated responses and MTP draft behavior matched. Across all eight measured requests, excluding the warm-up:

ConfigurationGenerated tokensDecode timeWeighted decode rate
D: SH stream on1,02421.894 s46.77 tok/s
E: SH stream off1,02422.441 s45.63 tok/s

Enabling the shared-expert stream improved weighted decode throughput by 2.5% and saved 0.547 seconds of decode time. All eight individual requests were faster with it, by about 1.3-3.5%. As expected for a decode optimization, it did not materially change fresh-prompt throughput.

Limits

This is one ordered benchmark session on one machine, not a confidence interval or a claim for other GPUs and models. C and D provide one repeat of the same effective configuration and show the approximate timing noise. The cached follow-ups are retained in the JSON files, but their fresh-token counts differ between some earlier arms because the generated replies differ; they are therefore not used for the hipBLASLt prefill comparison.

1# Controlled Radeon 8060S (`gfx1151`) HIP comparison
2
3Measured on 2026-10-05 on a Radeon 8060S / Ryzen AI Max+ 395 system with 128 GB of unified memory. The model was
4Qwen3.8-Flash-Next GSQ-RCO Q2_0. All 24,576 routed experts were resident in the 31.64 GiB GPU expert cache. KV
5streaming kept 32,768 of 131,072 cells per QSA layer in VRAM and used 1.55 GiB of pinned RAM.
6
7The source revision was `a68d0b7fd88c206d55c2ca1d3c2811300b07bd14`. It contains the `gfx1151` enablement from
8PR #895, the opt-in dense MMQ path from PR #820, and a `gfx1151` hipBLASLt 1.5.0 tuning table adapted from the work
9in PR #755. PR #855 was not included. The HIP runtime reported version `7.17.26392-0000000`; the tuning table is for
10hipBLASLt version `100500` and contains 32 rows.
11
12## Method
13
14`tools/hip/bench_prefill.py` sent a warm-up followed by fresh prompts containing 140, 280, 140 and 280 generated
15JavaScript functions. Every fresh prompt had zero reused KV tokens. Each fresh request was followed by one cached
16request. Sampling was fixed at temperature 0, top-k 1, top-p 1, min-p 0 and seed 42, with reasoning disabled. Every
17measured request generated 128 tokens and stopped at the intentional length limit.
18
19The server was restarted between arms. `STRATA_SH_STREAM` defaults to enabled in this revision, so C and D are the
20same effective configuration; D merely sets the default explicitly.
21
22| Arm | Runtime environment | Result file | Engine log |
23| --- | --- | --- | --- |
24| A | `STRATA_DENSE_MMQ=0`, no tuning table; SH stream default on | [`gfx1151-plain.json`](gfx1151-plain.json) | [`engine-A.log`](engine-A.log) |
25| B | A plus the `gfx1151` hipBLASLt tuning table | [`gfx1151-B-tuningTables.json`](gfx1151-B-tuningTables.json) | [`engine-B.log`](engine-B.log) |
26| C | B plus `STRATA_DENSE_MMQ=1`; SH stream default on | [`gfx1151-C-tuningTables-denseMMQ.json`](gfx1151-C-tuningTables-denseMMQ.json) | [`engine-C.log`](engine-C.log) |
27| D | C plus explicit `STRATA_SH_STREAM=1` | [`gfx1151-D-tuningTables-denseMMQ-PR826.json`](gfx1151-D-tuningTables-denseMMQ-PR826.json) | [`engine-D.log`](engine-D.log) |
28| E | C with `STRATA_SH_STREAM=0` | [`gfx1151-E-tuningTables-denseMMQ-noPR826.json`](gfx1151-E-tuningTables-denseMMQ-noPR826.json) | [`engine-E.log`](engine-E.log) |
29
30The engine logs confirmed that B-E loaded 32 tuning rows for `gfx1151` / `100500`, and that C-E enabled dense MMQ.
31
32## Fresh-prompt results
33
34The table reports the engine's prompt-processing rate. "First" and "warmed" describe execution order within an
35arm; zero KV reuse does not imply a cold filesystem or GPU-library cache.
36
37| Fresh prompt | A: plain hipBLAS | B: tuned hipBLASLt | C: + dense MMQ | D: SH stream on | E: SH stream off |
38| --- | ---: | ---: | ---: | ---: | ---: |
39| 4,210 tokens, first | 261.6 | 549.7 | 554.8 | 567.4 | 568.9 |
40| 8,830 tokens, first | 250.9 | 525.0 | 526.0 | 527.0 | 528.1 |
41| 4,210 tokens, warmed | 247.5 | 526.1 | 528.5 | 527.6 | 526.0 |
42| 8,830 tokens, warmed | 247.7 | 524.6 | 523.4 | 524.7 | 524.2 |
43| **Weighted rate** | **250.91** | **528.91** | **529.96** | **532.43** | **532.58** |
44
45Rates are tokens per second. The weighted row divides the 26,080 fresh tokens in each arm by their combined engine
46prefill time.
47
48The tuning table raised weighted fresh-prompt throughput from 250.91 to 528.91 tok/s: **2.11x, or 110.8% faster**.
49The four matched improvements were 109-113%, so the effect was present at both prompt sizes and on both passes. The
50combined wall time of the four fresh requests, including their 128-token answers, fell from 114.50 to 59.97 seconds
51(47.6%).
52
53Dense MMQ changed the weighted B result by only +0.2%. C-E differ by less than 0.5%, which is consistent with normal
54run-to-run variation rather than a measurable prefill benefit from dense MMQ or SH streaming on this workload.
55
56## Shared-expert stream result
57
58D and E isolate `STRATA_SH_STREAM`: their prompts, generated responses and MTP draft behavior matched. Across all
59eight measured requests, excluding the warm-up:
60
61| Configuration | Generated tokens | Decode time | Weighted decode rate |
62| --- | ---: | ---: | ---: |
63| D: SH stream on | 1,024 | 21.894 s | 46.77 tok/s |
64| E: SH stream off | 1,024 | 22.441 s | 45.63 tok/s |
65
66Enabling the shared-expert stream improved weighted decode throughput by **2.5%** and saved 0.547 seconds of decode
67time. All eight individual requests were faster with it, by about 1.3-3.5%. As expected for a decode optimization,
68it did not materially change fresh-prompt throughput.
69
70## Limits
71
72This is one ordered benchmark session on one machine, not a confidence interval or a claim for other GPUs and
73models. C and D provide one repeat of the same effective configuration and show the approximate timing noise. The
74cached follow-ups are retained in the JSON files, but their fresh-token counts differ between some earlier arms
75because the generated replies differ; they are therefore not used for the hipBLASLt prefill comparison.