mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1360] gfx1151: STRATA_EXPERT_V2K on by default (UD-Q4_K_XL decode experts: same text, +6.5% greedy / +9.9% sampled output on Strix Halo) #3405
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#3405
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/1360
Author: @routhjim
Created: 10/7/2026
Status: 🔄 Open
Base:
main← Head:v2k-gfx1151-default📝 Commits (1)
26996c6gfx1151: STRATA_EXPERT_V2K on by default (UD-Q4_K_XL decode experts; same text, +6.5% greedy / +9.9% sampled output)📊 Changes
2 files changed (+2 additions, -1 deletions)
View changed files
📝
docs/STRIX_HALO.md(+1 -1)📝
src/core/arch_defaults.cpp(+1 -0)📄 Description
STRATA_EXPERT_V2K(04e1e11a) runs UD-Q4_K_XL's decode experts on the S26 grouped structure: Q4_K / Q5_K gate/up with Q5_1 / Q8_0 down, 4 rows per warp, the chunk's q8_1 rows in LDS, fused SwiGLU + q8_1. By its design every output is bitwise equal to the native kernels' (S27<TY>::load/applysplit from the same vec_dot functions). It is opt-in today, and nothing published has measured it.On gfx1151 it is a clear win, so this PR adds it to the gfx1151 default table (
src/core/arch_defaults.cpp) next toSTRATA_EXPERT_V2, and to the section-4 table ofdocs/STRIX_HALO.md. As with every entry there, a user's own setting wins:STRATA_EXPERT_V2K=0keeps the old kernels, andSTRATA_GFX1151_DEFAULTS=0turns the whole table off. The switch only matters for packs whose experts are those formats (UD-Q4_K_XL); other packs never reach it.Measured on a Ryzen AI Max+ 395 (Radeon 8060S, gfx1151, 128 GB, Linux 7.2, ROCm 7.14.1, the iGPU alone).
82f46a8plus this PR, built perdocs/STRIX_HALO.mdwith the section-4 defaults andSTRATA_PF_FUSED_KQ=1, Unsloth UD-Q4_K_XL,--mmap-experts --expert-cache auto --spec 4 --mtp mtp/rt --lookup-chain 3 --kv int8.STRATA_EXPERT_V2K=0for the old kernels.STRATA_DECODE_TIMING=1; ± is the standard error over the requests.STRATA_EXPERT_V2K=0The draft time and the acceptance do not move: the gain is the verify window's expert step. In a per-stage profile (
STRATA_VERIFY_PROFILE=1, a Q4_K-dense requant of the same experts) the routed experts went from 25.2 to 21.0 ms per window.Same text: three fixed prompts, greedy, 256 tokens, each twice, give the same text with and without the switch, and across the repeats.
Not tested:
Measured with the help of Claude (Anthropic).
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.