Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PP] Add schedule visualizer#150347

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
H-Huang wants to merge3 commits intogh/H-Huang/174/basefromgh/H-Huang/174/head

Conversation

@H-Huang
Copy link
Member

@H-HuangH-Huang commentedMar 31, 2025
edited
Loading

Stack fromghstack (oldest at bottom):

Added a new private file (_schedule_visualizer.py) with some helper methods that can be used to visualize the operations of a schedule and plot with matplotlib.

InterleavedZeroBubble(pp_group=4, microbatches=8):
image

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

wconstab, kwen2501, and fegin reacted with heart emoji
[ghstack-poisoned]
@pytorch-botpytorch-botbot added the oncall: distributedAdd this issue/PR to distributed oncall triage queue labelMar 31, 2025
@pytorch-bot
Copy link

pytorch-botbot commentedMar 31, 2025
edited
Loading

🔗 Helpful Links

🧪 See artifacts and rendered test results athud.pytorch.org/pr/150347

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

❌ 1 New Failure, 2 Unrelated Failures

As of commitaad56b1 with merge base47cdad2 (image):

NEW FAILURE - The following job has failed:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was present on the merge base:

👉Rebase onto the `viable/strict` branch to avoid these failures

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

@H-HuangH-Huang added release notes: distributed (pipeline)release notes category module: pipeliningPipeline Parallelism labelsMar 31, 2025
@H-HuangH-Huang changed the titleAdd schedule visualizer[PP] Add schedule visualizerMar 31, 2025
Added a new private file (`_schedule_visualizer.py`) with some helper methods that can be used to visualize the operations of a schedule and plot with matplotlib.InterleavedZeroBubble(pp_group=4, microbatches=8):![image](https://github.com/user-attachments/assets/610ba9a8-7d18-4a99-bcad-6f43e5b23c8c)cc awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o[ghstack-poisoned]
H-Huang added a commit that referenced this pull requestMar 31, 2025
ghstack-source-id:73df7a5Pull Requestresolved:#150347
Copy link
Collaborator

@kwen2501kwen2501 left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you!

Comment on lines 173 to 176
if __name__ == "__main__":
# Example usage:
ops = get_schedule_ops("InterleavedZeroBubble", 4, 8)
visualize_schedule(ops, "test.png")
Copy link
Collaborator

@kwen2501kwen2501Apr 14, 2025
edited
Loading

Choose a reason for hiding this comment

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

Maybe we can write the example in comment format rather than under__main__ ?

H-Huang reacted with thumbs up emoji
Comment on lines +21 to +26
def get_schedule_ops(
schedule: Union[str, _PipelineSchedule],
pp_degree: int,
num_microbatches: int,
num_stages_per_rank: Optional[int] = None,
) -> list[list[Optional[_Action]]]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a short comment to this function? thanks!

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

will add, thanks

Comment on lines +92 to +94
def visualize_schedule(
schedule: list[list[Optional[_Action]]], filename: Optional[str] = None
) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

will do

Added a new private file (`_schedule_visualizer.py`) with some helper methods that can be used to visualize the operations of a schedule and plot with matplotlib.InterleavedZeroBubble(pp_group=4, microbatches=8):![image](https://github.com/user-attachments/assets/610ba9a8-7d18-4a99-bcad-6f43e5b23c8c)cc awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o[ghstack-poisoned]
@H-Huang
Copy link
MemberAuthor

@pytorchbot merge

pytorch-bot[bot] reacted with thumbs up emoji

@pytorch-botpytorch-botbot added the ciflow/trunkTrigger trunk jobs on your pull request labelApr 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 thewiki.

Questions? Feedback? Please reach out to thePyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 mandatory check(s) failed. The first few are:

Dig deeper byviewing the failures on hud

Details for Dev Infra teamRaised byworkflow job

Failing merge rule: Core Maintainers

@H-Huang
Copy link
MemberAuthor

@pytorchbot merge -i

pytorch-bot[bot] reacted with thumbs up emoji

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 3 checks:pull / unstable-linux-focal-cuda12.6-py3.10-gcc11-sm89-xfail / build,pull / cuda12.4-py3.10-gcc9-sm75 / test (pr_time_benchmarks, 1, 1, linux.g4dn.metal.nvidia.gpu),trunk / macos-py3-arm64-mps / test (mps, 1, 1, macos-m2-15)

Learn more about merging in thewiki.

Questions? Feedback? Please reach out to thePyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

timocafe pushed a commit to timocafe/pytorch that referenced this pull requestApr 16, 2025
Added a new private file (`_schedule_visualizer.py`) with some helper methods that can be used to visualize the operations of a schedule and plot with matplotlib.InterleavedZeroBubble(pp_group=4, microbatches=8):![image](https://github.com/user-attachments/assets/610ba9a8-7d18-4a99-bcad-6f43e5b23c8c)Pull Requestresolved:pytorch#150347Approved by:https://github.com/kwen2501
amathewc pushed a commit to amathewc/pytorch that referenced this pull requestApr 17, 2025
Added a new private file (`_schedule_visualizer.py`) with some helper methods that can be used to visualize the operations of a schedule and plot with matplotlib.InterleavedZeroBubble(pp_group=4, microbatches=8):![image](https://github.com/user-attachments/assets/610ba9a8-7d18-4a99-bcad-6f43e5b23c8c)Pull Requestresolved:pytorch#150347Approved by:https://github.com/kwen2501
Divigroup-RAP pushed a commit to Divigroup-RAP/PYTORCH that referenced this pull requestApr 22, 2025
ghstack-source-id:4027b46Pull Requestresolved:pytorch/pytorch#150347
@github-actionsgithub-actionsbot deleted the gh/H-Huang/174/head branchMay 15, 2025 02:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kwen2501kwen2501kwen2501 approved these changes

@wconstabwconstabAwaiting requested review from wconstab

Assignees

No one assigned

Labels

ciflow/trunkTrigger trunk jobs on your pull requestMergedmodule: pipeliningPipeline Parallelismoncall: distributedAdd this issue/PR to distributed oncall triage queuerelease notes: distributed (pipeline)release notes category

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@H-Huang@pytorchmergebot@kwen2501

[8]ページ先頭

©2009-2025 Movatter.jp