mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2321] [CLOSED] route-resident: support 256-expert top-8 models (Qwen3.6-35B-A3B) #3980
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#3980
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/2321
Author: @atomicmilkshake
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:route-resident-256-8📝 Commits (1)
7f32e22route-resident: port residency-biased routing to 256-expert top-8 models📊 Changes
4 files changed (+166 additions, -105 deletions)
View changed files
📝
include/strata/kernels/native_router.hpp(+11 -3)📝
src/core/verify.cpp(+18 -5)📝
src/kernels/cuda/native_router.cu(+73 -39)📝
src/kernels/route_resident_parity.cu(+64 -58)📄 Description
Summary
Generalizes the opt-in \STRATA_ROUTE_RESIDENT\ kernel and verifier guard from 512/10 models to also support 256-expert top-8 models (\qwen35moe\ / Qwen3.6-35B-A3B).
Follows Ethan's warp-reduction rewrite (#1737) and separates out the 256/8 portion previously included in #1820 into a clean, standalone change on top of upstream \main.
Details
Kernel parameterization (\src/kernels/cuda/native_router.cu):
oute_resident_impl<NE, K>\ across warp-multiple expert counts. Both 512 and 256 are multiples of 32, so the __shfl_down_sync\ reduction tree stays convergent across lanes.
oute_resident_k\ (512/10) CUDA symbol and entry point, and instantiates
oute_resident_geometry_k<256, 8>\ for Qwen geometries.
ative_route_resident\ overload so existing 512/10 call sites (\src/core/mtp.cpp, metal stubs) continue without change.
Verifier & Configuration (\src/core/verify.cpp):
Parity Test (\src/kernels/route_resident_parity.cu):
Context
Extracted from #1820 per maintainer single-change guideline. Validated on 0.1.42 (+9.7% decode / -13.1% window on Qwen3.6-35B-A3B).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.