[GH-ISSUE #5001] [Benchmark] RX 9060 XT (gfx1200) 0.2.2 vs 0.2.9: the RDNA4 prompt gains turn into copy waits on a 16 GB card that streams its experts; the decode change is the expert cache sizing; plus Radeon VII (gfx906) 0.1.41 vs 0.2.9 #2310

Closed
opened 2026-11-04 01:58:20 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @codywb on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5001

What did you measure

Follow-up to #3715 (same RX 9060 XT box, same IQ3_S config), now 0.2.2 against 0.2.9, plus a second box with a Radeon VII. Short version:

  1. Speed on the 9060 XT: 0.2.9 is equal to 0.2.2. The fused RDNA4 prompt experts (0.2.4) cut the expert GEMM time by about 40% at 32K, and the prompt path then waits the same amount longer for expert copies, so prompt tok/s does not change. The 0.2.7 decode split changes nothing here, because decode is limited by the CPU's experts and no experts go over PCIe on this config.
  2. Served output on 0.2.9 differs from 0.2.2 (top-1 95.0%, KL 0.021 on the decode path), and the whole difference is the expert cache size. 0.2.9's auto cache leaves the extra 256 MiB of kLateAllocMib (1,949 slots against 2,050), so a few more experts per window are computed on the CPU. With the cache fixed at the same size, 0.2.2 and 0.2.9 are bit-identical. Against the yardstick's own run both versions are the same distance away, so this is a change, not a loss.
  3. The fused prompt experts change long-prompt answers more than 0.2.9 itself does. First-token KL against 0.2.2 is 0.019 (0.2.9 without them: 0.002). Against the FP16 prompt path (STRATA_PREFILL_MMQ=0) they are as close as MMQ, or closer, on most prompts, and much further on three: the two single-chunk 4K prompts (code and docs) and a 32K multilingual one.
  4. The Radeon VII (gfx906) runs 0.2.9 and is bit-identical to 0.1.41 on the yardstick.

All of it was reproduced locally. Nothing here is a stability claim.

Box 1: RX 9060 XT

Hardware. RX 9060 XT 16 GB (gfx1200), PCIe 4.0 x16 (host-to-GPU probe 28.5 GB/s), the only GPU in the PC (it also drives the desktop). Ryzen 5 5600 (6 cores), 94 GiB RAM, WD Blue SN580 2 TB NVMe, Pop!_OS 24.04, kernel 7.3.0 (mainline), ROCm from TheRock wheels 7.10.0a20251120 (gfx120X), hipBLASLt 1.2.0 with the gfx1200-hipblaslt-100200.txt table. CPU energy-performance preference performance on all cores.

Model and run config. Qwen3.8-Flash-Next GSQ-RCO IQ3_S from the prepared experts.bin pack (50.3 GB, 100% in the page cache when checked between runs; under 50 MB per request came from storage), --mmap-experts --expert-cache auto --prefill auto, --max-context 524288 with YaRN x2, --kv int8 --kv-resident 32768, --spec 4 --spec-min-p 0.5 with MTP, --vram-reserve-mib 4096, vision on the CPU. Env as in #3715: HSA_ENABLE_SDMA=0, HSA_USERPTR_FOR_PAGED_MEM=0, GPU_PINNED_MIN_XFER_SIZE=1048576, STRATA_HIP_WMMA=1, STRATA_ROUTE_TAIL_SKIP=0, STRATA_PCIE_FRAC_DEFAULT=old, STRATA_PF_FUSED=0, STRATA_HC_Q8=0, STRATA_GFX12_CHUNK=0, STRATA_MTP_HIP_PRIO=0, STRATA_TOPK_OLD=1, STRATA_SCORES_THREAD=0, STRATA_QUANT_GATHER=1, STRATA_HIP_QUEUE_PRIME=0, STRATA_COLD_OVERLAP=0, STRATA_IO_PREFETCH=0, STRATA_IO_PF_GATE=0, STRATA_PREFILL_HOST_PLAN=0.

Builds. From source, Release, HIP, STRATA_PREFILL_MMQ=ON STRATA_Q6K_EXPERTS=ON STRATA_MMQ_KQUANTS=ON, CMAKE_HIP_ARCHITECTURES=gfx1200: v0.2.2 (011c9e6, engine 0.1.47) and v0.2.9 (c62d5e3), each run with its own serve/server.py. No local patches.

Arms (one change each).

  • P: 0.2.2, the config above.
  • A: 0.2.9, the same config and every pin above.
  • B: A without STRATA_PF_FUSED=0, so the gfx12 fused prompt experts are on (the log says "prompt experts on the fused int8 kernels").
  • C: B without STRATA_PCIE_FRAC_DEFAULT=old, so the 0.2.7 decode split is on (pcie_frac 0.15 in the log, against 0.55).

Method. Isolated port, a fresh engine per arm, arms interleaved (P A B C C B A P), one run per size per arm, fixed prompts at 4K / 32K / 64K, greedy, 256 output tokens. STRATA_PREFILL_TIMING=1 and STRATA_DECODE_TIMING=1 in a separate pass. Fidelity: tools/quant_quality.py from 0.2.9, in its own modes and also driven with the served engine arguments (below). 2026-11-02, 17:56 to 21:14 JST.

Speed (prompt tok/s; decode was 29 to 33 tok/s in every arm, see the decode note)

Arm 4K pass 1 / 2 32K pass 1 / 2 64K pass 1 / 2
P 0.2.2 681 / 693 1017 / 1019 943 / 948
A 0.2.9 674 / 696 1015 / 1024 939 / 950
B + fused prompt experts 613 / 700 910 / 1020 853 / 949
C + 0.2.7 decode split 652 / 669 992 / 1014 923 / 948

Where the prompt time goes (STRATA_PREFILL_TIMING, ms; chunk 8192, the 96-slot ring)

4K A 4K B 32K A 32K B 64K A 64K B
dequant 1289 652 3205 1822 6668 3593
gemm gate/up 1292 945 7814 5783 15634 11582
gemm down 861 376 5043 2180 10054 4385
wait copy 221 1753 531 7142 1013 13971
GPU timeline 5429 5446 31694 31905 68160 68040

At 32K the three expert phases drop by 6.3 s and the copy wait rises by 6.6 s. On this config the experts stream from the page-cached mapping (expert cache hit rate about 52 to 55%), so with the faster GEMMs the copies become the limit. Release-note figures for these kernels come from R9700 setups that hold the experts in VRAM, where there is nothing to wait for. Things I tried to get the time back, B unless noted, prompt tok/s at 4K / 32K / 64K:

Change Result
STRATA_PREFILL_RING=512 the engine picks "prompt chunk auto: 5632 tokens, a 512-slot ring"; 702 / 930 / 892, wait copy at 32K still 6879 ms
STRATA_PREFILL_RING=1024 also 5632 / 512 slots; 725 / 939 / 896
STRATA_PREFILL_RING=512 on A 517 / 653 / 625 (dequant 14,974 ms at 32K)
--prefill 16384 (A and B) "prompt chunk 16384 -> 8192 tokens so its buffers fit in every expert cache"; unchanged
STRATA_MTP_SIDE_STREAM=1, STRATA_MTP_HIP_PRIO=0 kept P 671 / 1002 / 872, B 586 / 904 / 933
STRATA_MTP_SIDE_STREAM=1, STRATA_MTP_HIP_PRIO unset (gfx12 default on) P 667 / 795 / 748, B 623 / 916 / 855

So the side stream from #3480 (point 1) does not help on this config. On 0.2.2 the draft priority's default makes 32K and 64K prompts about 21% slower than P (795 against 1017, 748 against 943), so STRATA_MTP_HIP_PRIO=0 stays; on B it made no clear difference. A bigger ring (#3480 point 3) only fits by shrinking the chunk, which costs what it gains. Not tried: the pinned RAM arena instead of --mmap-experts, and HSA_ENABLE_SDMA=1. Both are held for stability reasons on this box, and they are the two settings most likely to change the copy cost.

One more thing about B: its prompt speed seems to have two levels across fresh engine starts. Of the four starts with the same effective config (chunk 8192, 96 slots), two read 32K at 1009 to 1020 tok/s and two at 910 to 915. The two side-stream starts were also at the slow level (904, 916). In the slow starts with timing, the 32K phases were dequant 4,166 to 4,382 ms and gemm gate/up 7,932 to 8,000 ms, against 1,822 and 5,783 in the fast one; the copy wait was lower (4,807 to 5,179 against 7,142). A and P did not do this (P 1017 to 1019, A 1015 to 1024).

Decode. Per window at 64K, about 84 ms in P, A and C alike (P: verify 73.9 = GPU-reach wait 25.3 + per-layer host 46.1, of which CPU 45.7; 11.3 CPU experts and 17.4 VRAM hits per layer-window; "PCIe 0.00"). The decode tok/s differences between arms in the first table come from different text and so different draft acceptance, not from the window time. The 0.2.7 split moves pcie_frac from 0.55 to 0.15, but nothing goes over PCIe in either setting here, so it cannot help on this config.

Fidelity

Yardstick modes (run 5 x 999 positions, prompt 20 prompts): P = A = B, 100.00% top-1, KL 0 everywhere. Neither mode exercises what changed. run scores on the one-token path, and prompt uses prompts up to 1000 tokens, below stream_all_min(), so the fused path never runs (no fused line in its stderr).

The served decode path: the same 5 x 999 positions, but the engine started with the served arguments (--expert-cache auto, adaptation, CPU share, --kv int8, --prompt-cache 0, --short-read 1064), FIXED_ENV emptied. Each arm run twice; P = P repeat, A = A repeat bit for bit.

vs P code docs english multilingual agent all
A, top-1 98.20% 90.99% 95.30% 96.20% 94.29% 94.99%
A, KL 0.008 0.032 0.010 0.008 0.048 0.021

B and C equal A bit for bit here. Bisected one switch at a time against P:

  • STRATA_DEFAULTS=026: identical to P.
  • These change nothing: the four gfx12 decode switches off (ATTN_LANECELL, ATTN_MERGE_V2, TSUM, EXPDEC), STRATA_GR_UP_WIDE=0, STRATA_GR_V3=0, STRATA_PROMPT_ATTN_IMMA=0, STRATA_PLE_AUTO_RAM=0, --kv fp16 on both.
  • --expert-cache 1500 --adapt-every 100000 on both: 0.2.2 = 0.2.9 bit for bit.
  • The auto cache lines: 0.2.2 ... (+218 MiB for the draft head) -> 2050 slots, 0.2.9 ... (+218 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 1949 slots.

So it is the #4474 reserve fix (the 026 path skips kLateAllocMib). Against the yardstick's own run output (fp16 KV, one-slot cache, no CPU share) as a reference, the served P is 94.55% / KL 0.0225 / PPL 4.021 and the served A 94.85% / 0.0232 / 4.018 (reference 4.009). Same distance. The roughly 5% that the served setup costs against the yardstick is the same in both versions. No single one of --kv int8, the cache size and adaptation, or --pcie-frac 0 removes it; I did not isolate it further.

Long prompts, the batched prompt path: 16 prompts, 4 texts (C++ source, a long Markdown doc, English prose, multilingual READMEs and locale files) at 4,096 / 8,192 / 16,384 / 32,768 tokens, full-vocabulary first-token logits through STRATA_DUMP_FIRST_LOGITS, served arguments, every request fresh. Each arm run twice, and every repeat matched bit for bit.

vs P top-1 KL mean median max
A 16/16 0.0022 0.0007 0.010
B (= C) 16/16 0.0186 0.0029 0.168

Against the FP16 prompt path (STRATA_PREFILL_MMQ=0 on 0.2.9's engine; 0.2.2's FP16 run gives the same picture):

Prompt P (MMQ) A (MMQ) B (fused)
code 4K 0.0168 0.0129 0.0375
code 8K / 16K / 32K 0.0019 / 0.0009 / 0.0000 0.0018 / 0.0010 / 0.0000 0.0004 / 0.0000 / 0.0000
docs 4K 0.0059 0.0063 0.0559
docs 8K / 16K / 32K 0.0039 / 0.0112 / 0.0012 0.0027 / 0.0160 / 0.0007 0.0025 / 0.0101 / 0.0004
english 4K / 8K / 16K / 32K 0.0102 / 0.0013 / 0.0056 / 0.0093 0.0059 / 0.0004 / 0.0054 / 0.0077 0.0103 / 0.0009 / 0.0029 / 0.0072
multilingual 4K / 8K / 16K 0.0000 / 0.0000 / 0.0004 0.0000 / 0.0000 / 0.0010 0.0000 / 0.0000 / 0.0012
multilingual 32K 0.0154 0.0417 0.2769
mean 0.0052 0.0065 0.0254

On the 32K multilingual prompt P gives its top token 0.72 and B gives it 0.91. Same top token everywhere.

Box 2: Radeon VII

Hardware. Radeon VII 16 GB (gfx906), Ryzen 5 5500, 40 GB DDR4-3200, Crucial P5 500 GB NVMe, Ubuntu Server 26.04.1, kernel 7.0.0-42. The card links at PCIe 3.0 x8 in this board's x16 slot (probe 6.6 GB/s; an RX 9060 XT also linked x8 there, so it is the board or CPU, not the card). ROCm 7.14, built in a Docker toolchain with the runtime copied to the box.

Model and config. Qwen3.8-Flash-Next GSQ-RCO IQ2_XS, --max-context 131072, --prefill auto:16384 (borrows 5,539 cache slots, 7.40 GiB, for the prompt; +7 to 10% on prompts over 13K on 0.1.41), CPU EPP performance, STRATA_ROUTE_TAIL_SKIP=0 (tail skip at 7, measured on the 9060 XT box on 2026-10-14 with 0.1.44.1, gave top-1 89.6% and KL 0.085 on the yardstick against off).

Builds. v0.1.41 and v0.2.9 (engine 0.1.55), STRATA_HIP_GFX906. 0.2.9 needed two lines in include/strata/platform/hip_compat/strata_hip.h, because src/core/dflash2.cpp:205-207 calls stream-priority functions the gfx906 compat layer did not map:

#define cudaStreamCreateWithPriority hipStreamCreateWithPriority
#define cudaDeviceGetStreamPriorityRange hipDeviceGetStreamPriorityRange

Fidelity. quant_quality.py run --gpu-experts, 5 x 999 positions: 0.1.41 vs 0.2.9 = 100.00% top-1, KL 0 in every segment, and the three .tsv files (0.1.41, 0.2.9 twice) are byte-identical.

Speed. The same eleven requests on each version (prompts from 75 to 41K tokens, chat and agent turns, some with cached prefixes), one run each. Decode on 0.2.9 was 28.5 to 42.3 tok/s against 19.8 to 31.6 on 0.1.41, higher on ten requests and equal on one (31.8 against 31.6). Fresh long prompts were about equal (27.8K: 468 vs 482; 13.5K: 396 vs 424; 14.0K: 414 vs 369). The new conversation cache reused 27,819 of 41,028 tokens on one follow-up (84 s against 152 s). As on the 9060 XT, decode tok/s also depends on draft acceptance, which moves when the text moves. These runs had no decode timing, so the decode gain is not yet split into window time and acceptance.

Reproduction status

Reproduced locally on both machines; every number above is from a run. Not tested: stability (no long replay on 0.2.9 yet), the pinned arena, HSA_ENABLE_SDMA=1. Happy to run any of these one at a time, or a build with a change to the gfx12 ring rule or the fused path's chunk condition, on the 9060 XT.

Originally created by @codywb on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5001 ### What did you measure Follow-up to #3715 (same RX 9060 XT box, same IQ3_S config), now 0.2.2 against 0.2.9, plus a second box with a Radeon VII. Short version: 1. **Speed on the 9060 XT: 0.2.9 is equal to 0.2.2.** The fused RDNA4 prompt experts (0.2.4) cut the expert GEMM time by about 40% at 32K, and the prompt path then waits the same amount longer for expert copies, so prompt tok/s does not change. The 0.2.7 decode split changes nothing here, because decode is limited by the CPU's experts and no experts go over PCIe on this config. 2. **Served output on 0.2.9 differs from 0.2.2 (top-1 95.0%, KL 0.021 on the decode path), and the whole difference is the expert cache size.** 0.2.9's auto cache leaves the extra 256 MiB of `kLateAllocMib` (1,949 slots against 2,050), so a few more experts per window are computed on the CPU. With the cache fixed at the same size, 0.2.2 and 0.2.9 are bit-identical. Against the yardstick's own run both versions are the same distance away, so this is a change, not a loss. 3. **The fused prompt experts change long-prompt answers more than 0.2.9 itself does.** First-token KL against 0.2.2 is 0.019 (0.2.9 without them: 0.002). Against the FP16 prompt path (`STRATA_PREFILL_MMQ=0`) they are as close as MMQ, or closer, on most prompts, and much further on three: the two single-chunk 4K prompts (code and docs) and a 32K multilingual one. 4. **The Radeon VII (gfx906) runs 0.2.9 and is bit-identical to 0.1.41** on the yardstick. All of it was reproduced locally. Nothing here is a stability claim. #### Box 1: RX 9060 XT **Hardware.** RX 9060 XT 16 GB (gfx1200), PCIe 4.0 x16 (host-to-GPU probe 28.5 GB/s), the only GPU in the PC (it also drives the desktop). Ryzen 5 5600 (6 cores), 94 GiB RAM, WD Blue SN580 2 TB NVMe, Pop!_OS 24.04, kernel 7.3.0 (mainline), ROCm from TheRock wheels 7.10.0a20251120 (gfx120X), hipBLASLt 1.2.0 with the `gfx1200-hipblaslt-100200.txt` table. CPU energy-performance preference `performance` on all cores. **Model and run config.** Qwen3.8-Flash-Next GSQ-RCO IQ3_S from the prepared `experts.bin` pack (50.3 GB, 100% in the page cache when checked between runs; under 50 MB per request came from storage), `--mmap-experts --expert-cache auto --prefill auto`, `--max-context 524288` with YaRN x2, `--kv int8 --kv-resident 32768`, `--spec 4 --spec-min-p 0.5` with MTP, `--vram-reserve-mib 4096`, vision on the CPU. Env as in #3715: `HSA_ENABLE_SDMA=0`, `HSA_USERPTR_FOR_PAGED_MEM=0`, `GPU_PINNED_MIN_XFER_SIZE=1048576`, `STRATA_HIP_WMMA=1`, `STRATA_ROUTE_TAIL_SKIP=0`, `STRATA_PCIE_FRAC_DEFAULT=old`, `STRATA_PF_FUSED=0`, `STRATA_HC_Q8=0`, `STRATA_GFX12_CHUNK=0`, `STRATA_MTP_HIP_PRIO=0`, `STRATA_TOPK_OLD=1`, `STRATA_SCORES_THREAD=0`, `STRATA_QUANT_GATHER=1`, `STRATA_HIP_QUEUE_PRIME=0`, `STRATA_COLD_OVERLAP=0`, `STRATA_IO_PREFETCH=0`, `STRATA_IO_PF_GATE=0`, `STRATA_PREFILL_HOST_PLAN=0`. **Builds.** From source, Release, HIP, `STRATA_PREFILL_MMQ=ON STRATA_Q6K_EXPERTS=ON STRATA_MMQ_KQUANTS=ON`, `CMAKE_HIP_ARCHITECTURES=gfx1200`: v0.2.2 (011c9e6, engine 0.1.47) and v0.2.9 (c62d5e3), each run with its own `serve/server.py`. No local patches. **Arms (one change each).** - **P**: 0.2.2, the config above. - **A**: 0.2.9, the same config and every pin above. - **B**: A without `STRATA_PF_FUSED=0`, so the gfx12 fused prompt experts are on (the log says "prompt experts on the fused int8 kernels"). - **C**: B without `STRATA_PCIE_FRAC_DEFAULT=old`, so the 0.2.7 decode split is on (`pcie_frac 0.15` in the log, against 0.55). **Method.** Isolated port, a fresh engine per arm, arms interleaved (P A B C C B A P), one run per size per arm, fixed prompts at 4K / 32K / 64K, greedy, 256 output tokens. `STRATA_PREFILL_TIMING=1` and `STRATA_DECODE_TIMING=1` in a separate pass. Fidelity: `tools/quant_quality.py` from 0.2.9, in its own modes and also driven with the served engine arguments (below). 2026-11-02, 17:56 to 21:14 JST. **Speed** (prompt tok/s; decode was 29 to 33 tok/s in every arm, see the decode note) | Arm | 4K pass 1 / 2 | 32K pass 1 / 2 | 64K pass 1 / 2 | |---|---|---|---| | P 0.2.2 | 681 / 693 | 1017 / 1019 | 943 / 948 | | A 0.2.9 | 674 / 696 | 1015 / 1024 | 939 / 950 | | B + fused prompt experts | 613 / 700 | 910 / 1020 | 853 / 949 | | C + 0.2.7 decode split | 652 / 669 | 992 / 1014 | 923 / 948 | **Where the prompt time goes** (`STRATA_PREFILL_TIMING`, ms; chunk 8192, the 96-slot ring) | | 4K A | 4K B | 32K A | 32K B | 64K A | 64K B | |---|---|---|---|---|---|---| | dequant | 1289 | 652 | 3205 | 1822 | 6668 | 3593 | | gemm gate/up | 1292 | 945 | 7814 | 5783 | 15634 | 11582 | | gemm down | 861 | 376 | 5043 | 2180 | 10054 | 4385 | | **wait copy** | 221 | **1753** | 531 | **7142** | 1013 | **13971** | | GPU timeline | 5429 | 5446 | 31694 | 31905 | 68160 | 68040 | At 32K the three expert phases drop by 6.3 s and the copy wait rises by 6.6 s. On this config the experts stream from the page-cached mapping (expert cache hit rate about 52 to 55%), so with the faster GEMMs the copies become the limit. Release-note figures for these kernels come from R9700 setups that hold the experts in VRAM, where there is nothing to wait for. Things I tried to get the time back, B unless noted, prompt tok/s at 4K / 32K / 64K: | Change | Result | |---|---| | `STRATA_PREFILL_RING=512` | the engine picks "prompt chunk auto: 5632 tokens, a 512-slot ring"; 702 / 930 / 892, wait copy at 32K still 6879 ms | | `STRATA_PREFILL_RING=1024` | also 5632 / 512 slots; 725 / 939 / 896 | | `STRATA_PREFILL_RING=512` on A | 517 / 653 / 625 (dequant 14,974 ms at 32K) | | `--prefill 16384` (A and B) | "prompt chunk 16384 -> 8192 tokens so its buffers fit in every expert cache"; unchanged | | `STRATA_MTP_SIDE_STREAM=1`, `STRATA_MTP_HIP_PRIO=0` kept | P 671 / 1002 / 872, B 586 / 904 / 933 | | `STRATA_MTP_SIDE_STREAM=1`, `STRATA_MTP_HIP_PRIO` unset (gfx12 default on) | P 667 / 795 / 748, B 623 / 916 / 855 | So the side stream from #3480 (point 1) does not help on this config. On 0.2.2 the draft priority's default makes 32K and 64K prompts about 21% slower than P (795 against 1017, 748 against 943), so `STRATA_MTP_HIP_PRIO=0` stays; on B it made no clear difference. A bigger ring (#3480 point 3) only fits by shrinking the chunk, which costs what it gains. Not tried: the pinned RAM arena instead of `--mmap-experts`, and `HSA_ENABLE_SDMA=1`. Both are held for stability reasons on this box, and they are the two settings most likely to change the copy cost. One more thing about B: its prompt speed seems to have two levels across fresh engine starts. Of the four starts with the same effective config (chunk 8192, 96 slots), two read 32K at 1009 to 1020 tok/s and two at 910 to 915. The two side-stream starts were also at the slow level (904, 916). In the slow starts with timing, the 32K phases were dequant 4,166 to 4,382 ms and gemm gate/up 7,932 to 8,000 ms, against 1,822 and 5,783 in the fast one; the copy wait was lower (4,807 to 5,179 against 7,142). A and P did not do this (P 1017 to 1019, A 1015 to 1024). **Decode.** Per window at 64K, about 84 ms in P, A and C alike (P: verify 73.9 = GPU-reach wait 25.3 + per-layer host 46.1, of which CPU 45.7; 11.3 CPU experts and 17.4 VRAM hits per layer-window; "PCIe 0.00"). The decode tok/s differences between arms in the first table come from different text and so different draft acceptance, not from the window time. The 0.2.7 split moves pcie_frac from 0.55 to 0.15, but nothing goes over PCIe in either setting here, so it cannot help on this config. **Fidelity** *Yardstick modes* (`run` 5 x 999 positions, `prompt` 20 prompts): P = A = B, 100.00% top-1, KL 0 everywhere. Neither mode exercises what changed. `run` scores on the one-token path, and `prompt` uses prompts up to 1000 tokens, below `stream_all_min()`, so the fused path never runs (no fused line in its stderr). *The served decode path:* the same 5 x 999 positions, but the engine started with the served arguments (`--expert-cache auto`, adaptation, CPU share, `--kv int8`, `--prompt-cache 0`, `--short-read 1064`), `FIXED_ENV` emptied. Each arm run twice; P = P repeat, A = A repeat bit for bit. | vs P | code | docs | english | multilingual | agent | all | |---|---|---|---|---|---|---| | A, top-1 | 98.20% | 90.99% | 95.30% | 96.20% | 94.29% | **94.99%** | | A, KL | 0.008 | 0.032 | 0.010 | 0.008 | 0.048 | **0.021** | B and C equal A bit for bit here. Bisected one switch at a time against P: - `STRATA_DEFAULTS=026`: identical to P. - These change nothing: the four gfx12 decode switches off (`ATTN_LANECELL`, `ATTN_MERGE_V2`, `TSUM`, `EXPDEC`), `STRATA_GR_UP_WIDE=0`, `STRATA_GR_V3=0`, `STRATA_PROMPT_ATTN_IMMA=0`, `STRATA_PLE_AUTO_RAM=0`, `--kv fp16` on both. - `--expert-cache 1500 --adapt-every 100000` on both: **0.2.2 = 0.2.9 bit for bit.** - The auto cache lines: 0.2.2 `... (+218 MiB for the draft head) -> 2050 slots`, 0.2.9 `... (+218 MiB for the draft head, +256 MiB for what is allocated after the cache) -> 1949 slots`. So it is the #4474 reserve fix (the `026` path skips `kLateAllocMib`). Against the yardstick's own `run` output (fp16 KV, one-slot cache, no CPU share) as a reference, the served P is 94.55% / KL 0.0225 / PPL 4.021 and the served A 94.85% / 0.0232 / 4.018 (reference 4.009). Same distance. The roughly 5% that the served setup costs against the yardstick is the same in both versions. No single one of `--kv int8`, the cache size and adaptation, or `--pcie-frac 0` removes it; I did not isolate it further. *Long prompts, the batched prompt path:* 16 prompts, 4 texts (C++ source, a long Markdown doc, English prose, multilingual READMEs and locale files) at 4,096 / 8,192 / 16,384 / 32,768 tokens, full-vocabulary first-token logits through `STRATA_DUMP_FIRST_LOGITS`, served arguments, every request fresh. Each arm run twice, and every repeat matched bit for bit. | vs P | top-1 | KL mean | median | max | |---|---|---|---|---| | A | 16/16 | 0.0022 | 0.0007 | 0.010 | | B (= C) | 16/16 | 0.0186 | 0.0029 | 0.168 | Against the FP16 prompt path (`STRATA_PREFILL_MMQ=0` on 0.2.9's engine; 0.2.2's FP16 run gives the same picture): | Prompt | P (MMQ) | A (MMQ) | B (fused) | |---|---|---|---| | code 4K | 0.0168 | 0.0129 | **0.0375** | | code 8K / 16K / 32K | 0.0019 / 0.0009 / 0.0000 | 0.0018 / 0.0010 / 0.0000 | 0.0004 / 0.0000 / 0.0000 | | docs 4K | 0.0059 | 0.0063 | **0.0559** | | docs 8K / 16K / 32K | 0.0039 / 0.0112 / 0.0012 | 0.0027 / 0.0160 / 0.0007 | 0.0025 / 0.0101 / 0.0004 | | english 4K / 8K / 16K / 32K | 0.0102 / 0.0013 / 0.0056 / 0.0093 | 0.0059 / 0.0004 / 0.0054 / 0.0077 | 0.0103 / 0.0009 / 0.0029 / 0.0072 | | multilingual 4K / 8K / 16K | 0.0000 / 0.0000 / 0.0004 | 0.0000 / 0.0000 / 0.0010 | 0.0000 / 0.0000 / 0.0012 | | multilingual 32K | 0.0154 | 0.0417 | **0.2769** | | mean | 0.0052 | 0.0065 | 0.0254 | On the 32K multilingual prompt P gives its top token 0.72 and B gives it 0.91. Same top token everywhere. #### Box 2: Radeon VII **Hardware.** Radeon VII 16 GB (gfx906), Ryzen 5 5500, 40 GB DDR4-3200, Crucial P5 500 GB NVMe, Ubuntu Server 26.04.1, kernel 7.0.0-42. The card links at PCIe 3.0 x8 in this board's x16 slot (probe 6.6 GB/s; an RX 9060 XT also linked x8 there, so it is the board or CPU, not the card). ROCm 7.14, built in a Docker toolchain with the runtime copied to the box. **Model and config.** Qwen3.8-Flash-Next GSQ-RCO IQ2_XS, `--max-context 131072`, `--prefill auto:16384` (borrows 5,539 cache slots, 7.40 GiB, for the prompt; +7 to 10% on prompts over 13K on 0.1.41), CPU EPP `performance`, `STRATA_ROUTE_TAIL_SKIP=0` (tail skip at 7, measured on the 9060 XT box on 2026-10-14 with 0.1.44.1, gave top-1 89.6% and KL 0.085 on the yardstick against off). **Builds.** v0.1.41 and v0.2.9 (engine 0.1.55), `STRATA_HIP_GFX906`. 0.2.9 needed two lines in `include/strata/platform/hip_compat/strata_hip.h`, because `src/core/dflash2.cpp:205-207` calls stream-priority functions the gfx906 compat layer did not map: ```c #define cudaStreamCreateWithPriority hipStreamCreateWithPriority #define cudaDeviceGetStreamPriorityRange hipDeviceGetStreamPriorityRange ``` **Fidelity.** `quant_quality.py run --gpu-experts`, 5 x 999 positions: 0.1.41 vs 0.2.9 = 100.00% top-1, KL 0 in every segment, and the three `.tsv` files (0.1.41, 0.2.9 twice) are byte-identical. **Speed.** The same eleven requests on each version (prompts from 75 to 41K tokens, chat and agent turns, some with cached prefixes), one run each. Decode on 0.2.9 was 28.5 to 42.3 tok/s against 19.8 to 31.6 on 0.1.41, higher on ten requests and equal on one (31.8 against 31.6). Fresh long prompts were about equal (27.8K: 468 vs 482; 13.5K: 396 vs 424; 14.0K: 414 vs 369). The new conversation cache reused 27,819 of 41,028 tokens on one follow-up (84 s against 152 s). As on the 9060 XT, decode tok/s also depends on draft acceptance, which moves when the text moves. These runs had no decode timing, so the decode gain is not yet split into window time and acceptance. ### Reproduction status Reproduced locally on both machines; every number above is from a run. Not tested: stability (no long replay on 0.2.9 yet), the pinned arena, `HSA_ENABLE_SDMA=1`. Happy to run any of these one at a time, or a build with a change to the gfx12 ring rule or the fused path's chunk condition, on the 9060 XT.
Author
Owner

@codywb commented on GitHub (Nov 3, 2026):

A comment here (since removed) asked for the benchmarking code and patches, so this is everything needed to rerun the report (the attached strata-5001-repro.zip):

  • The scripts that produced every number, as they ran: the speed client, the window drivers (fresh engine per arm, interleaved, kernel-fault lock), and the bisect and ring / chunk / side-stream scripts. The README lists the paths at the top of each that need changing for another box, and the folder layout they expect.
  • How the served-path fidelity runs work. They are tools/quant_quality.py's own cmd_run and cmd_prompt, with FIXED_ENV emptied and engine_args replaced by the server's own arguments: auto expert cache with adaptation, CPU share, int8 KV, --prompt-cache 0. The README has the two lines.
  • The long-prompt set. build_longset.sh builds it from public files (v0.2.9's prefill.cpp and DETAILS.md, vim's version9.txt, the READMEs and app locale files), with a hash of the token ids to check against.
  • Configs. The full arm-P server config. Every other arm is that config plus the env or arg deltas in the README's table.
  • Builds and patches. The gfx1200 and gfx906 build scripts. The only source change is the gfx906 one (two stream-priority #defines for dflash2.cpp), as a patch. The 9060 XT builds are unmodified tags.
  • Raw outputs. The engine's own timing lines for every speed arm, all speeds as CSV, every compare / pcompare output, and the gfx906 records.
  • The plans with their pass bars, each written before its window ran.

One addition since the report: the expert reserve turned out to be the main lever on this card. --vram-reserve-mib 4096 -> 2048 gives 40% more expert slots and 10 to 15% faster decode on both 0.2.2 and 0.2.9, and with it 0.2.9's defaults read 64K prompts 13% faster. That leaves only about 0.5 to 0.7 GiB free on a card that also runs the desktop. Numbers in the README's "Window 3" section.

The gfx906 speed requests replay my own agent sessions, so those prompts are not included; everything run on the 9060 XT uses public or synthetic text.

strata-5001-repro.zip

<!-- gh-comment-id:6594162643 --> @codywb commented on GitHub (Nov 3, 2026): A comment here (since removed) asked for the benchmarking code and patches, so this is everything needed to rerun the report (the attached `strata-5001-repro.zip`): - **The scripts that produced every number**, as they ran: the speed client, the window drivers (fresh engine per arm, interleaved, kernel-fault lock), and the bisect and ring / chunk / side-stream scripts. The README lists the paths at the top of each that need changing for another box, and the folder layout they expect. - **How the served-path fidelity runs work.** They are `tools/quant_quality.py`'s own `cmd_run` and `cmd_prompt`, with `FIXED_ENV` emptied and `engine_args` replaced by the server's own arguments: auto expert cache with adaptation, CPU share, int8 KV, `--prompt-cache 0`. The README has the two lines. - **The long-prompt set.** `build_longset.sh` builds it from public files (v0.2.9's `prefill.cpp` and `DETAILS.md`, vim's `version9.txt`, the READMEs and app locale files), with a hash of the token ids to check against. - **Configs.** The full arm-P server config. Every other arm is that config plus the env or arg deltas in the README's table. - **Builds and patches.** The gfx1200 and gfx906 build scripts. The only source change is the gfx906 one (two stream-priority `#define`s for `dflash2.cpp`), as a patch. The 9060 XT builds are unmodified tags. - **Raw outputs.** The engine's own timing lines for every speed arm, all speeds as CSV, every `compare` / `pcompare` output, and the gfx906 records. - **The plans with their pass bars,** each written before its window ran. One addition since the report: the expert reserve turned out to be the main lever on this card. `--vram-reserve-mib 4096 -> 2048` gives 40% more expert slots and 10 to 15% faster decode on both 0.2.2 and 0.2.9, and with it 0.2.9's defaults read 64K prompts 13% faster. That leaves only about 0.5 to 0.7 GiB free on a card that also runs the desktop. Numbers in the README's "Window 3" section. The gfx906 speed requests replay my own agent sessions, so those prompts are not included; everything run on the 9060 XT uses public or synthetic text. [strata-5001-repro.zip](https://github.com/user-attachments/files/34300948/strata-5001-repro.zip)
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658995509 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2310
No description provided.