Skip to content

Conversation

@ruisizhang123
Copy link
Contributor

@ruisizhang123 ruisizhang123 commented Sep 4, 2025

This pr adds reordering to pre-fetch bucketed AG/RS nodes. The logic is as follows:

In forward pass:

  • reorder ag_i before wait_i-1_ag

In backward pass:

  • reorder ag_i after wait_i-1_ag
  • reorder wait_i_rs before rs_i+1

Stack from ghstack (oldest at bottom):

[ghstack-poisoned]
[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Sep 5, 2025
Copy link
Contributor

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Tested it in #138 and LGTM, thanks!

[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Sep 5, 2025
[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Sep 6, 2025
[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Sep 6, 2025
@ruisizhang123 ruisizhang123 merged commit 9b1a0ad into gh/ruisizhang123/5/base Sep 6, 2025
6 checks passed
@fmassa fmassa deleted the gh/ruisizhang123/5/head branch September 6, 2025 07:54
ruisizhang123 added a commit that referenced this pull request Sep 6, 2025
…141)

* Update (base update)

[ghstack-poisoned]

* Update (base update)

[ghstack-poisoned]

* Update (base update)

[ghstack-poisoned]

* Update (base update)

[ghstack-poisoned]

* Update (#134)

[ghstack-poisoned]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants