Skip to content

[PP] Move profiler record_function in schedule - #164976

Closed
H-Huang wants to merge 1 commit into
gh/H-Huang/221/basefrom
gh/H-Huang/221/head
Closed

H-Huang wants to merge 1 commit into
gh/H-Huang/221/basefrom
gh/H-Huang/221/head

Conversation

@H-Huang

@H-Huang H-Huang commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Oct 8, 2025 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164976

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit ffd0280 with merge base 322091d (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Oct 8, 2025
H-Huang added a commit that referenced this pull request Oct 8, 2025
@H-Huang H-Huang added the release notes: distributed (pipeline) release notes category label Oct 8, 2025
@H-Huang H-Huang added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 8, 2025
@H-Huang
H-Huang requested review from fegin and kwen2501 October 8, 2025 22:58
@H-Huang

H-Huang commented Oct 10, 2025

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Oct 12, 2025
Move FSDP reduce scatters to the end of the PP step. The reduce scatter compute stream sync blocks the other stages from executing their backwards leading to bubbles. There should be a way to execute these RS earlier, but doing this for now as a quick fix.

<img width="1056" height="463" alt="image" src="https://github.com/user-attachments/assets/b945dd55-8ab1-4acc-b862-c6e2e476b834" />

Pull Request resolved: #165106
Approved by: https://github.com/weifengpy
ghstack dependencies: #164976
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
Move FSDP reduce scatters to the end of the PP step. The reduce scatter compute stream sync blocks the other stages from executing their backwards leading to bubbles. There should be a way to execute these RS earlier, but doing this for now as a quick fix.

<img width="1056" height="463" alt="image" src="https://github.com/user-attachments/assets/b945dd55-8ab1-4acc-b862-c6e2e476b834" />

Pull Request resolved: pytorch#165106
Approved by: https://github.com/weifengpy
ghstack dependencies: pytorch#164976
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (pipeline) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants