[GH-ISSUE #432] Benchmark report: R9700 (gfx1201) on 0.1.32 with TheRock 7.10 — router +12% not reproduced, HIP_WMMA prompt +29-34% #201

Closed
opened 2026-11-04 01:40:52 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @jkuepker on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/432

This is a report of numbers measured against the release-note claims, not a bug report. All runs used the same Coder IQ1_M pack on one R9700. localeval streamed sweeps: fresh nonce each call (no prefix cache), 128 forced output tokens, temperature 0, median of reps after a warmup. The server was restarted for every configuration.

Config Prompt 4K (tok/s) Prompt 16K (tok/s) Decode 128 / 1K / 4K (tok/s)
default 1,331 1,310 91.0 / 75.3 / 68.0
STRATA_HIP_ROUTER_OLD=1 1,215 1,312 81.7 / 69.6 / 68.7
STRATA_HIP_WMMA=1 1,712 (+29%) 1,759 (+34%) 85.2 / 70.0 / 68.8
STRATA_SELECT_WMMA=1 1,223 1,324 (+1%) 88.7 / 70.2 / 65.3
--pool-affinity auto (12600K P/E cores) 1,336 1,314 82.9 / 74.3 / 64.2

Router A/B/A/B rerun (6 reps each, decode tok/s):

Run 128 1K 4K
new 91.9 71.2 63.3
old 90.7 70.5 66.3
new 90.6 74.5 68.1
old 89.4 69.7 62.8
  • Router: the new router averages +1-4% decode. The spread within a run is 12-20%, so I can't detect the +12% (62 → 70 tok/s) the notes report. I confirmed the engine received STRATA_HIP_ROUTER_OLD=1 by reading /proc/<pid>/environ. Greedy output is bit-identical between the two routers across 10 server starts, which matches the notes.
  • HIP_WMMA: a clear gain, but below the +36-51% in the notes. The greedy 256-token output hash did not change on a short prompt.
  • SELECT_WMMA: +1% at 16K, in line with the +1.5% in the notes.
  • A difference that may matter: the release numbers came from ROCm 10.2 nightly with hipBLASLt 1.5.0. This box uses what setup installs, TheRock 7.10 wheels with hipBLASLt 1.2.0, so the shipped gfx1201 tuning table doesn't load. Another difference is the CPU: an i5-12600K here, versus 16 threads on the author's machine.

Question: what prompt length and which settings produced the 62 → 70 tok/s figure? With those I can rerun under the same conditions.

Environment

Strata v0.1.32 (tag c499bd1), Linux, Ubuntu 24.04.4, kernel 7.0.0-34
GPU: Radeon AI PRO R9700 32 GB (gfx1201), single card
CPU: i5-12600K (AVX2, no AVX-512), 62 GB DDR5
Setup: ./setup.sh --backend hip --family coder --model IQ1_M (no system ROCm)
ROCm: TheRock 7.10.0a20251120 wheels (gfx120X-all) installed by setup into .venv; hipBLASLt 1.2.0
Server: serve/server.py with setup's generated config (max-context 131072, kv int8, spec 4 + MTP)
Originally created by @jkuepker on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/432 This is a report of numbers measured against the release-note claims, not a bug report. All runs used the same Coder IQ1_M pack on one R9700. localeval streamed sweeps: fresh nonce each call (no prefix cache), 128 forced output tokens, temperature 0, median of reps after a warmup. The server was restarted for every configuration. | Config | Prompt 4K (tok/s) | Prompt 16K (tok/s) | Decode 128 / 1K / 4K (tok/s) | |---|---:|---:|---| | default | 1,331 | 1,310 | 91.0 / 75.3 / 68.0 | | `STRATA_HIP_ROUTER_OLD=1` | 1,215 | 1,312 | 81.7 / 69.6 / 68.7 | | `STRATA_HIP_WMMA=1` | **1,712 (+29%)** | **1,759 (+34%)** | 85.2 / 70.0 / 68.8 | | `STRATA_SELECT_WMMA=1` | 1,223 | 1,324 (+1%) | 88.7 / 70.2 / 65.3 | | `--pool-affinity auto` (12600K P/E cores) | 1,336 | 1,314 | 82.9 / 74.3 / 64.2 | **Router A/B/A/B rerun (6 reps each, decode tok/s):** | Run | 128 | 1K | 4K | |---|---:|---:|---:| | new | 91.9 | 71.2 | 63.3 | | old | 90.7 | 70.5 | 66.3 | | new | 90.6 | 74.5 | 68.1 | | old | 89.4 | 69.7 | 62.8 | - **Router:** the new router averages +1-4% decode. The spread within a run is 12-20%, so I can't detect the +12% (62 → 70 tok/s) the notes report. I confirmed the engine received `STRATA_HIP_ROUTER_OLD=1` by reading `/proc/<pid>/environ`. Greedy output is bit-identical between the two routers across 10 server starts, which matches the notes. - **HIP_WMMA:** a clear gain, but below the +36-51% in the notes. The greedy 256-token output hash did not change on a short prompt. - **SELECT_WMMA:** +1% at 16K, in line with the +1.5% in the notes. - **A difference that may matter:** the release numbers came from ROCm 10.2 nightly with hipBLASLt 1.5.0. This box uses what setup installs, TheRock 7.10 wheels with hipBLASLt 1.2.0, so the shipped gfx1201 tuning table doesn't load. Another difference is the CPU: an i5-12600K here, versus 16 threads on the author's machine. Question: what prompt length and which settings produced the 62 → 70 tok/s figure? With those I can rerun under the same conditions. **Environment** ``` Strata v0.1.32 (tag c499bd1), Linux, Ubuntu 24.04.4, kernel 7.0.0-34 GPU: Radeon AI PRO R9700 32 GB (gfx1201), single card CPU: i5-12600K (AVX2, no AVX-512), 62 GB DDR5 Setup: ./setup.sh --backend hip --family coder --model IQ1_M (no system ROCm) ROCm: TheRock 7.10.0a20251120 wheels (gfx120X-all) installed by setup into .venv; hipBLASLt 1.2.0 Server: serve/server.py with setup's generated config (max-context 131072, kv int8, spec 4 + MTP) ```
Author
Owner

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

Thank you for measuring the claims, this is exactly the kind of check that keeps the notes honest. The router figure (62.4 -> 70.0 tok/s decode) came from one A/B on our R9700 with the Coder IQ1_M and ROCm 10.2 nightly (hipBLASLt 1.5). What is solid is the kernel itself: 39 -> 9-12 us per call, bit-identical. Your first table (91.0 vs 81.7 at 128) is that same size of effect, and your repeated A/B/A/B (+1-4% inside a 12-20% spread) is the better measurement. How much the router matters depends on how much of decode it takes on a given setup. 0.1.34's docs/AMD_HIP.md now gives both figures, and your +29-34% for STRATA_HIP_WMMA=1 with TheRock 7.10 next to ours. Closing as answered. Thanks again!

<!-- gh-comment-id:5943821707 --> @Niko1221 commented on GitHub (Oct 2, 2026): Thank you for measuring the claims, this is exactly the kind of check that keeps the notes honest. The router figure (62.4 -> 70.0 tok/s decode) came from one A/B on our R9700 with the Coder IQ1_M and ROCm 10.2 nightly (hipBLASLt 1.5). What is solid is the kernel itself: 39 -> 9-12 us per call, bit-identical. Your first table (91.0 vs 81.7 at 128) is that same size of effect, and your repeated A/B/A/B (+1-4% inside a 12-20% spread) is the better measurement. How much the router matters depends on how much of decode it takes on a given setup. [0.1.34](https://github.com/Niko1221/Strata/releases/tag/v0.1.34)'s docs/AMD_HIP.md now gives both figures, and your +29-34% for `STRATA_HIP_WMMA=1` with TheRock 7.10 next to ours. Closing as answered. Thanks again!
Author
Owner

@jkuepker commented on GitHub (Oct 2, 2026):

Follow-up: tuning results on the same box (R9700 gfx1201, i5-12600K, TheRock ROCm 7.10 / hipBLASLt 1.2.0, Coder IQ1_M). Measured with localeval streamed sweeps; quality checked with needle prompts at about 4K / 16K / 57K and a code task, all compared by greedy hash.

What helped (prompt tok/s):

Config 4K 16K 32K 60K
default 1,338 1,315 1,334 —
STRATA_HIP_WMMA=1 1,711 1,759 1,803 1,933
WMMA + --prefill auto:32768 1,716 1,929-2,068 1,820 2,022
  • WMMA: +28-35% across three runs. The greedy answers were identical to the default on every quality prompt (4/4).
  • --prefill auto:32768: +10-18% at 16K over the default auto (which caps chunks at 8192), and +5% at 60K. It cost no expert-cache VRAM here, because all 12,288 Coder experts stay cached (23.42 GiB). auto:65536 was 9% slower at 4K; auto:16384 gave no gain at 16K.
  • --spec-min-p 0.7 (from tools/calibrate.py): decode 78.2 → 81.4-81.6 tok/s. The sweep went 0.5: 78.3, 0.7: 81.6, 0.8: 80.3, 0.9: 80.0, 0.95: 76.1. PCIe share and worker count made no difference.

What didn't help:

  • A hipBLASLt table calibrated for 1.2.0 with tune_hipblaslt. Per-GEMM speedups ranged from 0.91x to 2.07x, but prompts end to end gained only +0.4%.
  • --spec 3 / 5 / 6 vs 4: 78.9 / 81.3 / 82.8 vs 82.0 / 81.4.
  • STRATA_PREFILL_RING 192 / 384 vs the default of 96 under WMMA: within noise.

A gap I can't explain: the comment in src/prefill/prefill.cpp reports R9700 4K prompts at 2,426 → 2,483 tok/s with WMMA. On this box it's 1,545-1,716, about 1.5x slower. The 4K number also comes out at one of two levels per server start (about 1,545 or about 1,700) whatever the settings. Likely causes are the ROCm/hipBLASLt version (setup installs TheRock 7.10 / hipBLASLt 1.2.0, versus your 10.2 nightly / 1.5.0) or the CPU. rocm-10.2.0a20260914 is not on rocm.nightlies.amd.com/v2/gfx120X-all/, nor in the tarball listing (both stop at 7.14.0a20260612). Where can that build be downloaded, so I can rerun on the same ROCm?

<!-- gh-comment-id:5952304264 --> @jkuepker commented on GitHub (Oct 2, 2026): Follow-up: tuning results on the same box (R9700 gfx1201, i5-12600K, TheRock ROCm 7.10 / hipBLASLt 1.2.0, Coder IQ1_M). Measured with localeval streamed sweeps; quality checked with needle prompts at about 4K / 16K / 57K and a code task, all compared by greedy hash. **What helped (prompt tok/s):** | Config | 4K | 16K | 32K | 60K | |---|---:|---:|---:|---:| | default | 1,338 | 1,315 | 1,334 | — | | `STRATA_HIP_WMMA=1` | 1,711 | 1,759 | 1,803 | 1,933 | | WMMA + `--prefill auto:32768` | 1,716 | 1,929-2,068 | 1,820 | 2,022 | - **WMMA:** +28-35% across three runs. The greedy answers were identical to the default on every quality prompt (4/4). - **`--prefill auto:32768`:** +10-18% at 16K over the default `auto` (which caps chunks at 8192), and +5% at 60K. It cost no expert-cache VRAM here, because all 12,288 Coder experts stay cached (23.42 GiB). `auto:65536` was 9% slower at 4K; `auto:16384` gave no gain at 16K. - **`--spec-min-p 0.7`** (from `tools/calibrate.py`): decode 78.2 → 81.4-81.6 tok/s. The sweep went 0.5: 78.3, 0.7: 81.6, 0.8: 80.3, 0.9: 80.0, 0.95: 76.1. PCIe share and worker count made no difference. **What didn't help:** - A hipBLASLt table calibrated for 1.2.0 with `tune_hipblaslt`. Per-GEMM speedups ranged from 0.91x to 2.07x, but prompts end to end gained only +0.4%. - `--spec` 3 / 5 / 6 vs 4: 78.9 / 81.3 / 82.8 vs 82.0 / 81.4. - `STRATA_PREFILL_RING` 192 / 384 vs the default of 96 under WMMA: within noise. **A gap I can't explain:** the comment in `src/prefill/prefill.cpp` reports R9700 4K prompts at 2,426 → 2,483 tok/s with WMMA. On this box it's 1,545-1,716, about 1.5x slower. The 4K number also comes out at one of two levels per server start (about 1,545 or about 1,700) whatever the settings. Likely causes are the ROCm/hipBLASLt version (setup installs TheRock 7.10 / hipBLASLt 1.2.0, versus your 10.2 nightly / 1.5.0) or the CPU. `rocm-10.2.0a20260914` is not on `rocm.nightlies.amd.com/v2/gfx120X-all/`, nor in the tarball listing (both stop at 7.14.0a20260612). Where can that build be downloaded, so I can rerun on the same ROCm?
Author
Owner

@jkuepker commented on GitHub (Oct 2, 2026):

Update: the ROCm version accounts for most of the gap. I rebuilt the same tag against the newest public TheRock wheels: STRATA_ROCM_VERSION=7.14.0a20260612 ./setup.sh --backend hip ... (gfx120X-all, hipBLASLt 1.4). Everything else is unchanged: same box, same Coder IQ1_M pack, same tuned settings (STRATA_HIP_WMMA=1, --prefill auto:32768, --spec-min-p 0.7).

Prompt tok/s (localeval streamed sweeps, fresh nonce per call):

Build 4K 16K 32K
setup default: ROCm 7.10.0a20251120, hipBLASLt 1.2.0 1,719 2,072 1,819
ROCm 7.14.0a20260612, hipBLASLt 1.4 1,973-2,010 2,303-2,360 2,230-2,241
change +15% +11-14% +23%
  • Decode: about 63-70 tok/s on both builds, within noise.
  • Output: greedy output is identical to the 7.10 build on needle prompts at about 4K, 16K and 57K and on a code task (same hashes).
  • Start-to-start variance: on 7.10, the 4K prompt speed came out at one of two levels per server start, about 1,545 or about 1,700. On 7.14, five fresh starts all landed at 1,973-2,010. So that variance looks like a 7.10 issue.

The remaining gap at 4K is now ~2,000 here vs 2,426-2,483 in the prefill.cpp comment, which may be the hipBLASLt 1.5.0 table. Would you consider moving setup's pinned ROCM_VERSION for gfx120X from 7.10.0a20251120 to 7.14.0a20260612? On this card it is a free +15-23% on prompts. I haven't tested it on gfx110X.

A side measurement: host-to-device hipMemcpy caps at about 14 GB/s on this Gen5 x16 link (root port and card both at 32 GT/s x16), with SDMA, for pinned, registered-4KB and registered-THP memory alike. HSA_ENABLE_SDMA=0 raises registered-memory copies to 21-23 GB/s, but end to end it was noise (+5%, then -6%), so the prompt path doesn't seem to be bound by the copy engine here.

<!-- gh-comment-id:5956229850 --> @jkuepker commented on GitHub (Oct 2, 2026): Update: the ROCm version accounts for most of the gap. I rebuilt the same tag against the newest public TheRock wheels: `STRATA_ROCM_VERSION=7.14.0a20260612 ./setup.sh --backend hip ...` (gfx120X-all, hipBLASLt 1.4). Everything else is unchanged: same box, same Coder IQ1_M pack, same tuned settings (`STRATA_HIP_WMMA=1`, `--prefill auto:32768`, `--spec-min-p 0.7`). **Prompt tok/s** (localeval streamed sweeps, fresh nonce per call): | Build | 4K | 16K | 32K | |---|---:|---:|---:| | setup default: ROCm 7.10.0a20251120, hipBLASLt 1.2.0 | 1,719 | 2,072 | 1,819 | | ROCm 7.14.0a20260612, hipBLASLt 1.4 | **1,973-2,010** | **2,303-2,360** | **2,230-2,241** | | change | +15% | +11-14% | +23% | - **Decode:** about 63-70 tok/s on both builds, within noise. - **Output:** greedy output is identical to the 7.10 build on needle prompts at about 4K, 16K and 57K and on a code task (same hashes). - **Start-to-start variance:** on 7.10, the 4K prompt speed came out at one of two levels per server start, about 1,545 or about 1,700. On 7.14, five fresh starts all landed at 1,973-2,010. So that variance looks like a 7.10 issue. The remaining gap at 4K is now ~2,000 here vs 2,426-2,483 in the `prefill.cpp` comment, which may be the hipBLASLt 1.5.0 table. Would you consider moving setup's pinned `ROCM_VERSION` for gfx120X from 7.10.0a20251120 to 7.14.0a20260612? On this card it is a free +15-23% on prompts. I haven't tested it on gfx110X. **A side measurement:** host-to-device `hipMemcpy` caps at about 14 GB/s on this Gen5 x16 link (root port and card both at 32 GT/s x16), with SDMA, for pinned, registered-4KB and registered-THP memory alike. `HSA_ENABLE_SDMA=0` raises registered-memory copies to 21-23 GB/s, but end to end it was noise (+5%, then -6%), so the prompt path doesn't seem to be bound by the copy engine here.
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#201
No description provided.