Merge f-141-amdintel: AMD and Intel work, watchdog file-tier tolerance, ports

# Conflicts:
#	bench/results/COMMUNITY.md
This commit is contained in:
Niko1221 committed 2026-10-08 09:56:29 +02:00
commit a00d889383
17 files changed
+862 -22

No files matched your search

@@ -0,0 +1,121 @@
# Radeon 890M (gfx1150): a hipBLASLt table, and the gfx1151 exact switches (2026-10-07)
gfx1150 (Strix Point) builds and runs from 0.1.40.2 (#1217), but there was no hipBLASLt table for it, so the prompt's
dense GEMMs ran on plain hipBLAS. This folder has the table this machine calibrated
(`tools/hip/gfx1150-hipblaslt-100401.txt`) and what it does: **prompts read 1.5-1.7x faster** (3.6K tokens: 124 ->
216 tok/s, 7K: 130 -> 226 tok/s, medians of 3 interleaved rounds), decode unchanged. It also checks the exact speed
switches that 0.1.40 turns on for gfx1151 (18), less `STRATA_HCD_EXACT` (17), on this chip: the same greedy answers with and
without them, decode +2% and prompts +3-5%.
## Rig
- MINISFORUM N5 PRO: Ryzen AI 9 HX PRO 370 (12 cores / 24 threads, Zen 5, AVX-512), Radeon 890M (gfx1150, RDNA3.5,
16 CUs, PCI `1002:150e`), 96 GB DDR5-5600 (93.4 GiB usable), BIOS carve-out 512 MB. The GPU's memory is the GTT pool
of the same RAM, raised to 64 GiB with `ttm.pages_limit=16777216 ttm.page_pool_size=16777216`.
- Proxmox VE 9.2 (Debian 13), kernel 7.0.14-20-pve with the in-tree amdgpu / amdkfd. The engine runs in an unprivileged
LXC container (Debian 13.7) with `/dev/kfd` and `/dev/dri/renderD128` passed in.
- ROCm: AMD TheRock 7.14.1 for gfx1150 (`therock-dist-linux-gfx1150-7.14.1.tar.gz`, SHA-256
`da8335c9bc230a8b0e3e43b21dedfb3cfc2456f3ecfecfaa49db40096f08bac5`): hipBLASLt 1.4.1 (`cd957402`, version number
100401), HIP runtime 71460850.
- Engine 0.1.40.2 (`e8ca9af`), built by hand: `-DSTRATA_ENABLE_HIP=ON -DSTRATA_PREFILL_MMQ=ON
-DSTRATA_PARITY_PROMPT_ATTN=ON -DCMAKE_HIP_ARCHITECTURES=gfx1150` with GCC 14.2 (the steps of
[STRIX_HALO.md](../../../docs/STRIX_HALO.md) with the architecture changed). ctest: 58 of 61 pass; the other three are
`hip_prefill_hcd_exact_parity` and `hip_prefill_hipblaslt_gemm` (skipped without a table) and `ple_parity` (needs
`bench/micro` data). `iq_parity` by hand: all 10 formats ok.
- Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS (ISTA-DASLab, revision `ed59f920`), a native pack with `experts.bin`.
Server config: [strata-gfx1150.json](strata-gfx1150.json). All 24,576 experts are in the GTT pool (`--mmap-experts
--expert-cache 24576`, 39.97 GiB), `--prefill auto` (8,192-token chunks, a 96-slot ring), `--spec 4 --spec-min-p 0.5`
with the MTP draft layer, `--max-context 65536 --kv int8`, `--conversation-cache-mib 12288`, `--vision`.
## Calibrating the table
1. **The shapes.** A table with only its header (`STRATA_HIPBLASLT_TUNING_V1 gfx1150 100401`) and
`STRATA_HIPBLASLT_VERBOSE=1` make the engine log every GEMM it would look up. Prompts of 28 to 7,881 tokens logged 16
geometries (the same 16 as `gfx1201-hipblaslt-100500.txt`) at T from 116 to 7,874.
2. **tune_hipblaslt** (this checkout's, the engine's 32 MiB workspace) over the 16 geometries at T = 64, 128, 256, 512,
1024, 2048, 4096, 8192 and 16384: 144 cases, run twice back to back with the server stopped (4.5 minutes a pass).
No candidate failed the tool's accuracy gate.
3. **The pick.** Now and then one repetition stalls: a call that takes 100 ms read 800-1,650 ms once. The tool keeps the
lowest mean of its three repetitions, so a stall can hide the fastest solution; its own picks differed in 26 of the
144 rows between the two passes. Each row of the table is the solution with the lowest **median of all six
repetitions** of both passes.
Every row beats plain hipBLAS (`hipblasGemmEx`): 1.55x to 22.6x per GEMM, geometric mean 4.5x (4.7x at T=8192). The
largest, f16 N=12288 K=2560 at T=8192, takes 90 ms instead of 308 ms. Per case: [tune-summary.csv](tune-summary.csv)
(medians in ms, the kept solution, and how many candidates the heuristic offered).
The engine takes it (`prefill gemm: hipBLASLt tuning enabled (144 rows, gfx1150, version 100401)`), and with
`STRATA_HIPBLASLT_VERBOSE=1` prompts of 28 to 7,880 tokens logged 76 Lt solutions and 0 fallbacks. With
`STRATA_HIPBLASLT_TUNING` set to it, `hip_prefill_hipblaslt_gemm` passes (`launches=4 fallbacks=0`, its four cases within
`relative_l2` 8e-6 of hipBLASEx) and `hip_prefill_hcd_exact_parity` skips: at every tested T (64 to 16384) the table
sends the HC down projection to another solution than 1176 / 1177.
## Prompt speed
Three rounds, the three configurations interleaved, the server restarted for every run (cold prompt cache), one request
at a time, the engine's own `strata serve: prompt` line. Each run: a short chat three times (256 tokens out, greedy),
then one fresh document prompt each of about 1K, 3.6K and 7K tokens (a random nonce first). Every run is in
[runs.csv](runs.csv).
- `hipblas+switches`: no table, the 17 switches set by hand (what this machine ran before)
- `table`: the table, no switches
- `table+switches`: the table and the 17 switches
| Prompt | hipblas+switches | table | table+switches |
|---|---:|---:|---:|
| 987 tokens | 99.1 tok/s | 152.4 | 153.1 |
| 3,562 tokens | 123.9 | 205.6 | 216.0 |
| 7,010 tokens | 130.5 | 219.4 | 225.8 |
| decode, short chat (256 tokens) | 15.3-15.4 tok/s | 14.9-15.0 | 15.2-15.3 |
Medians of the three rounds. Each round on its own gave the same order. A 13,969-token prompt (two chunks) read in 107.7 s
(130 tok/s) without the table and 61.5 s (227 tok/s) with it and the switches (64.6 s without the switches).
Where the time goes now (`STRATA_PREFILL_TIMING=1`, 7,003 tokens, table+switches, 30.3 s of GPU time): prompt
attention 23%, GDN projections 15%, expert GEMMs 22% (gate/up 14, down 8), hyper-connection read 8%, QSA projections
8%, GDN output projection 7%. Before the table the dense projections (hyper-connection read, GDN, QSA, router and shared
expert, GDN output) were 65% of it.
**Answers.** Greedy, no thinking, four fixed prompts (a 28-token chat, a 35-token code question, documents of 3,546 and
13,969 tokens; 57-128 tokens out). With and without the table the first three answers were the same text; the
13,969-token one diverged from its first sentence on. The table changes the summation order of the dense GEMMs, as on
the other cards' tables.
## The gfx1151 exact switches on gfx1150
0.1.40 turns on 18 switches by default on gfx1151 ([STRIX_HALO.md](../../../docs/STRIX_HALO.md) section 4). This machine
ran 17 of them by hand (not `STRATA_HCD_EXACT`: it copies gfx1151's hipBLASLt solutions 1176 / 1177, and the gfx1150
table picks others, 539-555 for the bf16 rows).
- **Exact here too.** With the table, the four greedy answers above were the same text with all 17 on and with all 17
off, also the 13,969-token one. Without the table, 0.1.40.1 and 0.1.40.2 also gave the same four answers.
- **Faster, a little.** From the rounds above (table vs table+switches): decode 14.9-15.0 -> 15.2-15.3 tok/s (+2%, in
every pair), prompts +4.1 / +4.3 / +6.0% at 3.6K and +2.1 / +3.6 / +4.0% at 7K. Without `STRATA_SH_STREAM` (16 on)
one run read the same as with it.
## Rounding-level switches (not on by default)
One run each, each switch added alone to table+switches (prompts of about 1K / 3.6K / 7K tokens; that configuration read
153 / 217 / 230 tok/s in the same session):
| Switch | Prompt tok/s |
|---|---|
| `STRATA_HIP_WMMA=1` | 160 / 250 / 277 (+20% at 7K) |
| `STRATA_PF_FUSED=1` | 155 / 257 / 255 |
| `STRATA_PF_GEMM=1` | 166 / 243 / 262 |
| `STRATA_PA_FAST=1`, `STRATA_SELECT_WMMA=1`, `STRATA_HC_UPMIX=1` | unchanged |
| `STRATA_HC_Q8=1` | 146 / 219 / 224 |
| `STRATA_PREFILL_CPU_SHARE=auto` | unchanged (153 / 217 / 230) |
| `--no-prefill-borrow` | 162 / 195 / 190 |
Decode did not move with any of them. All seven of STRIX_HALO.md section 5 together, on 0.1.40.1 without the table, read
83 tok/s at 3.6K where the exact switches alone read 124. These change bits and no KL was measured here.
## Not tested
- Answer quality beyond the greedy comparisons above (no KL, no benchmark), other models (only GSQ-RCO IQ3_XXS; the
OrcaRouter IQ3_XXS of [ORCA.md](../../../docs/ORCA.md) also started and answered with the table), contexts past
14K tokens.
- `--prefill 16384`: the table has T=16384 rows, but this machine serves `--prefill auto`.
- Other ROCm versions: the table is for hipBLASLt 100401 only; the engine refuses it with another version.
- setup: it does not install for gfx1150, so the table is set by hand (`STRATA_HIPBLASLT_TUNING`).
@@ -0,0 +1,55 @@
config,round,case,prompt_tokens,reused,read,prompt_s,prompt_tok_s,generated,decode_s,decode_tok_s,drafts_accepted,drafts
hipblas+switches,r1,chat1,28,0,28,0.86,32.4,256,16.67,15.4,104,167
hipblas+switches,r1,chat2,28,21,7,0.22,31.6,256,16.65,15.4,104,167
hipblas+switches,r1,chat3,28,21,7,0.23,30.4,256,16.66,15.4,104,167
hipblas+switches,r1,~1000,989,0,989,9.98,99.1,74,4.45,16.6,41,69
hipblas+switches,r1,~4000,3562,0,3562,28.42,125.3,61,3.49,17.5,36,53
hipblas+switches,r1,~8000,7009,0,7009,53.90,130.0,61,3.38,18.1,37,50
hipblas+switches,r2,chat1,28,0,28,0.89,31.5,256,17.03,15.0,104,167
hipblas+switches,r2,chat2,28,21,7,0.22,31.4,256,16.77,15.3,104,167
hipblas+switches,r2,chat3,28,21,7,0.24,29.6,256,16.67,15.4,104,167
hipblas+switches,r2,~1000,990,0,990,9.94,99.6,64,3.83,16.7,37,57
hipblas+switches,r2,~4000,3563,0,3563,28.76,123.9,61,3.66,16.7,35,56
hipblas+switches,r2,~8000,7009,0,7009,53.71,130.5,61,3.50,17.4,35,50
hipblas+switches,r3,chat1,28,0,28,0.88,31.7,256,17.11,15.0,104,167
hipblas+switches,r3,chat2,28,21,7,0.23,30.4,256,16.75,15.3,104,167
hipblas+switches,r3,chat3,28,21,7,0.25,28.3,256,16.72,15.3,104,167
hipblas+switches,r3,~1000,987,0,987,10.55,93.5,63,3.67,17.2,35,52
hipblas+switches,r3,~4000,3563,0,3563,28.87,123.4,61,3.50,17.4,36,52
hipblas+switches,r3,~8000,7012,0,7012,53.64,130.7,61,3.50,17.4,36,56
table,r1,chat1,28,0,28,0.89,31.4,256,17.07,15.0,104,167
table,r1,chat2,28,21,7,0.23,30.2,256,17.07,15.0,104,167
table,r1,chat3,28,21,7,0.24,28.7,256,17.05,15.0,104,167
table,r1,~1000,986,0,986,6.97,141.4,64,4.00,16.0,36,61
table,r1,~4000,3562,0,3562,17.33,205.6,77,4.37,17.6,46,65
table,r1,~8000,7011,0,7011,31.93,219.6,77,4.33,17.8,45,62
table,r2,chat1,28,0,28,1.12,24.9,256,17.17,14.9,104,167
table,r2,chat2,28,21,7,0.23,30.1,256,17.14,14.9,104,167
table,r2,chat3,28,21,7,0.24,28.8,256,16.99,15.1,104,167
table,r2,~1000,988,0,988,6.41,154.2,72,4.52,15.9,40,67
table,r2,~4000,3564,0,3564,17.18,207.4,61,3.75,16.3,36,56
table,r2,~8000,7011,0,7011,32.17,217.9,77,4.40,17.5,45,65
table,r3,chat1,28,0,28,0.88,31.8,256,17.07,15.0,104,167
table,r3,chat2,28,21,7,0.23,30.4,256,17.27,14.8,104,167
table,r3,chat3,28,21,7,0.24,29.3,256,17.06,15.0,104,167
table,r3,~1000,988,0,988,6.48,152.4,72,4.22,17.1,41,62
table,r3,~4000,3563,0,3563,17.35,205.4,77,4.41,17.5,46,64
table,r3,~8000,7007,0,7007,31.94,219.4,61,3.77,16.2,35,56
table+switches,r1,chat1,28,0,28,0.96,29.1,256,17.09,15.0,104,167
table+switches,r1,chat2,28,21,7,0.23,30.6,256,16.70,15.3,104,167
table+switches,r1,chat3,28,21,7,0.24,29.2,256,16.72,15.3,104,167
table+switches,r1,~1000,987,0,987,6.46,152.8,64,3.74,17.1,37,56
table+switches,r1,~4000,3563,0,3563,16.61,214.5,61,3.47,17.6,36,52
table+switches,r1,~8000,7008,0,7008,30.70,228.3,61,3.56,17.1,36,53
table+switches,r2,chat1,28,0,28,0.86,32.5,256,16.84,15.2,104,167
table+switches,r2,chat2,28,21,7,0.22,31.9,256,16.72,15.3,104,167
table+switches,r2,chat3,28,21,7,0.23,30.4,256,16.82,15.2,104,167
table+switches,r2,~1000,989,0,989,6.28,157.5,64,3.74,17.1,37,56
table+switches,r2,~4000,3563,0,3563,16.49,216.0,61,3.43,17.8,37,55
table+switches,r2,~8000,7010,0,7010,31.04,225.8,61,3.61,16.9,36,50
table+switches,r3,chat1,28,0,28,0.88,31.7,256,16.87,15.2,104,167
table+switches,r3,chat2,28,21,7,0.22,31.5,256,16.81,15.2,104,167
table+switches,r3,chat3,28,21,7,0.23,30.1,256,16.89,15.2,104,167
table+switches,r3,~1000,988,0,988,6.45,153.1,64,3.94,16.3,36,59
table+switches,r3,~4000,3565,0,3565,16.37,217.8,82,4.71,17.4,46,62
table+switches,r3,~8000,7010,0,7010,31.31,223.9,61,3.62,16.9,34,53
1 config round case prompt_tokens reused read prompt_s prompt_tok_s generated decode_s decode_tok_s drafts_accepted drafts
2 hipblas+switches r1 chat1 28 0 28 0.86 32.4 256 16.67 15.4 104 167
3 hipblas+switches r1 chat2 28 21 7 0.22 31.6 256 16.65 15.4 104 167
4 hipblas+switches r1 chat3 28 21 7 0.23 30.4 256 16.66 15.4 104 167
5 hipblas+switches r1 ~1000 989 0 989 9.98 99.1 74 4.45 16.6 41 69
6 hipblas+switches r1 ~4000 3562 0 3562 28.42 125.3 61 3.49 17.5 36 53
7 hipblas+switches r1 ~8000 7009 0 7009 53.90 130.0 61 3.38 18.1 37 50
8 hipblas+switches r2 chat1 28 0 28 0.89 31.5 256 17.03 15.0 104 167
9 hipblas+switches r2 chat2 28 21 7 0.22 31.4 256 16.77 15.3 104 167
10 hipblas+switches r2 chat3 28 21 7 0.24 29.6 256 16.67 15.4 104 167
11 hipblas+switches r2 ~1000 990 0 990 9.94 99.6 64 3.83 16.7 37 57
12 hipblas+switches r2 ~4000 3563 0 3563 28.76 123.9 61 3.66 16.7 35 56
13 hipblas+switches r2 ~8000 7009 0 7009 53.71 130.5 61 3.50 17.4 35 50
14 hipblas+switches r3 chat1 28 0 28 0.88 31.7 256 17.11 15.0 104 167
15 hipblas+switches r3 chat2 28 21 7 0.23 30.4 256 16.75 15.3 104 167
16 hipblas+switches r3 chat3 28 21 7 0.25 28.3 256 16.72 15.3 104 167
17 hipblas+switches r3 ~1000 987 0 987 10.55 93.5 63 3.67 17.2 35 52
18 hipblas+switches r3 ~4000 3563 0 3563 28.87 123.4 61 3.50 17.4 36 52
19 hipblas+switches r3 ~8000 7012 0 7012 53.64 130.7 61 3.50 17.4 36 56
20 table r1 chat1 28 0 28 0.89 31.4 256 17.07 15.0 104 167
21 table r1 chat2 28 21 7 0.23 30.2 256 17.07 15.0 104 167
22 table r1 chat3 28 21 7 0.24 28.7 256 17.05 15.0 104 167
23 table r1 ~1000 986 0 986 6.97 141.4 64 4.00 16.0 36 61
24 table r1 ~4000 3562 0 3562 17.33 205.6 77 4.37 17.6 46 65
25 table r1 ~8000 7011 0 7011 31.93 219.6 77 4.33 17.8 45 62
26 table r2 chat1 28 0 28 1.12 24.9 256 17.17 14.9 104 167
27 table r2 chat2 28 21 7 0.23 30.1 256 17.14 14.9 104 167
28 table r2 chat3 28 21 7 0.24 28.8 256 16.99 15.1 104 167
29 table r2 ~1000 988 0 988 6.41 154.2 72 4.52 15.9 40 67
30 table r2 ~4000 3564 0 3564 17.18 207.4 61 3.75 16.3 36 56
31 table r2 ~8000 7011 0 7011 32.17 217.9 77 4.40 17.5 45 65
32 table r3 chat1 28 0 28 0.88 31.8 256 17.07 15.0 104 167
33 table r3 chat2 28 21 7 0.23 30.4 256 17.27 14.8 104 167
34 table r3 chat3 28 21 7 0.24 29.3 256 17.06 15.0 104 167
35 table r3 ~1000 988 0 988 6.48 152.4 72 4.22 17.1 41 62
36 table r3 ~4000 3563 0 3563 17.35 205.4 77 4.41 17.5 46 64
37 table r3 ~8000 7007 0 7007 31.94 219.4 61 3.77 16.2 35 56
38 table+switches r1 chat1 28 0 28 0.96 29.1 256 17.09 15.0 104 167
39 table+switches r1 chat2 28 21 7 0.23 30.6 256 16.70 15.3 104 167
40 table+switches r1 chat3 28 21 7 0.24 29.2 256 16.72 15.3 104 167
41 table+switches r1 ~1000 987 0 987 6.46 152.8 64 3.74 17.1 37 56
42 table+switches r1 ~4000 3563 0 3563 16.61 214.5 61 3.47 17.6 36 52
43 table+switches r1 ~8000 7008 0 7008 30.70 228.3 61 3.56 17.1 36 53
44 table+switches r2 chat1 28 0 28 0.86 32.5 256 16.84 15.2 104 167
45 table+switches r2 chat2 28 21 7 0.22 31.9 256 16.72 15.3 104 167
46 table+switches r2 chat3 28 21 7 0.23 30.4 256 16.82 15.2 104 167
47 table+switches r2 ~1000 989 0 989 6.28 157.5 64 3.74 17.1 37 56
48 table+switches r2 ~4000 3563 0 3563 16.49 216.0 61 3.43 17.8 37 55
49 table+switches r2 ~8000 7010 0 7010 31.04 225.8 61 3.61 16.9 36 50
50 table+switches r3 chat1 28 0 28 0.88 31.7 256 16.87 15.2 104 167
51 table+switches r3 chat2 28 21 7 0.22 31.5 256 16.81 15.2 104 167
52 table+switches r3 chat3 28 21 7 0.23 30.1 256 16.89 15.2 104 167
53 table+switches r3 ~1000 988 0 988 6.45 153.1 64 3.94 16.3 36 59
54 table+switches r3 ~4000 3565 0 3565 16.37 217.8 82 4.71 17.4 46 62
55 table+switches r3 ~8000 7010 0 7010 31.31 223.9 61 3.62 16.9 34 53
@@ -0,0 +1,74 @@
{
"exe": "/models/runtime/strata/current/build-gfx1150/strata",
"args": [
"--pack",
"/models/strata/packs/iq3_xxs",
"--native",
"/models/strata/Qwen3.8-Flash-Next-IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
"--ple-gguf",
"/models/strata/Qwen3.8-Flash-Next-IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
"--expert-profile",
"/models/runtime/strata/current/data/expert-profile.bin",
"--expert-cache",
"24576",
"--mmap-experts",
"--prefill",
"auto",
"--spec",
"4",
"--spec-min-p",
"0.5",
"--mtp",
"/models/strata/mtp/rt",
"--max-context",
"65536",
"--kv",
"int8",
"--conversation-cache-mib",
"12288",
"--conversation-cache-slots",
"8",
"--vision",
"--vram-reserve-mib",
"700"
],
"cwd": "/models/runtime/strata/current",
"tokenizer": "/models/strata/packs/iq3_xxs/tokenizer",
"model_name": "qwen3.8-flash-next",
"log": "/models/strata/state/strata-qwen38.log",
"lib_dirs": [
"/models/runtime/strata/current/.rocm/lib",
"/models/runtime/strata/current/.rocm/lib/rocm_sysdeps/lib",
"/models/runtime/strata/current/.rocm/lib/llvm/lib"
],
"port": 8082,
"backend": "hip",
"env": {
"STRATA_ATTN_LANECELL": "1",
"STRATA_CVEC_FUSE": "1",
"STRATA_EXPERT_V2": "1",
"STRATA_GDN_CONVL2": "1",
"STRATA_GDN_HEAD": "1",
"STRATA_GDN_NOY": "1",
"STRATA_GDN_PP": "2",
"STRATA_GDN_SPLIT": "1",
"STRATA_LFUSE": "1",
"STRATA_MMVF_ROWS": "1",
"STRATA_PF_PAD": "1",
"STRATA_PLE_BATCH": "1",
"STRATA_Q6_PACKED": "1",
"STRATA_Q8_PACKED": "1",
"STRATA_QFUSE": "1",
"STRATA_SH_STREAM": "1",
"STRATA_TSUM": "1",
"STRATA_HIPBLASLT_TUNING": "/models/runtime/strata/tuning/gfx1150-hipblaslt-100401.txt"
},
"vision": {
"exe": "/models/runtime/strata/current/build-vision/bin/strata-vision",
"mmproj": "/models/strata/vision/mmproj-Qwen3.8-Flash-Next-BF16.gguf",
"model": "/models/strata/Qwen3.8-Flash-Next-IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
"gpu": false,
"max_tokens": 300,
"threads": 8
}
}
@@ -0,0 +1,145 @@
dtype,T,N,K,ldy,hipblas_ms,hipblaslt_ms,speedup,solution_id,candidates
f16,16384,12288,2560,12288,570.6621,188.9930,3.02,1156,7
f16,16384,10240,2560,10240,503.3711,156.5461,3.22,1156,7
f16,16384,6144,2560,6144,293.1865,90.8025,3.23,1156,7
f16,16384,2560,6144,2560,305.2351,95.6022,3.19,1156,7
f16,16384,2560,640,2560,30.1023,7.7349,3.89,1156,7
f16,16384,640,2560,640,28.5472,8.7900,3.25,1156,7
f16,16384,512,2560,512,23.9800,6.8811,3.48,1156,7
bf16,16384,10240,2560,10240,643.8805,156.7946,4.11,542,9
bf16,16384,10240,320,10240,76.4387,15.2220,5.02,542,9
bf16,16384,320,10240,320,77.3861,14.7762,5.24,542,9
bf16,16384,2560,2560,2560,150.7980,35.3540,4.27,542,9
bf16,16384,512,2560,512,30.8884,7.1108,4.34,542,9
bf16,16384,128,2560,128,8.3923,1.7241,4.87,542,9
bf16,16384,48,2560,96,10.6357,1.1835,8.99,542,9
bf16,16384,4,10240,4,40.6301,4.0832,9.95,540,9
bf16,16384,1,2560,1,9.9104,1.1005,9.01,541,9
f16,8192,12288,2560,12288,308.3724,90.1251,3.42,1156,7
f16,8192,10240,2560,10240,250.9099,74.3622,3.37,1156,7
f16,8192,6144,2560,6144,140.4356,43.8731,3.20,1156,7
f16,8192,2560,6144,2560,150.6988,44.4999,3.39,1156,7
f16,8192,2560,640,2560,14.8262,3.7157,3.99,1156,7
f16,8192,640,2560,640,13.9774,4.2053,3.32,1156,7
f16,8192,512,2560,512,11.6448,3.2112,3.63,1156,7
bf16,8192,10240,2560,10240,320.6165,74.0897,4.33,542,9
bf16,8192,10240,320,10240,38.5849,7.4783,5.16,542,9
bf16,8192,320,10240,320,37.5879,7.2077,5.21,542,9
bf16,8192,2560,2560,2560,76.0175,17.7230,4.29,542,9
bf16,8192,512,2560,512,15.2948,3.3626,4.55,542,9
bf16,8192,128,2560,128,4.1660,0.8738,4.77,542,9
bf16,8192,48,2560,96,5.3577,0.5958,8.99,542,9
bf16,8192,4,10240,4,20.5606,2.0541,10.01,539,9
bf16,8192,1,2560,1,5.0202,0.5513,9.11,541,9
f16,4096,12288,2560,12288,154.3027,43.5847,3.54,1156,7
f16,4096,10240,2560,10240,125.2170,35.3366,3.54,1156,7
f16,4096,6144,2560,6144,76.6512,21.5816,3.55,1156,7
f16,4096,2560,6144,2560,72.3956,21.3828,3.39,1156,7
f16,4096,2560,640,2560,7.5191,1.9463,3.86,1156,7
f16,4096,640,2560,640,7.5407,1.9201,3.93,1156,7
f16,4096,512,2560,512,7.6409,1.5795,4.84,1156,7
bf16,4096,10240,2560,10240,158.8611,35.4939,4.48,542,9
bf16,4096,10240,320,10240,19.6857,3.8810,5.07,542,9
bf16,4096,320,10240,320,17.5878,3.6732,4.79,542,9
bf16,4096,2560,2560,2560,37.4763,8.6888,4.31,542,9
bf16,4096,512,2560,512,7.3683,1.5579,4.73,542,9
bf16,4096,128,2560,128,2.0444,0.4077,5.01,542,9
bf16,4096,48,2560,96,2.6212,0.3096,8.46,539,9
bf16,4096,4,10240,4,9.7732,1.0236,9.55,540,9
bf16,4096,1,2560,1,2.5765,0.2698,9.55,540,9
f16,2048,12288,2560,12288,75.0208,21.6041,3.47,1156,7
f16,2048,10240,2560,10240,66.4348,17.9153,3.71,1156,7
f16,2048,6144,2560,6144,38.5592,10.6631,3.62,1156,7
f16,2048,2560,6144,2560,36.8025,10.4813,3.51,1156,7
f16,2048,2560,640,2560,4.0939,0.8960,4.57,1156,7
f16,2048,640,2560,640,4.1720,0.9064,4.60,1156,7
f16,2048,512,2560,512,3.6901,0.7531,4.90,1156,7
bf16,2048,10240,2560,10240,80.8788,18.5174,4.37,542,9
bf16,2048,10240,320,10240,9.9698,1.9474,5.12,542,9
bf16,2048,320,10240,320,9.3119,1.8604,5.01,542,9
bf16,2048,2560,2560,2560,18.4291,4.0419,4.56,542,9
bf16,2048,512,2560,512,3.9841,0.7788,5.12,542,9
bf16,2048,128,2560,128,1.2195,0.2385,5.11,542,9
bf16,2048,48,2560,96,1.3148,0.1521,8.65,542,9
bf16,2048,4,10240,4,4.9064,0.6099,8.05,555,9
bf16,2048,1,2560,1,1.2333,0.1394,8.85,539,9
f16,1024,12288,2560,12288,38.5003,10.2640,3.75,1156,7
f16,1024,10240,2560,10240,31.9227,8.6601,3.69,1156,7
f16,1024,6144,2560,6144,18.4690,5.1609,3.58,1156,7
f16,1024,2560,6144,2560,17.6803,4.6002,3.84,1156,7
f16,1024,2560,640,2560,1.9869,0.4573,4.34,1156,7
f16,1024,640,2560,640,2.1281,0.5205,4.09,1156,7
f16,1024,512,2560,512,1.6421,0.3834,4.28,1156,7
bf16,1024,10240,2560,10240,38.4572,8.4683,4.54,542,9
bf16,1024,10240,320,10240,5.5595,1.6651,3.34,542,9
bf16,1024,320,10240,320,5.3373,1.0736,4.97,542,9
bf16,1024,2560,2560,2560,9.9116,1.8666,5.31,542,9
bf16,1024,512,2560,512,2.1414,0.3931,5.45,542,9
bf16,1024,128,2560,128,0.6803,0.1084,6.28,542,9
bf16,1024,48,2560,96,0.8438,0.0910,9.27,541,9
bf16,1024,4,10240,4,2.5770,0.2658,9.70,553,9
bf16,1024,1,2560,1,0.7056,0.0826,8.54,541,9
f16,512,12288,2560,12288,19.0235,4.9853,3.82,1156,7
f16,512,10240,2560,10240,15.7707,4.0130,3.93,1156,7
f16,512,6144,2560,6144,8.5797,2.1693,3.95,1156,7
f16,512,2560,6144,2560,9.1863,2.0610,4.46,1156,7
f16,512,2560,640,2560,0.9946,0.2204,4.51,1156,7
f16,512,640,2560,640,1.1312,0.2664,4.25,1156,7
f16,512,512,2560,512,0.8627,0.2329,3.70,1156,7
bf16,512,10240,2560,10240,18.5991,3.8958,4.77,542,9
bf16,512,10240,320,10240,2.3511,0.9714,2.42,542,9
bf16,512,320,10240,320,2.5423,0.3841,6.62,542,9
bf16,512,2560,2560,2560,5.3614,1.0053,5.33,542,9
bf16,512,512,2560,512,1.3167,0.2460,5.35,541,9
bf16,512,128,2560,128,0.3764,0.0802,4.69,542,9
bf16,512,48,2560,96,0.3619,0.0669,5.41,542,9
bf16,512,4,10240,4,1.2848,0.1538,8.35,553,9
bf16,512,1,2560,1,0.3443,0.0412,8.36,555,9
f16,256,12288,2560,12288,11.0056,2.6006,4.23,1156,7
f16,256,10240,2560,10240,9.5589,2.1220,4.50,1156,7
f16,256,6144,2560,6144,4.8171,1.3619,3.54,1156,7
f16,256,2560,6144,2560,4.4667,1.1821,3.78,1156,7
f16,256,2560,640,2560,0.5956,0.1270,4.69,1156,7
f16,256,640,2560,640,0.7308,0.1250,5.85,1156,7
f16,256,512,2560,512,0.4694,0.1808,2.60,1156,7
bf16,256,10240,2560,10240,10.3660,2.1516,4.82,542,9
bf16,256,10240,320,10240,1.3209,0.3100,4.26,542,9
bf16,256,320,10240,320,1.5608,0.2526,6.18,541,9
bf16,256,2560,2560,2560,2.5480,0.5802,4.39,542,9
bf16,256,512,2560,512,0.5536,0.1081,5.12,542,9
bf16,256,128,2560,128,0.1628,0.0827,1.97,540,9
bf16,256,48,2560,96,0.1880,0.0645,2.91,543,9
bf16,256,4,10240,4,0.7191,0.1333,5.40,539,9
bf16,256,1,2560,1,0.1812,0.0261,6.94,553,9
f16,128,12288,2560,12288,5.7421,1.8325,3.13,1154,7
f16,128,10240,2560,10240,4.3162,1.5516,2.78,1154,7
f16,128,6144,2560,6144,2.3298,0.9226,2.53,1154,7
f16,128,2560,6144,2560,2.6517,0.8918,2.97,1156,7
f16,128,2560,640,2560,0.2936,0.1385,2.12,1156,7
f16,128,640,2560,640,0.3463,0.2238,1.55,1167,7
f16,128,512,2560,512,0.2902,0.0985,2.94,1156,7
bf16,128,10240,2560,10240,5.5433,1.5391,3.60,540,9
bf16,128,10240,320,10240,0.6654,0.1904,3.50,542,9
bf16,128,320,10240,320,0.7363,0.2120,3.47,541,9
bf16,128,2560,2560,2560,1.3454,0.3869,3.48,542,9
bf16,128,512,2560,512,0.2837,0.0999,2.84,541,9
bf16,128,128,2560,128,0.1492,0.0485,3.08,552,9
bf16,128,48,2560,96,0.1477,0.0235,6.29,543,9
bf16,128,4,10240,4,0.4786,0.0630,7.60,543,9
bf16,128,1,2560,1,0.1326,0.0205,6.45,553,9
f16,64,12288,2560,12288,4.9551,1.2391,4.00,1154,7
f16,64,10240,2560,10240,4.0352,0.9967,4.05,1154,7
f16,64,6144,2560,6144,2.4523,0.6709,3.66,1154,7
f16,64,2560,6144,2560,2.2624,0.6604,3.43,1156,7
f16,64,2560,640,2560,0.2160,0.0606,3.57,1156,7
f16,64,640,2560,640,0.3042,0.0915,3.33,1155,7
f16,64,512,2560,512,0.2539,0.0863,2.94,1154,7
bf16,64,10240,2560,10240,4.1701,1.0490,3.98,541,9
bf16,64,10240,320,10240,0.3608,0.1476,2.44,541,9
bf16,64,320,10240,320,0.6882,0.1945,3.54,539,9
bf16,64,2560,2560,2560,0.8595,0.2575,3.34,541,9
bf16,64,512,2560,512,0.2072,0.0910,2.28,555,9
bf16,64,128,2560,128,0.1414,0.0460,3.08,555,9
bf16,64,48,2560,96,0.1501,0.0284,5.28,554,9
bf16,64,4,10240,4,0.3768,0.0593,6.35,543,9
bf16,64,1,2560,1,0.4442,0.0197,22.55,543,9
1 dtype T N K ldy hipblas_ms hipblaslt_ms speedup solution_id candidates
2 f16 16384 12288 2560 12288 570.6621 188.9930 3.02 1156 7
3 f16 16384 10240 2560 10240 503.3711 156.5461 3.22 1156 7
4 f16 16384 6144 2560 6144 293.1865 90.8025 3.23 1156 7
5 f16 16384 2560 6144 2560 305.2351 95.6022 3.19 1156 7
6 f16 16384 2560 640 2560 30.1023 7.7349 3.89 1156 7
7 f16 16384 640 2560 640 28.5472 8.7900 3.25 1156 7
8 f16 16384 512 2560 512 23.9800 6.8811 3.48 1156 7
9 bf16 16384 10240 2560 10240 643.8805 156.7946 4.11 542 9
10 bf16 16384 10240 320 10240 76.4387 15.2220 5.02 542 9
11 bf16 16384 320 10240 320 77.3861 14.7762 5.24 542 9
12 bf16 16384 2560 2560 2560 150.7980 35.3540 4.27 542 9
13 bf16 16384 512 2560 512 30.8884 7.1108 4.34 542 9
14 bf16 16384 128 2560 128 8.3923 1.7241 4.87 542 9
15 bf16 16384 48 2560 96 10.6357 1.1835 8.99 542 9
16 bf16 16384 4 10240 4 40.6301 4.0832 9.95 540 9
17 bf16 16384 1 2560 1 9.9104 1.1005 9.01 541 9
18 f16 8192 12288 2560 12288 308.3724 90.1251 3.42 1156 7
19 f16 8192 10240 2560 10240 250.9099 74.3622 3.37 1156 7
20 f16 8192 6144 2560 6144 140.4356 43.8731 3.20 1156 7
21 f16 8192 2560 6144 2560 150.6988 44.4999 3.39 1156 7
22 f16 8192 2560 640 2560 14.8262 3.7157 3.99 1156 7
23 f16 8192 640 2560 640 13.9774 4.2053 3.32 1156 7
24 f16 8192 512 2560 512 11.6448 3.2112 3.63 1156 7
25 bf16 8192 10240 2560 10240 320.6165 74.0897 4.33 542 9
26 bf16 8192 10240 320 10240 38.5849 7.4783 5.16 542 9
27 bf16 8192 320 10240 320 37.5879 7.2077 5.21 542 9
28 bf16 8192 2560 2560 2560 76.0175 17.7230 4.29 542 9
29 bf16 8192 512 2560 512 15.2948 3.3626 4.55 542 9
30 bf16 8192 128 2560 128 4.1660 0.8738 4.77 542 9
31 bf16 8192 48 2560 96 5.3577 0.5958 8.99 542 9
32 bf16 8192 4 10240 4 20.5606 2.0541 10.01 539 9
33 bf16 8192 1 2560 1 5.0202 0.5513 9.11 541 9
34 f16 4096 12288 2560 12288 154.3027 43.5847 3.54 1156 7
35 f16 4096 10240 2560 10240 125.2170 35.3366 3.54 1156 7
36 f16 4096 6144 2560 6144 76.6512 21.5816 3.55 1156 7
37 f16 4096 2560 6144 2560 72.3956 21.3828 3.39 1156 7
38 f16 4096 2560 640 2560 7.5191 1.9463 3.86 1156 7
39 f16 4096 640 2560 640 7.5407 1.9201 3.93 1156 7
40 f16 4096 512 2560 512 7.6409 1.5795 4.84 1156 7
41 bf16 4096 10240 2560 10240 158.8611 35.4939 4.48 542 9
42 bf16 4096 10240 320 10240 19.6857 3.8810 5.07 542 9
43 bf16 4096 320 10240 320 17.5878 3.6732 4.79 542 9
44 bf16 4096 2560 2560 2560 37.4763 8.6888 4.31 542 9
45 bf16 4096 512 2560 512 7.3683 1.5579 4.73 542 9
46 bf16 4096 128 2560 128 2.0444 0.4077 5.01 542 9
47 bf16 4096 48 2560 96 2.6212 0.3096 8.46 539 9
48 bf16 4096 4 10240 4 9.7732 1.0236 9.55 540 9
49 bf16 4096 1 2560 1 2.5765 0.2698 9.55 540 9
50 f16 2048 12288 2560 12288 75.0208 21.6041 3.47 1156 7
51 f16 2048 10240 2560 10240 66.4348 17.9153 3.71 1156 7
52 f16 2048 6144 2560 6144 38.5592 10.6631 3.62 1156 7
53 f16 2048 2560 6144 2560 36.8025 10.4813 3.51 1156 7
54 f16 2048 2560 640 2560 4.0939 0.8960 4.57 1156 7
55 f16 2048 640 2560 640 4.1720 0.9064 4.60 1156 7
56 f16 2048 512 2560 512 3.6901 0.7531 4.90 1156 7
57 bf16 2048 10240 2560 10240 80.8788 18.5174 4.37 542 9
58 bf16 2048 10240 320 10240 9.9698 1.9474 5.12 542 9
59 bf16 2048 320 10240 320 9.3119 1.8604 5.01 542 9
60 bf16 2048 2560 2560 2560 18.4291 4.0419 4.56 542 9
61 bf16 2048 512 2560 512 3.9841 0.7788 5.12 542 9
62 bf16 2048 128 2560 128 1.2195 0.2385 5.11 542 9
63 bf16 2048 48 2560 96 1.3148 0.1521 8.65 542 9
64 bf16 2048 4 10240 4 4.9064 0.6099 8.05 555 9
65 bf16 2048 1 2560 1 1.2333 0.1394 8.85 539 9
66 f16 1024 12288 2560 12288 38.5003 10.2640 3.75 1156 7
67 f16 1024 10240 2560 10240 31.9227 8.6601 3.69 1156 7
68 f16 1024 6144 2560 6144 18.4690 5.1609 3.58 1156 7
69 f16 1024 2560 6144 2560 17.6803 4.6002 3.84 1156 7
70 f16 1024 2560 640 2560 1.9869 0.4573 4.34 1156 7
71 f16 1024 640 2560 640 2.1281 0.5205 4.09 1156 7
72 f16 1024 512 2560 512 1.6421 0.3834 4.28 1156 7
73 bf16 1024 10240 2560 10240 38.4572 8.4683 4.54 542 9
74 bf16 1024 10240 320 10240 5.5595 1.6651 3.34 542 9
75 bf16 1024 320 10240 320 5.3373 1.0736 4.97 542 9
76 bf16 1024 2560 2560 2560 9.9116 1.8666 5.31 542 9
77 bf16 1024 512 2560 512 2.1414 0.3931 5.45 542 9
78 bf16 1024 128 2560 128 0.6803 0.1084 6.28 542 9
79 bf16 1024 48 2560 96 0.8438 0.0910 9.27 541 9
80 bf16 1024 4 10240 4 2.5770 0.2658 9.70 553 9
81 bf16 1024 1 2560 1 0.7056 0.0826 8.54 541 9
82 f16 512 12288 2560 12288 19.0235 4.9853 3.82 1156 7
83 f16 512 10240 2560 10240 15.7707 4.0130 3.93 1156 7
84 f16 512 6144 2560 6144 8.5797 2.1693 3.95 1156 7
85 f16 512 2560 6144 2560 9.1863 2.0610 4.46 1156 7
86 f16 512 2560 640 2560 0.9946 0.2204 4.51 1156 7
87 f16 512 640 2560 640 1.1312 0.2664 4.25 1156 7
88 f16 512 512 2560 512 0.8627 0.2329 3.70 1156 7
89 bf16 512 10240 2560 10240 18.5991 3.8958 4.77 542 9
90 bf16 512 10240 320 10240 2.3511 0.9714 2.42 542 9
91 bf16 512 320 10240 320 2.5423 0.3841 6.62 542 9
92 bf16 512 2560 2560 2560 5.3614 1.0053 5.33 542 9
93 bf16 512 512 2560 512 1.3167 0.2460 5.35 541 9
94 bf16 512 128 2560 128 0.3764 0.0802 4.69 542 9
95 bf16 512 48 2560 96 0.3619 0.0669 5.41 542 9
96 bf16 512 4 10240 4 1.2848 0.1538 8.35 553 9
97 bf16 512 1 2560 1 0.3443 0.0412 8.36 555 9
98 f16 256 12288 2560 12288 11.0056 2.6006 4.23 1156 7
99 f16 256 10240 2560 10240 9.5589 2.1220 4.50 1156 7
100 f16 256 6144 2560 6144 4.8171 1.3619 3.54 1156 7
101 f16 256 2560 6144 2560 4.4667 1.1821 3.78 1156 7
102 f16 256 2560 640 2560 0.5956 0.1270 4.69 1156 7
103 f16 256 640 2560 640 0.7308 0.1250 5.85 1156 7
104 f16 256 512 2560 512 0.4694 0.1808 2.60 1156 7
105 bf16 256 10240 2560 10240 10.3660 2.1516 4.82 542 9
106 bf16 256 10240 320 10240 1.3209 0.3100 4.26 542 9
107 bf16 256 320 10240 320 1.5608 0.2526 6.18 541 9
108 bf16 256 2560 2560 2560 2.5480 0.5802 4.39 542 9
109 bf16 256 512 2560 512 0.5536 0.1081 5.12 542 9
110 bf16 256 128 2560 128 0.1628 0.0827 1.97 540 9
111 bf16 256 48 2560 96 0.1880 0.0645 2.91 543 9
112 bf16 256 4 10240 4 0.7191 0.1333 5.40 539 9
113 bf16 256 1 2560 1 0.1812 0.0261 6.94 553 9
114 f16 128 12288 2560 12288 5.7421 1.8325 3.13 1154 7
115 f16 128 10240 2560 10240 4.3162 1.5516 2.78 1154 7
116 f16 128 6144 2560 6144 2.3298 0.9226 2.53 1154 7
117 f16 128 2560 6144 2560 2.6517 0.8918 2.97 1156 7
118 f16 128 2560 640 2560 0.2936 0.1385 2.12 1156 7
119 f16 128 640 2560 640 0.3463 0.2238 1.55 1167 7
120 f16 128 512 2560 512 0.2902 0.0985 2.94 1156 7
121 bf16 128 10240 2560 10240 5.5433 1.5391 3.60 540 9
122 bf16 128 10240 320 10240 0.6654 0.1904 3.50 542 9
123 bf16 128 320 10240 320 0.7363 0.2120 3.47 541 9
124 bf16 128 2560 2560 2560 1.3454 0.3869 3.48 542 9
125 bf16 128 512 2560 512 0.2837 0.0999 2.84 541 9
126 bf16 128 128 2560 128 0.1492 0.0485 3.08 552 9
127 bf16 128 48 2560 96 0.1477 0.0235 6.29 543 9
128 bf16 128 4 10240 4 0.4786 0.0630 7.60 543 9
129 bf16 128 1 2560 1 0.1326 0.0205 6.45 553 9
130 f16 64 12288 2560 12288 4.9551 1.2391 4.00 1154 7
131 f16 64 10240 2560 10240 4.0352 0.9967 4.05 1154 7
132 f16 64 6144 2560 6144 2.4523 0.6709 3.66 1154 7
133 f16 64 2560 6144 2560 2.2624 0.6604 3.43 1156 7
134 f16 64 2560 640 2560 0.2160 0.0606 3.57 1156 7
135 f16 64 640 2560 640 0.3042 0.0915 3.33 1155 7
136 f16 64 512 2560 512 0.2539 0.0863 2.94 1154 7
137 bf16 64 10240 2560 10240 4.1701 1.0490 3.98 541 9
138 bf16 64 10240 320 10240 0.3608 0.1476 2.44 541 9
139 bf16 64 320 10240 320 0.6882 0.1945 3.54 539 9
140 bf16 64 2560 2560 2560 0.8595 0.2575 3.34 541 9
141 bf16 64 512 2560 512 0.2072 0.0910 2.28 555 9
142 bf16 64 128 2560 128 0.1414 0.0460 3.08 555 9
143 bf16 64 48 2560 96 0.1501 0.0284 5.28 554 9
144 bf16 64 4 10240 4 0.3768 0.0593 6.35 543 9
145 bf16 64 1 2560 1 0.4442 0.0197 22.55 543 9
+1
View File
@@ -100,3 +100,4 @@ Notes:
| [2026-10-08-community-rtx4090-iq3xxs-200k-code](2026-10-08-community-rtx4090-iq3xxs-200k-code/) | RTX 4090, Ryzen 9 7950X, 46 GB RAM, Linux source build | Flash-Next IQ3_XXS, 204,800, code prompts, experimental speed projection on | 2,146 / 3,342 / 3,292 (4K / 32K / 125K) | 128 / 138 / 122 | 0.1.40.3 | #1467 |
| [2026-10-08-community-rtx4090-iq3xxs-200k-ru](2026-10-08-community-rtx4090-iq3xxs-200k-ru/) | RTX 4090, Ryzen 9 7950X (same PC) | Flash-Next IQ3_XXS, 204,800, Russian prompts | see the README | see the README | 0.1.40.3 | #1467 |
| [2026-10-08-community-2x-titan-rtx-0.1.40.3](2026-10-08-community-2x-titan-rtx-0.1.40.3/) | 2x TITAN RTX 24 GB (NVLink, unused), Xeon E5-2696 v4, source build | Flash-Next IQ3_S, 262K | 869 / 1,549 / 1,627 (4K / 32K / 128K) | 70.9 / 77.3 / 71.1 | 0.1.40.3 | #1429 |
| [2026-10-07-community-gfx1150](2026-10-07-community-gfx1150/) | Radeon 890M (gfx1150), Ryzen AI 9 HX PRO 370, 96 GB unified memory | IQ3_XXS | 153 / 216 / 226 (1K / 3.6K / 7K) with the gfx1150 hipBLASLt table, 99 / 124 / 130 without | 15.2-17.6 | 0.1.40.2 | - |
+43 -2
View File
@@ -216,6 +216,23 @@ of decode (one card 47.5 / 46.9 / 48.3 -> 50.5 / 48.5 / 51.3 tok/s with it on).
`bench/results/2026-10-04-community-rx-6800-windows`): on was 12-22% slower. 4x R9700: fork off was 13-45% faster.
Linux RX 6000 users can try `STRATA_SH_STREAM=1`; the output is identical either way.
**Long prompts on a big card: check the lend-coverage line (#1389, measured by the reporter on an RX 7900 XTX, gfx1100,
v0.1.40.2, 50 GB RAM).** With `--resident-experts` the prompt path borrows cache slots, and the experts of those slots
must also sit in RAM. After the first request of a start the engine prints
`FileExpertSource: N of M of the prompt path's lendable slots keep their experts in RAM too`. When N is not M, the
experts not covered are read from the pack during the prompt (now also a `WARNING` line). A 74K prompt routes through
nearly all experts, so the misses repeat: the reporter saw `wait copy` at 0.2% and 2,583 tok/s with 6201 of 6201, and
36.8% and 1,810 tok/s with 5093 of 6202 (same binary, only the start differed). Short prompts (25K) read the same either
way. The resident set is sized from `MemAvailable` at start, minus `STRATA_RESIDENT_HEADROOM_GIB` (default 4, in GiB; the
`--resident-experts` switch and `--resident-budget-gib` read it). If the line is short, lower the headroom a little and
restart; if the machine then swaps or stalls, raise it again. Re-check the line after a ROCm update: the reporter's newer
runtime kept about 1 GiB more host RAM, which moved the best value from 8 to 7. Other levers from the same report (his
numbers, not re-measured here): `STRATA_PF_FUSED=1 STRATA_PF_GEMM=1 STRATA_PF_SWITCH_MIN_T=4096` 925 -> 1,092 tok/s,
`--resident-experts` 1,092 -> 2,503 tok/s, `--prefill auto:32768` +23% at 74K. The engine uses a hipBLASLt tuning table
only when its version matches the installed library; otherwise it prefills on plain hipBLAS (about 45% slower for a 131K
prompt), so keep the table and the library paired. Not worth trying (measured flat): `--kv-resident` changes, a prefill
chunk above 32768, `--spec` above 4.
## Linux: verify timeouts while the kernel reclaims host memory (experimental workarounds)
A `verify: timed out at layer N` or "no progress for 60 s" message does not by itself mean a kernel or handshake bug. Two
@@ -418,8 +435,12 @@ run it; the report below is from a community machine: an RX 6900 XT 16 GB (gfx10
- **gfx1150** (Radeon 890M, Ryzen AI 9 HX PRO 370, Strix Point, #1217): builds and runs from 0.1.40.2 as an unvalidated target (CMake warns; the
device code already covers it: the WMMA guards and `gfx_arch_is_gfx11_wmma()` include it). One community machine: MINISFORUM N5 PRO, 96 GB DDR5-5600, GTT
raised to 64 GiB (`ttm.pages_limit=16777216 ttm.page_pool_size=16777216`), TheRock ROCm 7.14.1 for gfx1150, an unprivileged LXC container, IQ3_XXS: chat and
tool calls work, decode 17-19 tok/s, prompt about 125-135 tok/s, the HIP ctest passes apart from tests that need files a public checkout lacks.
Setup does not install for it yet (an integrated Radeon other than Strix Halo is named and not supported): build by hand with `-DCMAKE_HIP_ARCHITECTURES=gfx1150`.
tool calls work, decode 15-19 tok/s, the HIP ctest passes apart from tests that need files a public checkout lacks.
Prompts read at about 125-130 tok/s on plain hipBLAS and 1.5-1.7x faster with `tools/hip/gfx1150-hipblaslt-100401.txt` (ROCm 7.14.1's
hipBLASLt; 3.6K tokens 124 -> 216 tok/s, 7K 130 -> 226 tok/s, decode unchanged):
[bench/results/2026-10-07-community-gfx1150](../bench/results/2026-10-07-community-gfx1150/README.md).
Setup does not install for it yet (an integrated Radeon other than Strix Halo is named and not supported): build by hand with `-DCMAKE_HIP_ARCHITECTURES=gfx1150`
and point `STRATA_HIPBLASLT_TUNING` at the table yourself.
- **Not validated:** gfx1032 (the same `dp4a` path, no hardware report), setup's own build path and the
`gfx103X-all` wheels on gfx1030, images, answer-quality benchmarks. RDNA1 (gfx1012, RX 5500 XT) builds by hand:
[OLDER_GPUS.md](OLDER_GPUS.md#amd-building-gfx906-and-gfx1012).
@@ -535,6 +556,26 @@ Shipped tables:
valid: the engine falls back to hipBLASEx for an id the library rejects, and the test still passes. Run it with
`STRATA_HIPBLASLT_VERBOSE=1` and look for `fallbacks=0` in its summary line, and recalibrate with
`tune_hipblaslt` before using this table with a different 1.5.0 build.
- `gfx1151-hipblaslt-100400.txt`: Radeon 8060S (Ryzen AI Max+ 395, gfx1151, 128 GB; Fedora 44, kernel 7.2.8),
calibrated with the ROCm 7.14.0a20260608 wheels that setup installs for gfx1151 since 0.1.40.2 (#1267): their
hipBLASLt is 1.4.0 (version number 100400), so neither `gfx1151-hipblaslt-100401.txt` nor `-100500.txt` applied and
setup's engine read the prompt through plain hipBLAS. The same 90 rows as the 100401 table (its geometries, the
prompt shapes at `--prefill 16384` included), calibrated with `tune_hipblaslt --workspace-mib 32` and that table's
cases: 3.1x to 14.1x faster than plain hipBLAS per shape (median 6.2x). With `STRATA_HIPBLASLT_TUNING` set,
`hip_prefill_hipblaslt_gemm` passes (`launches=4 fallbacks=0`), `hip_prefill_hcd_exact_parity` passes (solutions
1176 / 1177 at 9 chunk sizes, 0 outputs differ, `fallbacks=0`), and the HIP ctest passes 61 of 62 (`ple_parity`
needs the Q2_0 model fixture). setup uses it only when the installed hipBLASLt reports 1.4.0. The prompt speed
of a whole model with this table is not measured yet.
- `gfx1150-hipblaslt-100401.txt`: Radeon 890M (gfx1150, Strix Point APU, 16 CUs), calibrated with AMD's TheRock ROCm 7.14.1 for
gfx1150 (hipBLASLt 1.4.1 `cd957402`, version number 100401) and the engine's 32 MiB workspace. The 16 dense GEMM geometries a
Qwen3.8-Flash-Next prompt logs on that card (the same 16 as the gfx1201 100500 table) at T = 64, 128, ..., 16384: 144 rows. Two
`tune_hipblaslt` passes back to back; each row keeps the solution with the lowest median of all six repetitions, because one
repetition stalled now and then (a 100 ms call read up to 1.6 s) and the tool's mean-of-three picks differed in 26 rows between
the passes. Every row beats plain hipBLAS, 1.55-22.6x per GEMM (geometric mean 4.5x), and `STRATA_HIPBLASLT_VERBOSE=1` reported
no fallbacks over prompts of 28-7,880 tokens. Setup does not use it (it does not install for gfx1150): point
`STRATA_HIPBLASLT_TUNING` at it. Measurements and the per-row timings:
[bench/results/2026-10-07-community-gfx1150](../bench/results/2026-10-07-community-gfx1150/README.md).
Calibrated on my PC and kept in this checkout, not shipped: `gfx1201-hipblaslt-100401.txt`, a Radeon AI PRO
R9700 (gfx1201, 32 GB, 1002:7551) on a Ryzen 9 9950X3D with 62 GiB RAM, CachyOS (kernel 7.3.0-rc6-1-cachyos-rc,
+2
View File
@@ -786,6 +786,8 @@ now accumulates in `strata::samp_acc_t`, float by default (`-DSTRATA_SYCL_SAMPLE
7.62 -> 8.10 tok/s (medians of 5 interleaved pairs, runs 7.1-9.2), `sampler_parity` 0 failures on both cards, and the B70 gate's
sampled cases picked the same tokens.
The sampler's launchers also kept dpct's `aspect::fp64` check, which threw "'double' is not supported" at the first sampled token on an A750 without the emulation keys even though the kernels had been float since the accumulator change; 0.1.41 drops the check (it stays in a `-DSTRATA_SYCL_SAMPLER_FP64=1` build). Measured on the A750 (IQ3_XXS, `--spec 4 --mtp`, sampled, 100 tokens, 4 interleaved pairs, one binary): without `IGC_EnableDPEmulation` / `OverrideDefaultFP64Settings` 11.0 / 11.6 / 12.4 / 12.4 tok/s, with them 9.3 / 9.9 / 9.8 / 9.8 (median 12.0 against 9.8, faster in 4 of 4 pairs). Setup still writes the keys for an A-series card: the kernels other than the sampler's that use double (the oracle router, norms, PLE, QSA indexer) were not exercised without them on long contexts or with vision, so the keys stay the safe default.
**XMX.** oneMKL's FP16 GEMMs already run on the matrix engines; per expert the dequant (42 us for a gate/up matrix) costs
twice the GEMM (20 us), and the fused dequant+XMX kernel (`xmx_gemm_bench`) is 0.22x of the pair on this card. The speed left
on this card for this model is the dequant kernels (at ~200 GB/s against a 600 GB/s card), the host grouping, and the QSA
+11 -1
View File
@@ -18,7 +18,8 @@ What the engine does differently on this chip:
- **gfx11 matrix cores.** The prompt attention, the block scorer, the prompt GEMMs and the prompt experts have WMMA kernels for
gfx1100 / 1101 / 1102 / 1150 / 1151. A gfx11 part outside that list (gfx1103, gfx1152) is not given them: it takes the portable path.
- **The hipBLASLt table** `tools/hip/gfx1151-hipblaslt-100401.txt` (ROCm 7.14.1's hipBLASLt 1.x `100401`), including the prompt shapes
at `--prefill 16384` (T 16383 / 16384).
at `--prefill 16384` (T 16383 / 16384). Setup's own ROCm for gfx1151 (the 7.14.0a20260608 wheels, hipBLASLt 1.4.0) takes
`tools/hip/gfx1151-hipblaslt-100400.txt`: the same shapes, calibrated against that library (docs/AMD_HIP.md, Tuning table).
## 1. The toolchain (no root needed)
@@ -111,8 +112,17 @@ export STRATA_HIP_WMMA=1 # the prompt attention on matrix cores
export STRATA_SELECT_WMMA=1 # the block scorer on matrix cores
export STRATA_HC_Q8=1 # the hyper-connection read from the GGUF's own Q8_0 projections
export STRATA_PF_SWITCH_MIN_T=4096
export STRATA_PREFILL_STREAM_MIN=128 # prompt reads of 128-1,023 tokens on the fused experts too (below)
```
`STRATA_PF_FUSED=1` reaches only chunks of `STRATA_PREFILL_STREAM_MIN` tokens or more (1,024 by default, the floor measured on
a discrete card, where a smaller chunk does not pay for streaming every expert); a smaller read runs its experts through MMQ.
With every expert in the unified memory nothing streams, and MMQ is the slow part: an agent's turn - a tool result of ~1,000
tokens on a cached conversation - read in 3.1-6.0 s at 1,024 and 0.9-2.5 s at 128 (C2T8, `--no-prefill-borrow`; 12-turn
replay 3.4 -> 2.1 s per turn). Its output is the fused path's, which reads of 1,024 tokens or more already take; it is not
under `STRATA_PF_SWITCH_MIN_T`, which gates only the hyper-connection and padding switches. A UD-Q4_K_XL or other K-quant
pack takes the fused experts only with `STRATA_PF_FUSED_KQ=1` as well.
Two engine flags help on long contexts and are not Strix-specific: `--mtp-window 8192` (the draft layer attends to the last 8,192
cells: 64K output +3.5%, 32K -0.4%) and `--spec`, `--lookup-chain`, `--mtp-q4` (see [DETAILS.md](DETAILS.md)).
+11
View File
@@ -2709,6 +2709,17 @@ bool FileExpertSource::pin_cache_complement(
"too%s\n", (long long) complement_lent_slots_, (long long) (n_slots - lend_from_slot),
complement_lent_slots_ < n_slots - lend_from_slot
? " (the others are read from the file when lent: not enough RAM for them)" : "");
if (lend && complement_lent_slots_ < n_slots - lend_from_slot) {
// #1389: below full coverage the uncovered experts are read from the pack during a long prompt (a 74K prompt
// routes through nearly all experts, so the misses repeat). The reporter measured 18% uncovered = -26% prompt
// speed on a gfx1100; short prompts barely touch them. A warning, not a refusal.
const long long lendable = (long long) (n_slots - lend_from_slot);
const long long missing = lendable - (long long) complement_lent_slots_;
std::fprintf(stderr, "FileExpertSource: WARNING: %lld of %lld lendable slots (%.0f%%) will read their experts from the pack "
"during a long prompt; expect a slower prompt read on 50K+ token prompts (one measurement: 18%% uncovered "
"cost 26%%). Free RAM or lower STRATA_RESIDENT_HEADROOM_GIB (now the RAM left free at start) and restart; "
"the line above should read N of N.\n", missing, lendable, 100.0 * (double) missing / (double) std::max<long long>(1, lendable));
}
if (!additional_gpu_pairs.empty()) {
std::fprintf(stderr, "FileExpertSource: %zu verified additional-GPU experts remain on the mmap fallback\n",
additional_gpu_pairs.size());
+54 -2
View File
@@ -1067,6 +1067,37 @@ MemSample mem_sample() {
}
// the stage the watchdog names: "<where> <detail>", and the prompt chunk a batched read is in (#251)
// #1407: the file tier's activity as the OS counts it (Linux: major page faults and bytes read from storage). The #29
// watchdog treats a growing count as "the step is slow, not stuck": a prompt layer whose experts are re-read from the
// pack (low RAM, mmap experts) can take minutes while the heartbeat stands still. Zero where unavailable.
static uint64_t file_tier_activity() {
#if defined(__linux__)
uint64_t total = 0;
if (FILE* f = std::fopen("/proc/self/stat", "r")) {
char buf[1024] = {};
const size_t n = std::fread(buf, 1, sizeof(buf) - 1, f);
std::fclose(f);
const char* p = std::strrchr(buf, ')');
if (p != nullptr && n > 0) {
// after "(comm)": state ppid pgrp session tty tpgid flags minflt cminflt majflt
unsigned long long majflt = 0;
if (std::sscanf(p + 2, "%*c %*d %*d %*d %*d %*d %*u %*u %*u %llu", &majflt) == 1) total += majflt;
}
}
if (FILE* f = std::fopen("/proc/self/io", "r")) {
char line[256];
while (std::fgets(line, sizeof(line), f) != nullptr) {
unsigned long long v = 0;
if (std::sscanf(line, "read_bytes: %llu", &v) == 1) total += v >> 20; // MiB
}
std::fclose(f);
}
return total;
#else
return 0;
#endif
}
std::string stage_text() {
const strata::core::Progress& p = strata::core::progress();
std::string s = std::string(p.where.load()) + " " + std::to_string((long long) p.detail.load());
@@ -7984,17 +8015,38 @@ int main(int argc, char** argv) {
{
const char* ws = std::getenv("STRATA_WATCHDOG_S");
const int limit = ws ? std::atoi(ws) : 60; // one step (a prompt layer, a verify window) takes seconds
// #1407: while the OS is still reading the file tier (major faults / bytes read advance), a silent step is
// slow, not stuck; it gets up to STRATA_WATCHDOG_IO_S (default 10 x the limit) of such time. 0 = no allowance.
const char* wio = std::getenv("STRATA_WATCHDOG_IO_S");
const int io_limit = wio ? std::atoi(wio) : limit * 10;
if (limit > 0)
std::thread([limit] {
std::thread([limit, io_limit] {
strata::core::Progress& p = strata::core::progress();
uint64_t last = p.beats.load(), ticks_at = p.ticks.load();
auto since = std::chrono::steady_clock::now();
auto io_since = since;
uint64_t io_last = file_tier_activity();
bool io_noted = false;
for (;;) {
std::this_thread::sleep_for(std::chrono::seconds(1));
const auto now = std::chrono::steady_clock::now();
const uint64_t b = p.beats.load();
if (!p.busy.load() || b != last) { last = b; ticks_at = p.ticks.load(); since = now; continue; }
if (!p.busy.load() || b != last) { last = b; ticks_at = p.ticks.load(); since = now; io_since = now; io_noted = false; io_last = file_tier_activity(); continue; }
if (now - since < std::chrono::seconds(limit)) continue;
if (io_limit > limit && now - io_since < std::chrono::seconds(io_limit)) {
const uint64_t a = file_tier_activity();
if (a >= io_last + 16) { // 16 = faults + MiB read in the last second: the file tier is busy
io_last = a;
if (!io_noted) {
io_noted = true;
std::fprintf(stderr, "strata serve: no step finished for %d s, but the file tier is still being read "
"(slow storage or low RAM): waiting up to %d s in all (STRATA_WATCHDOG_IO_S) (#1407)\n",
limit, io_limit);
}
continue;
}
io_last = a;
}
// a blocking step's explicit allowance (session files): still within it, not yet stuck
if (strata::core::progress_now_ms() < p.allow_until_ms.load()) continue;
std::fprintf(stderr, "strata serve: no progress for %d s during a request (%s) - stopping "
+2
View File
@@ -277,6 +277,8 @@ if(STRATA_SYCL_PARITY)
add_executable(kv_hybrid_parity ${_src})
target_include_directories(kv_hybrid_parity PRIVATE ${STRATA_ROOT}/src/kernels)
target_link_libraries(kv_hybrid_parity PRIVATE strata_kernels)
add_executable(dequant_bench ${CMAKE_CURRENT_SOURCE_DIR}/src/kernels/dequant_bench.cpp) # prompt-path expert dequant timing + output hash
target_link_libraries(dequant_bench PRIVATE strata_kernels)
add_executable(mmvq_bench ${CMAKE_CURRENT_SOURCE_DIR}/src/kernels/mmvq_bench.cpp) # dense mmvq timing
target_link_libraries(mmvq_bench PRIVATE strata_kernels)
add_executable(mmvq_sg_bench ${CMAKE_CURRENT_SOURCE_DIR}/src/kernels/mmvq_sg_bench.cpp) # SIMD16 vs 32 decode mmvq
+11
View File
@@ -2149,6 +2149,17 @@ bool FileExpertSource::pin_cache_complement(
"too%s\n", (long long) complement_lent_slots_, (long long) (n_slots - lend_from_slot),
complement_lent_slots_ < n_slots - lend_from_slot
? " (the others are read from the file when lent: not enough RAM for them)" : "");
if (lend && complement_lent_slots_ < n_slots - lend_from_slot) {
// #1389: below full coverage the uncovered experts are read from the pack during a long prompt (a 74K prompt
// routes through nearly all experts, so the misses repeat). The reporter measured 18% uncovered = -26% prompt
// speed on a gfx1100; short prompts barely touch them. A warning, not a refusal.
const long long lendable = (long long) (n_slots - lend_from_slot);
const long long missing = lendable - (long long) complement_lent_slots_;
std::fprintf(stderr, "FileExpertSource: WARNING: %lld of %lld lendable slots (%.0f%%) will read their experts from the pack "
"during a long prompt; expect a slower prompt read on 50K+ token prompts (one measurement: 18%% uncovered "
"cost 26%%). Free RAM or lower STRATA_RESIDENT_HEADROOM_GIB (now the RAM left free at start) and restart; "
"the line above should read N of N.\n", missing, lendable, 100.0 * (double) missing / (double) std::max<long long>(1, lendable));
}
if (!additional_gpu_pairs.empty()) {
std::fprintf(stderr, "FileExpertSource: %zu verified additional-GPU experts remain on the mmap fallback\n",
additional_gpu_pairs.size());
+7 -7
View File
@@ -2386,7 +2386,7 @@ __dpct_inline__ void store_run(dst_t* y, const float* v) {
template <typename dst_t>
inline void dq_iq2_xxs(const void *vx, int64_t ibs, dst_t *yy, int tid) {
const block_iq2_xxs* x = (const block_iq2_xxs*) vx;
const int64_t il = tid / 8, ib = tid % 8;
const int64_t il = tid % 4, ib = tid / 4; // consecutive lanes write consecutive 16-byte runs (coalesced stores)
dst_t* y = yy + 32 * ib + 8 * il;
const uint16_t* q2 = x[ibs].qs + 4 * ib;
const uint8_t* aux8 = (const uint8_t*) q2;
@@ -2402,7 +2402,7 @@ inline void dq_iq2_xxs(const void *vx, int64_t ibs, dst_t *yy, int tid) {
template <typename dst_t>
inline void dq_iq2_xs(const void *vx, int64_t ibs, dst_t *yy, int tid) {
const block_iq2_xs* x = (const block_iq2_xs*) vx;
const int64_t il = tid / 8, ib = tid % 8;
const int64_t il = tid % 4, ib = tid / 4; // consecutive lanes write consecutive 16-byte runs (coalesced stores)
dst_t* y = yy + 32 * ib + 8 * il;
const uint16_t* q2 = x[ibs].qs + 4 * ib;
const uint8_t* grid = (const uint8_t*) (iq2xs_grid + (q2[il] & 511));
@@ -2416,7 +2416,7 @@ inline void dq_iq2_xs(const void *vx, int64_t ibs, dst_t *yy, int tid) {
template <typename dst_t>
inline void dq_iq2_s(const void *vx, int64_t ibs, dst_t *yy, int tid) {
const block_iq2_s* x = (const block_iq2_s*) vx;
const int64_t il = tid / 8, ib = tid % 8;
const int64_t il = tid % 4, ib = tid / 4; // consecutive lanes write consecutive 16-byte runs (coalesced stores)
dst_t* y = yy + 32 * ib + 8 * il;
const uint8_t* grid = (const uint8_t*) (iq2s_grid + (x[ibs].qs[4 * ib + il] | ((x[ibs].qh[ib] << (8 - 2 * il)) & 0x300)));
const float d = (float) x[ibs].d * (0.5f + ((x[ibs].scales[ib] >> 4 * (il / 2)) & 0xf)) * 0.25f;
@@ -2429,7 +2429,7 @@ inline void dq_iq2_s(const void *vx, int64_t ibs, dst_t *yy, int tid) {
template <typename dst_t>
inline void dq_iq3_xxs(const void *vx, int64_t ibs, dst_t *yy, int tid) {
const block_iq3_xxs* x = (const block_iq3_xxs*) vx;
const int64_t il = tid / 8, ib = tid % 8;
const int64_t il = tid % 4, ib = tid / 4; // consecutive lanes write consecutive 16-byte runs (coalesced stores)
dst_t* y = yy + 32 * ib + 8 * il;
const uint8_t* q3 = x[ibs].qs + 8 * ib;
const uint16_t* gas = (const uint16_t*) (x[ibs].qs + QK_K / 4) + 2 * ib;
@@ -2449,7 +2449,7 @@ inline void dq_iq3_xxs(const void *vx, int64_t ibs, dst_t *yy, int tid) {
template <typename dst_t>
inline void dq_iq3_s(const void *vx, int64_t ibs, dst_t *yy, int tid) {
const block_iq3_s* x = (const block_iq3_s*) vx;
const int64_t il = tid / 8, ib = tid % 8;
const int64_t il = tid % 4, ib = tid / 4; // consecutive lanes write consecutive 16-byte runs (coalesced stores)
dst_t* y = yy + 32 * ib + 8 * il;
const uint8_t* qs = x[ibs].qs + 8 * ib;
const uint8_t* grid1 = (const uint8_t*) (iq3s_grid + (qs[2 * il + 0] | ((x[ibs].qh[ib] << (8 - 2 * il)) & 256)));
@@ -2467,7 +2467,7 @@ inline void dq_iq3_s(const void *vx, int64_t ibs, dst_t *yy, int tid) {
template <typename dst_t>
inline void dq_iq1_m(const void *vx, int64_t ibs, dst_t *yy, int tid) {
const block_iq1_m* x = (const block_iq1_m*) vx;
const int64_t il = tid / 8, ib = tid % 8;
const int64_t il = tid % 4, ib = tid / 4; // consecutive lanes write consecutive 16-byte runs (coalesced stores)
dst_t* y = yy + 32 * ib + 8 * il;
const uint16_t* sc = (const uint16_t*) x[ibs].scales;
iq1m_scale_t scale;
@@ -2488,7 +2488,7 @@ inline void dq_iq4_nl(const void *vx, int64_t ibs, dst_t *yy, int tid) {
const block_iq4_nl* x = (const block_iq4_nl*) vx + ibs * (QK_K / QK4_NL);
// SYCL port: thread (ib, il) writes the block's values [8 il, 8 il + 8) as one run: il < 2 the low nibbles of
// qs[8 il ..], il >= 2 the high nibbles of qs[8 (il - 2) ..] (the same values as llama.cpp's 4 + 4 split)
const int64_t il = tid / 8, ib = tid % 8;
const int64_t il = tid % 4, ib = tid / 4; // consecutive lanes write consecutive 16-byte runs (coalesced stores)
dst_t* y = yy + 32 * ib + 8 * il;
const uint8_t* q4 = x[ib].qs + 8 * (il & 1);
const float d = (float) x[ib].d;
+14 -10
View File
@@ -33,8 +33,18 @@
#include <cstdlib>
#include <cstring>
#include <mutex>
#include <type_traits>
#include <vector>
namespace {
// The sampler's accumulators are strata::samp_acc_t (float unless -DSTRATA_SYCL_SAMPLER_FP64=1), so its kernels need FP64
// only in that build. dpct left an `aspect::fp64` check before every launch; on an Arc Alchemist (A750, no FP64) it
// threw "'double' is not supported" at the first sampled token unless Intel's FP64 emulation was switched on.
inline void sampler_require_fp64([[maybe_unused]] const sycl::device& d) {
if constexpr (std::is_same_v<strata::samp_acc_t, double>) dpct::has_capability_or_fail(d, {sycl::aspect::fp64});
}
} // namespace
namespace strata::kernels {
namespace {
@@ -1530,9 +1540,7 @@ void sample_tokens(const float* logits, int n_tokens, int n_vocab, const int* hi
*/
auto exp_props = sycl::ext::oneapi::experimental::properties{
sycl::ext::oneapi::experimental::use_root_sync};
dpct::has_capability_or_fail(
strata::q_of(stream)->get_device(),
{sycl::aspect::fp64});
sampler_require_fp64(strata::q_of(stream)->get_device());
strata::q_of(stream)
->submit([&](sycl::handler &cgh) {
@@ -1590,9 +1598,7 @@ void sample_tokens(const float* logits, int n_tokens, int n_vocab, const int* hi
{
auto exp_props = sycl::ext::oneapi::experimental::properties{
sycl::ext::oneapi::experimental::use_root_sync};
dpct::has_capability_or_fail(
strata::q_of(stream)->get_device(),
{sycl::aspect::fp64});
sampler_require_fp64(strata::q_of(stream)->get_device());
strata::q_of(stream)
->parallel_for<dpct_kernel_name<
@@ -1617,9 +1623,7 @@ void sample_tokens(const float* logits, int n_tokens, int n_vocab, const int* hi
*/
auto exp_props = sycl::ext::oneapi::experimental::properties{
sycl::ext::oneapi::experimental::use_root_sync};
dpct::has_capability_or_fail(
strata::q_of(stream)->get_device(),
{sycl::aspect::fp64});
sampler_require_fp64(strata::q_of(stream)->get_device());
strata::q_of(stream)
->submit([&](sycl::handler &cgh) {
@@ -1756,7 +1760,7 @@ void coupled_draft_sample(float* logits, int nv, const int32_t* sub_to_id, const
{
auto exp_props = sycl::ext::oneapi::experimental::properties{
sycl::ext::oneapi::experimental::use_root_sync};
dpct::has_capability_or_fail(s->get_device(), {sycl::aspect::fp64});
sampler_require_fp64(s->get_device());
s->parallel_for<dpct_kernel_name<class coupled_merge_kernel_1fbeb1>>(
sycl::nd_range<3>(sycl::range(1, 1, 32), sycl::range(1, 1, 32)),
+73
View File
@@ -0,0 +1,73 @@
// sycl/src/kernels/dequant_bench.cpp - time the prompt path's expert dequantizers (iq_dequant_gu_f16 / iq_dequant_f16)
// on random blocks and print a hash of the FP16 output, so two builds can be compared bit for bit.
// dequant_bench [type|all] [experts] (gate/up 1280 x 2560 and down 2560 x 1280 per expert, the model's shape)
#include "strata/kernels/iq_kernels.hpp"
#include <sycl/sycl.hpp>
#include <dpct/dpct.hpp>
#include <chrono>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <vector>
namespace {
struct Ty { int id; const char* name; int bytes_per_256; };
const Ty kTypes[] = {{16, "IQ2_XXS", 66}, {17, "IQ2_XS", 74}, {22, "IQ2_S", 82}, {18, "IQ3_XXS", 98},
{21, "IQ3_S", 110}, {20, "IQ4_NL", 144}, {42, "Q2_0", 72}};
uint64_t fnv(const uint16_t* p, size_t n) {
uint64_t h = 1469598103934665603ull;
for (size_t i = 0; i < n; ++i) { h ^= p[i]; h *= 1099511628211ull; }
return h;
}
} // namespace
int main(int argc, char** argv) {
const int want = argc > 1 && std::strcmp(argv[1], "all") != 0 ? std::atoi(argv[1]) : -1;
const int experts = argc > 2 ? std::atoi(argv[2]) : 32;
const int64_t n_ff = 1280, n_embd = 2560;
sycl::queue* s = &dpct::get_in_order_queue();
for (const Ty& t : kTypes) {
if (want >= 0 && t.id != want) continue;
const size_t per_mat = (size_t) n_ff * n_embd / 256 * t.bytes_per_256; // one of gate / up / down
std::vector<uint8_t> hb(per_mat);
uint32_t x = 12345u + (uint32_t) t.id;
for (auto& b : hb) { x = x * 1664525u + 1013904223u; b = (uint8_t) (x >> 24); }
uint8_t* src = (uint8_t*) sycl::malloc_device(per_mat * 3 * experts, *s); // gate, up, down per expert
for (int e = 0; e < experts * 3; ++e) s->memcpy(src + (size_t) e * per_mat, hb.data(), per_mat);
const size_t gu_out = (size_t) 2 * n_ff * n_embd, d_out = (size_t) n_embd * n_ff;
uint16_t* dst = (uint16_t*) sycl::malloc_device((gu_out + d_out) * 2 * experts, *s);
s->wait();
auto run = [&]() {
for (int e = 0; e < experts; ++e) {
const uint8_t* b = src + (size_t) e * 3 * per_mat;
uint16_t* o = dst + (size_t) e * (gu_out + d_out);
strata::kernels::iq_dequant_gu_f16(t.id, b, b + per_mat, n_ff, n_embd, o, s);
strata::kernels::iq_dequant_f16(t.id, b + 2 * per_mat, n_embd * n_ff, o + gu_out, s);
}
s->wait();
};
for (int i = 0; i < 3; ++i) run();
const int reps = 10;
std::vector<double> ms;
for (int i = 0; i < reps; ++i) {
const auto t0 = std::chrono::steady_clock::now();
run();
ms.push_back(std::chrono::duration<double, std::milli>(std::chrono::steady_clock::now() - t0).count());
}
std::sort(ms.begin(), ms.end());
const double med = ms[reps / 2];
const double wr = (double) (gu_out + d_out) * 2 * experts, rd = (double) per_mat * 3 * experts;
std::vector<uint16_t> ho((gu_out + d_out) * 2); // hash expert 0 and the last expert
s->memcpy(ho.data(), dst, (gu_out + d_out) * 2).wait();
const uint64_t h0 = fnv(ho.data(), gu_out + d_out);
s->memcpy(ho.data(), dst + (size_t) (experts - 1) * (gu_out + d_out), (gu_out + d_out) * 2).wait();
const uint64_t h1 = fnv(ho.data(), gu_out + d_out);
std::printf("%-8s %2d experts: median %7.2f ms write %6.1f GB/s (read %5.1f GB/s) hash %016llx %016llx\n", t.name,
experts, med, wr / med / 1e6, rd / med / 1e6, (unsigned long long) h0, (unsigned long long) h1);
sycl::free(src, *s);
sycl::free(dst, *s);
}
return 0;
}
+146
View File
@@ -0,0 +1,146 @@
# solution IDs are scoped to this hipBLASLt version and device architecture
STRATA_HIPBLASLT_TUNING_V1 gfx1150 100401
f16 12288 2560 12288 16384 1156
f16 10240 2560 10240 16384 1156
f16 6144 2560 6144 16384 1156
f16 2560 6144 2560 16384 1156
f16 2560 640 2560 16384 1156
f16 640 2560 640 16384 1156
f16 512 2560 512 16384 1156
bf16 10240 2560 10240 16384 542
bf16 10240 320 10240 16384 542
bf16 320 10240 320 16384 542
bf16 2560 2560 2560 16384 542
bf16 512 2560 512 16384 542
bf16 128 2560 128 16384 542
bf16 48 2560 96 16384 542
bf16 4 10240 4 16384 540
bf16 1 2560 1 16384 541
f16 12288 2560 12288 8192 1156
f16 10240 2560 10240 8192 1156
f16 6144 2560 6144 8192 1156
f16 2560 6144 2560 8192 1156
f16 2560 640 2560 8192 1156
f16 640 2560 640 8192 1156
f16 512 2560 512 8192 1156
bf16 10240 2560 10240 8192 542
bf16 10240 320 10240 8192 542
bf16 320 10240 320 8192 542
bf16 2560 2560 2560 8192 542
bf16 512 2560 512 8192 542
bf16 128 2560 128 8192 542
bf16 48 2560 96 8192 542
bf16 4 10240 4 8192 539
bf16 1 2560 1 8192 541
f16 12288 2560 12288 4096 1156
f16 10240 2560 10240 4096 1156
f16 6144 2560 6144 4096 1156
f16 2560 6144 2560 4096 1156
f16 2560 640 2560 4096 1156
f16 640 2560 640 4096 1156
f16 512 2560 512 4096 1156
bf16 10240 2560 10240 4096 542
bf16 10240 320 10240 4096 542
bf16 320 10240 320 4096 542
bf16 2560 2560 2560 4096 542
bf16 512 2560 512 4096 542
bf16 128 2560 128 4096 542
bf16 48 2560 96 4096 539
bf16 4 10240 4 4096 540
bf16 1 2560 1 4096 540
f16 12288 2560 12288 2048 1156
f16 10240 2560 10240 2048 1156
f16 6144 2560 6144 2048 1156
f16 2560 6144 2560 2048 1156
f16 2560 640 2560 2048 1156
f16 640 2560 640 2048 1156
f16 512 2560 512 2048 1156
bf16 10240 2560 10240 2048 542
bf16 10240 320 10240 2048 542
bf16 320 10240 320 2048 542
bf16 2560 2560 2560 2048 542
bf16 512 2560 512 2048 542
bf16 128 2560 128 2048 542
bf16 48 2560 96 2048 542
bf16 4 10240 4 2048 555
bf16 1 2560 1 2048 539
f16 12288 2560 12288 1024 1156
f16 10240 2560 10240 1024 1156
f16 6144 2560 6144 1024 1156
f16 2560 6144 2560 1024 1156
f16 2560 640 2560 1024 1156
f16 640 2560 640 1024 1156
f16 512 2560 512 1024 1156
bf16 10240 2560 10240 1024 542
bf16 10240 320 10240 1024 542
bf16 320 10240 320 1024 542
bf16 2560 2560 2560 1024 542
bf16 512 2560 512 1024 542
bf16 128 2560 128 1024 542
bf16 48 2560 96 1024 541
bf16 4 10240 4 1024 553
bf16 1 2560 1 1024 541
f16 12288 2560 12288 512 1156
f16 10240 2560 10240 512 1156
f16 6144 2560 6144 512 1156
f16 2560 6144 2560 512 1156
f16 2560 640 2560 512 1156
f16 640 2560 640 512 1156
f16 512 2560 512 512 1156
bf16 10240 2560 10240 512 542
bf16 10240 320 10240 512 542
bf16 320 10240 320 512 542
bf16 2560 2560 2560 512 542
bf16 512 2560 512 512 541
bf16 128 2560 128 512 542
bf16 48 2560 96 512 542
bf16 4 10240 4 512 553
bf16 1 2560 1 512 555
f16 12288 2560 12288 256 1156
f16 10240 2560 10240 256 1156
f16 6144 2560 6144 256 1156
f16 2560 6144 2560 256 1156
f16 2560 640 2560 256 1156
f16 640 2560 640 256 1156
f16 512 2560 512 256 1156
bf16 10240 2560 10240 256 542
bf16 10240 320 10240 256 542
bf16 320 10240 320 256 541
bf16 2560 2560 2560 256 542
bf16 512 2560 512 256 542
bf16 128 2560 128 256 540
bf16 48 2560 96 256 543
bf16 4 10240 4 256 539
bf16 1 2560 1 256 553
f16 12288 2560 12288 128 1154
f16 10240 2560 10240 128 1154
f16 6144 2560 6144 128 1154
f16 2560 6144 2560 128 1156
f16 2560 640 2560 128 1156
f16 640 2560 640 128 1167
f16 512 2560 512 128 1156
bf16 10240 2560 10240 128 540
bf16 10240 320 10240 128 542
bf16 320 10240 320 128 541
bf16 2560 2560 2560 128 542
bf16 512 2560 512 128 541
bf16 128 2560 128 128 552
bf16 48 2560 96 128 543
bf16 4 10240 4 128 543
bf16 1 2560 1 128 553
f16 12288 2560 12288 64 1154
f16 10240 2560 10240 64 1154
f16 6144 2560 6144 64 1154
f16 2560 6144 2560 64 1156
f16 2560 640 2560 64 1156
f16 640 2560 640 64 1155
f16 512 2560 512 64 1154
bf16 10240 2560 10240 64 541
bf16 10240 320 10240 64 541
bf16 320 10240 320 64 539
bf16 2560 2560 2560 64 541
bf16 512 2560 512 64 555
bf16 128 2560 128 64 555
bf16 48 2560 96 64 554
bf16 4 10240 4 64 543
bf16 1 2560 1 64 543
+92
View File
@@ -0,0 +1,92 @@
# solution IDs are scoped to this hipBLASLt version and device architecture
STRATA_HIPBLASLT_TUNING_V1 gfx1151 100400
bf16 10240 320 10240 2047 1177
bf16 128 2560 128 2047 1177
bf16 1 2560 1 2047 1174
bf16 2560 2560 2560 2047 1177
bf16 320 10240 320 2047 1176
bf16 48 2560 96 2047 1176
bf16 4 10240 4 2047 1175
bf16 512 2560 512 2047 1177
f16 10240 2560 10240 2047 2390
f16 12288 2560 12288 2047 2390
f16 2560 6144 2560 2047 2390
f16 2560 640 2560 2047 2390
f16 512 2560 512 2047 2390
f16 6144 2560 6144 2047 2390
f16 640 2560 640 2047 2390
bf16 10240 320 10240 2048 1177
bf16 128 2560 128 2048 1177
bf16 1 2560 1 2048 1175
bf16 2560 2560 2560 2048 1177
bf16 320 10240 320 2048 1176
bf16 48 2560 96 2048 1176
bf16 4 10240 4 2048 1175
bf16 512 2560 512 2048 1177
f16 10240 2560 10240 2048 2390
f16 12288 2560 12288 2048 2390
f16 2560 6144 2560 2048 2390
f16 2560 640 2560 2048 2390
f16 512 2560 512 2048 2390
f16 6144 2560 6144 2048 2390
f16 640 2560 640 2048 2389
bf16 10240 320 10240 8191 1177
bf16 128 2560 128 8191 1176
bf16 1 2560 1 8191 1175
bf16 2560 2560 2560 8191 1177
bf16 320 10240 320 8191 1176
bf16 48 2560 96 8191 1175
bf16 4 10240 4 8191 1175
bf16 512 2560 512 8191 1177
f16 10240 2560 10240 8191 2390
f16 12288 2560 12288 8191 2390
f16 2560 6144 2560 8191 2390
f16 2560 640 2560 8191 2390
f16 512 2560 512 8191 2390
f16 6144 2560 6144 8191 2390
f16 640 2560 640 8191 2390
bf16 10240 320 10240 8192 1177
bf16 128 2560 128 8192 1176
bf16 1 2560 1 8192 1175
bf16 2560 2560 2560 8192 1177
bf16 320 10240 320 8192 1176
bf16 48 2560 96 8192 1175
bf16 4 10240 4 8192 1174
bf16 512 2560 512 8192 1177
f16 10240 2560 10240 8192 2390
f16 12288 2560 12288 8192 2390
f16 2560 6144 2560 8192 2390
f16 2560 640 2560 8192 2390
f16 512 2560 512 8192 2390
f16 6144 2560 6144 8192 2390
f16 640 2560 640 8192 2390
bf16 10240 320 10240 16383 1177
bf16 128 2560 128 16383 1177
bf16 1 2560 1 16383 1175
bf16 2560 2560 2560 16383 1177
bf16 320 10240 320 16383 1177
bf16 48 2560 96 16383 1175
bf16 4 10240 4 16383 1174
bf16 512 2560 512 16383 1177
f16 10240 2560 10240 16383 2390
f16 12288 2560 12288 16383 2390
f16 2560 6144 2560 16383 2390
f16 2560 640 2560 16383 2390
f16 512 2560 512 16383 2390
f16 6144 2560 6144 16383 2390
f16 640 2560 640 16383 2390
bf16 10240 320 10240 16384 1177
bf16 128 2560 128 16384 1177
bf16 1 2560 1 16384 1175
bf16 2560 2560 2560 16384 1177
bf16 320 10240 320 16384 1177
bf16 48 2560 96 16384 1175
bf16 4 10240 4 16384 1175
bf16 512 2560 512 16384 1177
f16 10240 2560 10240 16384 2390
f16 12288 2560 12288 16384 2390
f16 2560 6144 2560 16384 2390
f16 2560 640 2560 16384 2390
f16 512 2560 512 16384 2390
f16 6144 2560 6144 16384 2390
f16 640 2560 640 16384 2390