[PR #188] [CLOSED] prefill: software-pipelined loads in the column-split GDN recurrence (bit-identical) #2498

Closed
opened 2026-11-04 02:00:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 2371547 prefill: software-pipelined loads in the column-split GDN recurrence (bit-identical; STRATA_GDN_PIPELINE=0 = old kernel)
  • 6cb0ff6 prefill: 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_kernel with the next token's q/k rows, v, gate and beta loaded into registers
while 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/188 **Author:** [@q8atnight](https://github.com/q8atnight) **Created:** 9/30/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/gdn-rec-pipeline` --- ### 📝 Commits (2) - [`2371547`](https://github.com/Niko1221/Strata/commit/2371547665e2ec8042e8b60a9f5f577d2c21451d) prefill: software-pipelined loads in the column-split GDN recurrence (bit-identical; STRATA_GDN_PIPELINE=0 = old kernel) - [`6cb0ff6`](https://github.com/Niko1221/Strata/commit/6cb0ff61cc34e53bd74cc564d88922f22d6e774f) prefill: 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) <details> <summary>View changed files</summary> 📝 `src/prefill/kernels.cu` (+64 -1) </details> ### 📄 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_kernel` with the next token's q/k rows, v, gate and beta loaded into registers while 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:44 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2498
No description provided.