Repository navigation
feat: optimize GatedDeltaNet parallel layout and chunk handling - #40
Merged
Merged
Conversation
pearlpig-iu
force-pushed
the
feature/optimize_gatedeltanet_parallel
branch
from
March 31, 2026 02:11
7c01da3 to
97e1922
Compare
pearlpig-iu
force-pushed
the
feature/optimize_gatedeltanet_parallel
branch
from
March 31, 2026 02:57
46b5604 to
cb170a1
Compare
pearlpig-iu
force-pushed
the
feature/optimize_gatedeltanet_parallel
branch
from
March 31, 2026 03:43
cb170a1 to
77b0541
Compare
holystone6
approved these changes
Apr 2, 2026
HolyStoneC
approved these changes
Apr 2, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR optimizes the parallel execution path of GatedDeltaNet and fixes the chunk output ordering issue in multi-GPU runs.
Details
GatedDeltaNet parallel optimization
The GatedDeltaNet path is optimized to better align with the TP/SP layout:
Chunk output ordering fix
The previous chunk merging logic concatenated local outputs directly after per-chunk sharding, which could break the global token order across ranks.
This PR fixes the issue by writing chunk outputs back according to their global positions, so the final local sequence layout remains correct after chunked execution.
Benefits
Test Report
https://ones.ainewera.com/wiki/#/team/Ttz6FJha/space/Qkwz271e/page/XSkog6tG