[GH-ISSUE #1478] gfx1201 (R9700): the gfx1151 prompt switches in arch_defaults.cpp are exact and +4-8% prompt; suggest a gfx12 entry (decode half is slower) #593

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

Originally created by @jkuepker on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1478

src/core/arch_defaults.cpp turns on a list of speed switches only when gfx_arch_is_gfx1151() is true. The comment calls them bitwise-exact on gfx1151. I tried them on an R9700 (gfx1201). The prompt half is exact here too and gives +4 to +8% prompt speed. The decode half is exact but slower on this card.

Prompt (localeval, 3 reps, medians, same session):

4K 16K 32K
baseline 2,358 2,805 2,691
STRATA_GDN_HEAD=1 STRATA_GDN_PP=2 STRATA_GDN_CONVL2=1 STRATA_GDN_NOY=1 STRATA_CVEC_FUSE=1 STRATA_HCD_EXACT=1 2,546 (+8%) 2,912 (+4%) 2,794 (+4%)
the whole gfx1151 list 2,538 2,934 2,820

Decode (3 fixed greedy prompts, 300 tokens, 3 rounds through the server; spread between server starts is 0.1-0.2%):

tok/s
baseline 91.5 / 91.6
decode half (Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE) 87.7 (−4%)
STRATA_SH_STREAM=1 89.5 (−2%)

Suggestion: add a gfx1201 (or gfx12) entry to arch_default_env with only the six prompt switches above. STRATA_PF_PAD can stay out because it does nothing without STRATA_PF_GEMM. Keep the decode switches gfx1151-only. I measured one card and one model (Coder IQ1_M). Q2_0/IQ3 packs on gfx1201 were not checked.

Environment: Strata v0.1.40.3 (d5ea713), Linux, AMD Radeon AI PRO R9700 (gfx1201, 32 GB), Ryzen 9 9900X, 30 GB RAM, TheRock ROCm 7.14.0a20260612 (STRATA_ROCM_VERSION), Coder IQ1_M, --resident-experts, STRATA_HIP_WMMA=1, --prefill auto:32768, all 12,288 experts in VRAM.
Quality check used for every variant: greedy needle retrieval at ~4K / ~16K / ~57K tokens plus a code task. All 4 pass, and the 4 answer hashes are identical to the baseline.

Originally created by @jkuepker on GitHub (Oct 8, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1478 `src/core/arch_defaults.cpp` turns on a list of speed switches only when `gfx_arch_is_gfx1151()` is true. The comment calls them bitwise-exact on gfx1151. I tried them on an R9700 (gfx1201). The **prompt half is exact here too and gives +4 to +8% prompt speed**. The decode half is exact but slower on this card. **Prompt** (localeval, 3 reps, medians, same session): | | 4K | 16K | 32K | |---|---:|---:|---:| | baseline | 2,358 | 2,805 | 2,691 | | `STRATA_GDN_HEAD=1 STRATA_GDN_PP=2 STRATA_GDN_CONVL2=1 STRATA_GDN_NOY=1 STRATA_CVEC_FUSE=1 STRATA_HCD_EXACT=1` | **2,546 (+8%)** | **2,912 (+4%)** | **2,794 (+4%)** | | the whole gfx1151 list | 2,538 | 2,934 | 2,820 | **Decode** (3 fixed greedy prompts, 300 tokens, 3 rounds through the server; spread between server starts is 0.1-0.2%): | | tok/s | |---|---:| | baseline | 91.5 / 91.6 | | decode half (`Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE`) | 87.7 (−4%) | | `STRATA_SH_STREAM=1` | 89.5 (−2%) | **Suggestion:** add a gfx1201 (or gfx12) entry to `arch_default_env` with only the six prompt switches above. `STRATA_PF_PAD` can stay out because it does nothing without `STRATA_PF_GEMM`. Keep the decode switches gfx1151-only. I measured one card and one model (Coder IQ1_M). Q2_0/IQ3 packs on gfx1201 were not checked. **Environment:** Strata v0.1.40.3 (d5ea713), Linux, AMD Radeon AI PRO R9700 (gfx1201, 32 GB), Ryzen 9 9900X, 30 GB RAM, TheRock ROCm 7.14.0a20260612 (`STRATA_ROCM_VERSION`), Coder IQ1_M, `--resident-experts`, `STRATA_HIP_WMMA=1`, `--prefill auto:32768`, all 12,288 experts in VRAM. **Quality check used for every variant:** greedy needle retrieval at ~4K / ~16K / ~57K tokens plus a code task. All 4 pass, and the 4 answer hashes are identical to the baseline.
Author
Owner

@Niko1221 commented on GitHub (Oct 10, 2026):

Thanks for the measurements. We reproduced it on an R9700 (gfx1201, IQ3_S): GDN_HEAD, GDN_PP=2, GDN_CONVL2, GDN_NOY and CVEC_FUSE give a bit-identical final residual at 4K and 16K and are now on by default on gfx1200/gfx1201 (STRATA_GFX12_DEFAULTS=0 turns them off). Gain on our model and config is smaller than yours: +0.8% / +1.6% / +1.8% at 4K / 16K / 32K (10 interleaved pairs, faster in 27 of 29). STRATA_HCD_EXACT is left out: it needs the gfx1151 hipBLASLt table, finds none on gfx12 and does nothing. The decode switches stay gfx1151-only. In v0.1.42.

<!-- gh-comment-id:6099596765 --> @Niko1221 commented on GitHub (Oct 10, 2026): Thanks for the measurements. We reproduced it on an R9700 (gfx1201, IQ3_S): GDN_HEAD, GDN_PP=2, GDN_CONVL2, GDN_NOY and CVEC_FUSE give a bit-identical final residual at 4K and 16K and are now on by default on gfx1200/gfx1201 (STRATA_GFX12_DEFAULTS=0 turns them off). Gain on our model and config is smaller than yours: +0.8% / +1.6% / +1.8% at 4K / 16K / 32K (10 interleaved pairs, faster in 27 of 29). STRATA_HCD_EXACT is left out: it needs the gfx1151 hipBLASLt table, finds none on gfx12 and does nothing. The decode switches stay gfx1151-only. In v0.1.42.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156105893 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#593
No description provided.