[PR #2755] [CLOSED] sycl/A770: commit all GDN layers' conv history + state replay in two launches (STRATA_GDN_COMMIT_BATCH; bitwise) #4246

Closed
opened 2026-11-07 15:34:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2755
Author: @aslater3
Created: 10/16/2026
Status: ❌ Closed

Base: main ← Head: a770/up-gdn-commit-batch


📝 Commits (2)

  • 9c63375 sycl/A770: decode GDN recurrence in large GRF, and the split recurrence by default on Alchemist (bitwise)
  • afead65 sycl/A770: commit all GDN layers' conv history + state replay in two launches (STRATA_GDN_COMMIT_BATCH; bitwise)

📊 Changes

5 files changed (+223 additions, -39 deletions)

View changed files

📝 include/strata/kernels/verify_kernels.hpp (+8 -0)
📝 sycl/CMakeLists.txt (+2 -0)
📝 sycl/src/core/verify.cpp (+26 -1)
📝 sycl/src/kernels/cuda/verify_kernels.dp.cpp (+90 -38)
➕ sycl/src/kernels/gdn_bench.cpp (+97 -0)

📄 Description

sycl/A770: commit all GDN layers' conv history + state replay in two launches (STRATA_GDN_COMMIT_BATCH; bitwise)

capture_commit replayed the accepted tokens into each GDN layer's state with two launches a layer (gdn_conv_commit and
the split state replay): 36 layers -> 72 launches at the end of every verify window, on the critical path into the
next round's drafting. gdn_commit_replay_layers runs the same two kernels over all layers at once (the layer is the
outermost work-group index, selecting each layer's state, history and inputs), so every thread computes what it did.
It declines (the per-layer loop runs) where the split replay is not the path. Default on on Alchemist, where it is
measured; STRATA_GDN_COMMIT_BATCH=1 forces it on, =0 off. Needs the split replay (#2586).

gdn_bench GDN_CBATCH=1 (new): 36 layers, n_keep 1..6, every float of every layer's state and history compared per
layer vs batched: 0 differ; 1.96 -> 0.83 ms. Engine, A770, Coder IQ1_M, 8K code prompt, 3 pairs: MTP drafting
7.51 / 7.31 / 7.44 -> 6.58 / 6.44 / 6.50 ms a round (-0.91), decode 35.68 / 39.41 / 39.58 -> 35.58 / 40.04 / 41.63 tok/s,
reference tokens (one known low-hit variant).

Stacked on #2586 (the split GDN replay, which this batches); the diff to review is the top commit.

🤖 Generated with Claude Code


🔄 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/2755 **Author:** [@aslater3](https://github.com/aslater3) **Created:** 10/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770/up-gdn-commit-batch` --- ### 📝 Commits (2) - [`9c63375`](https://github.com/Niko1221/Strata/commit/9c63375f583bab0da578c0a3684b09c146188ab4) sycl/A770: decode GDN recurrence in large GRF, and the split recurrence by default on Alchemist (bitwise) - [`afead65`](https://github.com/Niko1221/Strata/commit/afead65f6da87b97e8f2aae5889a340bb8cd02c1) sycl/A770: commit all GDN layers' conv history + state replay in two launches (STRATA_GDN_COMMIT_BATCH; bitwise) ### 📊 Changes **5 files changed** (+223 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `include/strata/kernels/verify_kernels.hpp` (+8 -0) 📝 `sycl/CMakeLists.txt` (+2 -0) 📝 `sycl/src/core/verify.cpp` (+26 -1) 📝 `sycl/src/kernels/cuda/verify_kernels.dp.cpp` (+90 -38) ➕ `sycl/src/kernels/gdn_bench.cpp` (+97 -0) </details> ### 📄 Description ## sycl/A770: commit all GDN layers' conv history + state replay in two launches (STRATA_GDN_COMMIT_BATCH; bitwise) capture_commit replayed the accepted tokens into each GDN layer's state with two launches a layer (gdn_conv_commit and the split state replay): 36 layers -> 72 launches at the end of every verify window, on the critical path into the next round's drafting. gdn_commit_replay_layers runs the same two kernels over all layers at once (the layer is the outermost work-group index, selecting each layer's state, history and inputs), so every thread computes what it did. It declines (the per-layer loop runs) where the split replay is not the path. Default on on Alchemist, where it is measured; STRATA_GDN_COMMIT_BATCH=1 forces it on, =0 off. Needs the split replay (#2586). gdn_bench GDN_CBATCH=1 (new): 36 layers, n_keep 1..6, every float of every layer's state and history compared per layer vs batched: 0 differ; 1.96 -> 0.83 ms. Engine, A770, Coder IQ1_M, 8K code prompt, 3 pairs: MTP drafting 7.51 / 7.31 / 7.44 -> 6.58 / 6.44 / 6.50 ms a round (-0.91), decode 35.68 / 39.41 / 39.58 -> 35.58 / 40.04 / 41.63 tok/s, reference tokens (one known low-hit variant). Stacked on #2586 (the split GDN replay, which this batches); the diff to review is the top commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:18 +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#4246
No description provided.