mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#201
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @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.
STRATA_HIP_ROUTER_OLD=1STRATA_HIP_WMMA=1STRATA_SELECT_WMMA=1--pool-affinity auto(12600K P/E cores)Router A/B/A/B rerun (6 reps each, decode tok/s):
STRATA_HIP_ROUTER_OLD=1by reading/proc/<pid>/environ. Greedy output is bit-identical between the two routers across 10 server starts, which matches the notes.Question: what prompt length and which settings produced the 62 → 70 tok/s figure? With those I can rerun under the same conditions.
Environment
@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=1with TheRock 7.10 next to ours. Closing as answered. Thanks again!@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):
STRATA_HIP_WMMA=1--prefill auto:32768--prefill auto:32768: +10-18% at 16K over the defaultauto(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:65536was 9% slower at 4K;auto:16384gave no gain at 16K.--spec-min-p 0.7(fromtools/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:
tune_hipblaslt. Per-GEMM speedups ranged from 0.91x to 2.07x, but prompts end to end gained only +0.4%.--spec3 / 5 / 6 vs 4: 78.9 / 81.3 / 82.8 vs 82.0 / 81.4.STRATA_PREFILL_RING192 / 384 vs the default of 96 under WMMA: within noise.A gap I can't explain: the comment in
src/prefill/prefill.cppreports 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.0a20260914is not onrocm.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?@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):
The remaining gap at 4K is now ~2,000 here vs 2,426-2,483 in the
prefill.cppcomment, which may be the hipBLASLt 1.5.0 table. Would you consider moving setup's pinnedROCM_VERSIONfor 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
hipMemcpycaps 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=0raises 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.