From cd20588fa09e9446582e62f32b178a2623fc2165 Mon Sep 17 00:00:00 2001 From: Abhinand B Date: Thu, 1 Oct 2026 20:42:28 +0530 Subject: [PATCH] tools/hip: gfx1201 hipBLASLt table for hipBLASLt 1.2.2 (ROCm 7.2.4) Calibrated on a Radeon AI PRO R9700 with tune_hipblaslt (24 of the gfx1100 table's 26 shapes). Setup only picks it when the card is gfx1201 and the installed hipBLASLt is exactly 100202. With that hipBLASLt the plain hipBLAS path is far off: on the full GSQ-RCO IQ3_XXS (KV streaming, engine 0.1.31) a fresh 32K prompt reads at 1,177 tok/s with the table against 638 without it, and a 7K prompt at 1,164 against 656 (median of 4 warm runs per arm, arms alternated); decode is unchanged. hip_prefill_hipblaslt_gemm passes with it. docs/AMD_HIP.md notes that the 1.4.1 result (0-3%) does not carry over to 1.2.2. --- docs/AMD_HIP.md | 4 ++++ tools/hip/gfx1201-hipblaslt-100202.txt | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tools/hip/gfx1201-hipblaslt-100202.txt diff --git a/docs/AMD_HIP.md b/docs/AMD_HIP.md index a2c4bc2f..69cf3b4a 100644 --- a/docs/AMD_HIP.md +++ b/docs/AMD_HIP.md @@ -229,6 +229,10 @@ an RX 9070 XT 16 GB and a Radeon AI PRO R9700 32 GB (both gfx1201), a Ryzen 9 39 so none was shipped for it: there the plain hipBLAS path is already close. For hipBLASLt 1.5.0 (ROCm 10.2.0a nightly) `tools/hip/gfx1201-hipblaslt-100500.txt` is shipped (see "Tuning table" below); on one R9700 it measured +3.9% prompt speed on 4,210-token prompts (1,590 vs 1,531 tok/s), a modest gain. + With the hipBLASLt 1.2.2 of a system ROCm 7.2.4 the plain path is far off, and `tools/hip/gfx1201-hipblaslt-100202.txt` + is shipped for it (24 of the gfx1100 table's 26 shapes; setup uses it only with that exact version): on an R9700 + with the full IQ3_XXS, `--kv int8 --kv-resident 32768`, a fresh 32K prompt read at 638 -> 1,177 tok/s and a 7K one + at 656 -> 1,164 tok/s with it, decode unchanged. `hip_prefill_hipblaslt_gemm` passes with it. - **Both cards in one run (layer split, engine 0.1.30):** the config's `"backend": "hip", "gpu": [1, 0]` (R9700 first) runs through `serve/server.py` (setup writes it with `--gpus 1,0` since 0.1.31). Auto split put layers 0-27 on the R9700 and 28-47 on the 9070 XT. With every expert on the GPUs the split gives exactly the tokens of the R9700 alone (4K and diff --git a/tools/hip/gfx1201-hipblaslt-100202.txt b/tools/hip/gfx1201-hipblaslt-100202.txt new file mode 100644 index 00000000..d69e3da9 --- /dev/null +++ b/tools/hip/gfx1201-hipblaslt-100202.txt @@ -0,0 +1,26 @@ +# solution IDs are scoped to this hipBLASLt version and device architecture +STRATA_HIPBLASLT_TUNING_V1 gfx1201 100202 +bf16 1 2560 1 4096 74196 +bf16 48 2560 96 4096 73754 +bf16 48 2560 96 8192 73754 +bf16 128 2560 128 4096 73754 +bf16 128 2560 128 8192 73715 +bf16 320 10240 320 4096 73838 +bf16 320 10240 320 8192 73838 +bf16 512 2560 512 8192 73803 +bf16 2560 2560 2560 8192 73778 +bf16 10240 320 10240 8192 73761 +f16 512 2560 512 4096 88193 +f16 512 2560 512 8192 88307 +f16 640 2560 640 4096 88251 +f16 640 2560 640 8192 88192 +f16 2560 640 2560 4096 88216 +f16 2560 640 2560 8192 88307 +f16 2560 6144 2560 4096 88281 +f16 2560 6144 2560 8192 88281 +f16 6144 2560 6144 4096 88255 +f16 6144 2560 6144 8192 88307 +f16 10240 2560 10240 4096 88255 +f16 10240 2560 10240 8192 88255 +f16 12288 2560 12288 4096 88255 +f16 12288 2560 12288 8192 88255