mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #258] [CLOSED] fused_gr: TILE=1280 kernel specialization for sm_75 (Turing) down-projection #2532
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#2532
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/258
Author: @hireymage
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:sm75-tile1280📝 Commits (1)
1f7d25afused_gr: sm_75 down kernel with TILE=1280 staging, other archs unchanged📊 Changes
1 file changed (+54 additions, -26 deletions)
View changed files
📝
src/kernels/cuda/fused_gr.cu(+54 -26)📄 Description
Title:
fused_gr: TILE=1280 kernel specialization for sm_75 (Turing) down-projection
Body:
What this does
On Turing (sm_75) the fused gate/rescale down-projection kernel runs with
the default tile geometry sized for larger shared-memory budgets. Turing
has 64 KiB of shared memory per block (opt-in), which fits a different,
more efficient shape: a TILE=1280 specialization fits 8 activation
tokens in a single ~40 KiB launch instead of the default tile's
smaller working set, and drops register pressure (REG 76 → 64) enough to
raise occupancy.
sm_75-guarded TILE=1280 instantiation of the down-projectionkernel alongside the default geometry.
(tile, chunk) order, so results are unchanged — verified greedy
generation matches the default build with temperature 0.
Measured on my machine
i7-8700K (AVX2), RTX 2070 (sm_75), Qwen3.8-Flash-Next native Q2_0 pack
(spec verified from the GGUF header, ~125.7B-parameter MoE), standalone
kernel microbench, temperature 0.
stage profiler on):
expert-pool bound here (the CPU AVX2 expert pool dominates the
window). This change frees GPU time the CPU cannot consume yet, so its
end-to-end benefit should appear on rigs with a faster CPU or a larger
model where the GPU down-projection is the bottleneck.
grouped-expert kernels on sm_75 are L1TEX-pipe bound (~95 % of peak,
DRAM ~22–33 %), driven by uncoalesced 8-byte weight reads. The tile
change improves occupancy and per-launch batching without touching the
access pattern or the summation order.
Please test on other devices
I can only measure one machine. This is a Turing-specific specialization,
so other sm_75 cards (RTX 2060/2070/2080 variants) are the direct target:
(temperature 0) before/after and compare wall-clock decode time, and
ideally per-window kernel time if you use the stage profiler.
welcome — especially Ampere+ cards with the larger default smem budget,
to confirm the default path is untouched.
end-to-end effect should actually show.
Greedy outputs should be identical before/after; if you see a difference,
that's a bug, please report it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.