Skip to content

feat: optimize GatedDeltaNet parallel layout and chunk handling - #40

Merged
HolyStoneC merged 1 commit into
mainfrom
feature/optimize_gatedeltanet_parallel
Apr 2, 2026
Merged

HolyStoneC merged 1 commit into
mainfrom
feature/optimize_gatedeltanet_parallel

Conversation

@pearlpig-iu

Copy link
Copy Markdown
Collaborator

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:

  • reduce unnecessary gather operations in the parallel path
  • keep computation in distributed layout where possible
  • improve data movement efficiency between seq-parallel and head-parallel stages

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

  • lower communication overhead in GatedDeltaNet parallel path
  • correct token ordering for chunked multi-GPU execution
  • improved output quality by avoiding sequence misalignment
  • better scalability for long-sequence inference

Test Report

https://ones.ainewera.com/wiki/#/team/Ttz6FJha/space/Qkwz271e/page/XSkog6tG

@pearlpig-iu
pearlpig-iu force-pushed the feature/optimize_gatedeltanet_parallel branch from 7c01da3 to 97e1922 Compare March 31, 2026 02:11
@pearlpig-iu
pearlpig-iu force-pushed the feature/optimize_gatedeltanet_parallel branch from 46b5604 to cb170a1 Compare March 31, 2026 02:57
@pearlpig-iu
pearlpig-iu force-pushed the feature/optimize_gatedeltanet_parallel branch from cb170a1 to 77b0541 Compare March 31, 2026 03:43

@holystone6 holystone6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewd

This branch was previously deployed

1 inactive deployment
Env — b364e8b2 Deployed Apr 2, 2026 by pearlpig-iu via C500_720p_ti2v_8gpu / run-task #42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants