mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2628] [CLOSED] gfx12 layer split: opt-in STRATA_GFX12_SPLIT_DECODE=1 for nine decode switches (2x R9700: +5.8% greedy, +4.9% sampled) #4177
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4177
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2628
Author: @justincinmd
Created: 10/15/2026
Status: ❌ Closed
Base:
main← Head:pr/gfx12-split-decode-optin📝 Commits (1)
28d3145gfx12 layer split: STRATA_GFX12_SPLIT_DECODE=1 turns on nine decode switches (opt-in)📊 Changes
7 files changed (+365 additions, -6 deletions)
View changed files
📝
docs/AMD_HIP.md(+79 -0)📝
docs/DETAILS.md(+2 -0)📝
docs/MULTI_GPU.md(+4 -0)📝
include/strata/core/arch_defaults.hpp(+31 -0)📝
src/core/arch_defaults.cpp(+67 -5)📝
src/core/arch_defaults_test.cpp(+145 -1)📝
src/program/generate.cpp(+37 -0)📄 Description
Issue: follows #1478
Summary
#1478 left the decode half of the gfx1151 table out of the gfx12 table, because it measured slower on one R9700. On a two-R9700 layer split, with every expert resident, the same switches are faster. This PR adds an opt-in flag for that case:
STRATA_GFX12_SPLIT_DECODE=1. The default does not change.Measured on 2x R9700 32 GB, Linux, ROCm 7.2.4, Qwen3.8-Flash-Next IQ3_S,
--layer-split 26, all 24,576 experts resident, spec 4 + MTP:That is +5.8% greedy and +4.9% sampled against the mean of the two stock runs. Decode is the geometric mean of four prompts, 3 runs each. Cold prompt reads at 4.6K / 19K / 69K tokens are +11% / +12% / +12% (one request per size). Per-run data and output hashes: bench report (also offered as a PR).
What changed
STRATA_GFX12_SPLIT_DECODE=1(exactly1) sets nine switches of the gfx1151 table, unless the user set them:Q6_PACKED,MMVF_ROWS,ATTN_LANECELL,EXPERT_V2,TSUM,LFUSE,GDN_SPLIT,QFUSE,PLE_BATCH.STRATA_GFX12_DEFAULTS=0still turns off the whole gfx12 table.src/core/arch_defaults.cpp/.hpp: a pure decision function,gfx12_split_decode().arch_default_envandapply_arch_defaultskeep their 0.1.43 signatures and output.src/program/generate.cpp: one call, HIP only, after the existing check that every used GPU has code in the binary.Not in the set:
Q8_PACKED(the measured pack has no Q8_0 matrix it packs) andSH_STREAM(not measured on a split).Q6_PACKEDcosts VRAM: +497 MiB for the main head and +81 MiB for the MTP head on this pack.Testing
--split-device 0or one visible GPU they stay off.arch_defaults_testcovers the default, the flag, one GPU, mixed architectures, Windows, malformed values and user-set values.Extra Notes
The evidence covers one setup: 2x R9700, one IQ3_S pack, every expert resident. If more gfx12 split runs agree, the set could become a default later.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.