mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #979] HIP: a gfx1201 hipBLASLt table for 1.2.1 (100201, ROCm 7.2.0) makes the prompt 6-17% slower than no table #432
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#432
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 @aswin-dot-R on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/979
Summary
A hipBLASLt table calibrated for gfx1201 + hipBLASLt 1.2.1 (
100201, the packaged ROCm 7.2.0) withtools/hip/tune_hipblasltloads cleanly (fallbacks=0) but makes the prompt slower than running without a table. Reporting it so nobody ships one for this combination expecting setup's "+40-60% prompt speed" (measured on the 7900 XTX); on RDNA4 + 1.2.1 the untuned path seems to be the better default already.Setup
[1, 0], Qwen3.8-Flash-Next IQ3_S,--max-context 262144 --kv int8, MTP draftsSTRATA_SH_STREAM=0per #816), Linux 6.17, ROCm 7.2.0 (hipBLASLt 1.2.1)gfx1201-hipblaslt-100500.txt, calibrated on the R9700 as in AMD_HIP.md's "Tuning table" ->STRATA_HIPBLASLT_TUNING_V1 gfx1201 100201, 32 rowsResult (fresh server per run, engine timings,
STRATA_HIPBLASLT_VERBOSE=1)prefill gemm: hipBLASLt summarylaunches=14670 fallbacks=0 unique_fallback_shapes=0One run per variant; the 41K difference is far outside the run-to-run spread I see on this machine (~2-3%). I can share the table file or rerun with other
--tokensif a different calibration is worth trying.Suggestion
Maybe note in AMD_HIP.md's "Tuning table" section that on gfx1201 with hipBLASLt 1.2.1 a table measured slower than no table, so "compare before keeping it" is not a formality there.
@aswin-dot-R commented on GitHub (Oct 5, 2026):
Correction: the table is neutral, not slower - my first comparison was noise
I re-measured properly and the slowdown above does not hold up. Same setup, stock v0.1.39,
STRATA_SH_STREAM=0, four fresh servers interleaved (no table / table / no table / table), each reading three fresh 40,948-token prompts (a unique nonce first, so nothing is reused):(tok/s, engine timings.) With and without the table the prompt speed is the same within ~0.3%. What fooled me: every server reads its first fresh prompt at ~1,190 tok/s and the following ones at ~1,030, so my original single-run comparison (1,186 vs 980) caught the two arms in different phases. That first-vs-later step is interesting in itself, but unrelated to hipBLASLt.
The per-GEMM calibration agrees with "small or no gain": against
hipblasGemmExthe tuned solutions win on 21 of 32 shapes and lose on two (N=10240 K=320, 0.89x/0.92x), 1.08x over all 32 shapes - on the order of the +0-4% the docs report for the R9700 with hipBLASLt 1.4.1/1.5.0, and nothing like the 1.2.2 case.So: on gfx1201 + hipBLASLt 1.2.1 a table doesn't hurt, it just doesn't buy anything end to end. Closing this - sorry for the noise.