mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2799] [CLOSED] [Engine] HIP: verify-window routing for non-native routers (256 experts) on every HIP card #4272
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#4272
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/2799
Author: @pugolini
Created: 10/16/2026
Status: ❌ Closed
Base:
main← Head:pr-route-window📝 Commits (2)
82ff69eVerify profile: time the window routing apart from the plan/doorbell; route_window_parity covers T = 1..68e46f68HIP: the verify window routing of a non-native router (256 experts) on every HIP card, not only gfx906📊 Changes
3 files changed (+28 additions, -10 deletions)
View changed files
📝
include/strata/core/verify.hpp(+1 -1)📝
src/core/verify.cpp(+26 -8)📝
src/kernels/route_window_parity.cpp(+1 -1)📄 Description
Problem and result
The native router is 512 x 10 only, so a 256-expert model (such as Qwen3.8-Flash-Next Coder) fell back to the per-token
moe_routeloop in the verify window on all HIP hardware exceptgfx906: a projection + top-k launch pair per token and layer (~360 small kernel launches in a--spec 4step).moe_route_window(one multi-column BF16 projection + one top-k per layer, bitwise equivalent to the per-token calls) now runs by default on every HIP card.STRATA_ROUTE_WIN=0restores the per-token loop. On CUDA it remains opt-in (STRATA_ROUTE_WIN=1) until benchmarked there.Related discussion
None.
Approach
Enable
route_window_on()across all HIP cards (andSTRATA_HIP_GFX906) rather than restricting the fast window router branch to#if defined(STRATA_HIP_GFX906). Also adds profile stamp slot 33 to separate verify window routing from plan/doorbell latency underSTRATA_VERIFY_PROFILE=1.Validation
Passed:
gfx1201(AMD Radeon AI PRO R9700 32 GB, ROCm 7.10, Linux 7.0), Coder IQ1_M,--spec 4, on top of Stratav0.2.1.1(9ae93f7b):route_window_parity: OK for T in 1..6 (256 experts, top-10 and 1-row gate), bit-identical.Failed:
Not run:
STRATA_ROUTE_WIN=1).Limits
None. Fully bitwise compatible with prior decode output.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.