KEMBAR78
[pipelining] Fix 'last backward' counting for dI / dW by wconstab · Pull Request #139415 · pytorch/pytorch · GitHub
Skip to content

Conversation

@wconstab
Copy link
Contributor

@wconstab wconstab commented Oct 31, 2024

Stack from ghstack (oldest at bottom):

Since any stage can run a mixture of full backwards and split backwards,
it is important to count the sum of (full_backwards + backward_weight)
when comparing to num microbatches to determine last backward.

cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @d4l3k @c-p-i-o

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 31, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 1a9edfe with merge base failed to retrieve merge base, please contact dev infra:
💚 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 31, 2024
wconstab added a commit that referenced this pull request Oct 31, 2024
Since any stage can run a mixture of full backwards and split backwards,
it is important to count the sum of (full_backwards + backward_weight)
when comparing to num microbatches to determine last backward.

ghstack-source-id: 85cda59
Pull Request resolved: #139415
@wconstab wconstab added release notes: distributed (pipeline) release notes category module: pipelining Pipeline Parallelism labels Oct 31, 2024
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@wconstab wconstab requested review from H-Huang and kwen2501 November 1, 2024 19:34
Copy link
Member

@H-Huang H-Huang left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up

@wconstab
Copy link
Contributor Author

wconstab commented Nov 4, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 4, 2024
@pytorchmergebot
Copy link
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 Nov 7, 2024
Cleaning up counters / extra variables not needed after #139415 was landed

Pull Request resolved: #139817
Approved by: https://github.com/wconstab
@github-actions github-actions bot deleted the gh/wconstab/354/head branch December 5, 2024 02:13
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
Cleaning up counters / extra variables not needed after pytorch#139415 was landed

Pull Request resolved: pytorch#139817
Approved by: https://github.com/wconstab
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 module: pipelining Pipeline Parallelism 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