8000 [PP] Don't allow for num_microbatches > num_stages for single stage schedules by H-Huang · Pull Request #144702 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[PP] Don't allow for num_microbatches > num_stages for single stage schedules #144702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

H-Huang
Copy link
Member
@H-Huang H-Huang commented Jan 13, 2025

Stack from ghstack (oldest at bottom):

There is an edge case where Schedule1F1B will hang when num_microbatches=1 (pytorch/torchtitan#775). For validation it makes sense to check that the number of stages should be >= number of microbatches otherwise there will be an even larger bubble.

This can be removed when we have the single stage schedules to use an IR and updated to run with schedule runtime (issue tracker #144701)

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

Copy link
pytorch-bot bot commented Jan 13, 2025

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 20aba94 with merge base e6b9e67 (image):

UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:

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

H-Huang added a commit that referenced this pull request Jan 13, 2025
@pytorch-bot pytorch-bot bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Jan 13, 2025
@H-Huang H-Huang added the release notes: distributed (pipeline) release notes category label Jan 13, 2025
@H-Huang H-Huang requested review from kwen2501 and wconstab January 13, 2025 19:20
Copy link
Contributor
@kwen2501 kwen2501 left a comment

Choose a reason for hiding this comment

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

Okay to guard against a potential bug. (Is it in theory a restriction?)

@H-Huang
Copy link
Member Author
H-Huang commented Jan 14, 2025

@kwen2501, yeah this is just to guard against a bug. It should not be a restriction and if we move to a different runtime then we will allow it

@H-Huang
Copy link
Member Author
H-Huang commented Jan 14, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 14, 2025
@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
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@H-Huang
Copy link
Member Author
H-Huang commented Jan 15, 2025

@pytorchbot merge

@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

@cassanof
Copy link
Contributor

I think this is a regression as the bug was only in the 1F1B scheduler, GPipe worked with MB < PP. It's a pretty important feature for people training very big models on long context.

@github-actions github-actions bot deleted the gh/H-Huang/162/head branch February 21, 2025 02:05
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.

4 participants
0