-
Notifications
You must be signed in to change notification settings - Fork 86
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
each PipelineStage holds multiple submods #855
Conversation
pippy/PipelineStage.py
Outdated
self.name, self.submod = named_children[rank] | ||
self.name, self.submod = named_children[ | ||
rank * self.inner_depth | ||
] # submod = first inner node of each rank |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we move the comment to L91?
pippy/PipelineStage.py
Outdated
@@ -96,6 +113,14 @@ def __init__( | |||
if not found_node: | |||
raise AssertionError(f"Cannot find {self.name} in graph") | |||
|
|||
if self.inner_depth > 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe adding some comments?
pippy/PipelineStage.py
Outdated
@@ -112,10 +137,27 @@ def __init__( | |||
f"Cannot find backward for {self.name} in graph" | |||
) | |||
|
|||
if self.inner_depth > 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Description
if inner_depth > 1, each PipelineStage holds multiple submods
Fixes #(issue)
Feature/Issue validation/testing
No error occurs when internal depth == 1 (default case)
Checklist: