Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

AMD: ship the gfx1200 hipBLASLt table, with the with/without measurements

efeisot68c573cee8ee
diff --git a/docs/AMD_HIP.md b/docs/AMD_HIP.md
index 69cf3b4a7..0148f7af9 100644
--- a/docs/AMD_HIP.md
+++ b/docs/AMD_HIP.md
@@ -278,8 +278,9 @@ an RX 9070 XT 16 GB and a Radeon AI PRO R9700 32 GB (both gfx1201), a Ryzen 9 39
## Community-validated cards
-Run by their owners, not on the maintainers' machines; setup accepts them like gfx1100 / gfx1201. No hipBLASLt table
-is shipped for them (make one with [Tuning table](#tuning-table) and compare the prompt speed with and without it).
+Run by their owners, not on the maintainers' machines; setup accepts them like gfx1100 / gfx1201. setup ships a
+hipBLASLt table for gfx1200 (the numbers below); gfx1101 has none (make one with [Tuning table](#tuning-table)
+and compare the prompt speed with and without it).
- **gfx1101, RX 7800 XT 16 GB** (jhohertz, #254; engine 0.1.29, Ryzen 9 5950X, 121 GiB RAM, system ROCm with
hipBLASLt 1.4.1): `./setup.sh --backend hip` detected the card and compiled the engine; `strata-device --selftest`
@@ -299,6 +300,17 @@ is shipped for them (make one with [Tuning table](#tuning-table) and compare the
Greedy output was the same across runs. For comparison, llama.cpp's HIP build measured 20 tok/s decode and
450 tok/s prompt on that card.
+ Since 0.1.38 setup ships that table (`tools/hip/gfx1200-hipblaslt-100202.txt`). On engine 0.1.31, one binary (ctest
+ 37/37, without `ple_parity` and `platform_memory_test`), prompts of repeated code blocks, prefill 2560 for
+ the short prompt and 16384 with `--kv int8 --kv-resident 65536` otherwise, two runs each - prompt speed
+ with the table vs plain hipBLAS (no table):
+
+ | prompt | with the table | plain hipBLAS | gain |
+ |---|---|---|---|
+ | 2,374 tokens | 597-599 tok/s | 396-398 tok/s | 1.50x |
+ | 65,045 tokens | 754-757 tok/s | 380 tok/s | 1.99x |
+ | 130,091 tokens (the same flags) | 719 tok/s | 363-370 tok/s | 1.98x |
+
## RDNA2 (gfx1030)
The RX 6800 / 6800 XT / 6900 XT / 6950 XT run the same kernels: wave32 and 64 KiB of LDS per workgroup. The one
diff --git a/tools/hip/gfx1200-hipblaslt-100202.txt b/tools/hip/gfx1200-hipblaslt-100202.txt
new file mode 100644
index 000000000..b26b72c8b
--- /dev/null
+++ b/tools/hip/gfx1200-hipblaslt-100202.txt
@@ -0,0 +1,69 @@
+# solution IDs are scoped to this hipBLASLt version and device architecture
+STRATA_HIPBLASLT_TUNING_V1 gfx1200 100202
+bf16 10240 2560 10240 2560 30831
+bf16 10240 2560 10240 256 31013
+bf16 10240 2560 10240 512 31013
+bf16 10240 320 10240 2560 30902
+bf16 10240 320 10240 256 30831
+bf16 10240 320 10240 512 30779
+bf16 12288 2560 12288 2560 30969
+bf16 12288 2560 12288 256 31013
+bf16 2560 10240 10240 256 30654
+bf16 2560 10240 10240 512 30998
+bf16 2560 12288 2560 256 30654
+bf16 2560 2560 2560 2560 30963
+bf16 2560 2560 2560 256 30789
+bf16 2560 2560 2560 512 30844
+bf16 2560 512 4096 512 30654
+bf16 2560 6144 2560 2560 30654
+bf16 2560 640 2560 2560 30726
+bf16 2560 640 2560 256 30654
+bf16 2560 640 2560 512 30654
+bf16 2560 96 4096 37 30681
+bf16 2560 96 4096 48 30664
+bf16 320 10240 320 2560 31046
+bf16 320 10240 320 256 30668
+bf16 48 2560 96 4096 30904
+bf16 6144 2560 6144 2560 30831
+bf16 6144 2560 6144 256 30969
+bf16 6144 2560 6144 512 31013
+bf16 640 2560 640 2560 31171
+bf16 640 2560 640 256 30912
+bf16 640 2560 640 512 30686
+f16 10240 2560 10240 2560 55549
+f16 10240 2560 10240 256 55715
+f16 10240 2560 10240 512 55549
+f16 10240 320 10240 2560 55604
+f16 10240 320 10240 256 55430
+f16 10240 320 10240 512 55481
+f16 12288 2560 12288 2560 55671
+f16 12288 2560 12288 256 55715
+f16 12288 2560 12288 512 55533
+f16 2560 10240 10240 2560 55731
+f16 2560 10240 10240 256 55356
+f16 2560 10240 10240 512 55730
+f16 2560 12288 2560 2560 55729
+f16 2560 12288 2560 256 55356
+f16 2560 12288 2560 512 55693
+f16 2560 2560 2560 2560 55665
+f16 2560 2560 2560 256 55491
+f16 2560 2560 2560 512 55581
+f16 2560 512 4096 37 55381
+f16 2560 512 4096 512 55356
+f16 2560 6144 2560 2560 55356
+f16 2560 6144 2560 256 55356
+f16 2560 6144 2560 512 55356
+f16 2560 640 2560 2560 55554
+f16 2560 640 2560 256 55356
+f16 2560 640 2560 512 55356
+f16 2560 96 4096 48 55383
+f16 320 10240 320 2560 55545
+f16 320 10240 320 256 55517
+f16 320 10240 320 512 55606
+f16 512 2560 512 4096 55575
+f16 6144 2560 6144 2560 55533
+f16 6144 2560 6144 256 55671
+f16 6144 2560 6144 512 55715
+f16 640 2560 640 2560 55873
+f16 640 2560 640 256 55614
+f16 640 2560 640 512 55826