mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #188] [CLOSED] prefill: software-pipelined loads in the column-split GDN recurrence (bit-identical) #2498
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#2498
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/188
Author: @q8atnight
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:pr/gdn-rec-pipeline📝 Commits (2)
2371547prefill: software-pipelined loads in the column-split GDN recurrence (bit-identical; STRATA_GDN_PIPELINE=0 = old kernel)6cb0ff6prefill: GDN recurrence pipelining - the neutral 16-column variant (STRATA_GDN_CB) dropped, one kernel on upstream's split (review)📊 Changes
1 file changed (+64 additions, -1 deletions)
View changed files
📝
src/prefill/kernels.cu(+64 -1)📄 Description
Summary
The port Niko mentioned when closing #108 ("your software-pipelined loads in the recurrence go further than ours
(-29 % vs our -17 %)"):
gdn_rec_cols_kernelwith the next token's q/k rows, v, gate and beta loaded into registerswhile the current token computes. Templated on columns per block (32 = upstream's split; 16 available via
STRATA_GDN_CB=16, measured neutral).One commit on top of 0.1.27 (
a790805); all four of my current branches were compile-tested together on 0.1.27.Measured
Measured on 2x RTX 3090, IQ3_S, with the engine this was developed in (0.1.24 + the dual-GPU work): recurrence time
-29 % vs -17 % for the column split alone (as quoted in #108); prompt speed at 32K within a percent or two overall.
Correctness
The same arithmetic in the same order: bit-identical.
Switch
STRATA_GDN_PIPELINE=0= upstream's kernel.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.