-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[autoparallel] Add pofo sequence annotation #1637
[autoparallel] Add pofo sequence annotation #1637
Conversation
Merge ColossalAI
Daily merge
@@ -157,7 +157,7 @@ def _find_offload_regions(nodes: List[Node]): | |||
current_region = None | |||
|
|||
for idx, node in enumerate(nodes): | |||
if hasattr(node, 'activation_offload') and isinstance(getattr(node, 'activation_offload', False), tuple): | |||
if hasattr(node, 'activation_offload') and isinstance(getattr(node, 'activation_offload', False), list): |
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.
isinstance(getattr(node, 'activation_offload', False), list)
seems weird to me, it seems that getattr
will return a boolean value, but it is checking isinstance for the type list.
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.
Yes the default should be None.
BTW, I change this from tuple to list to simplify the annotation.
What's New?
Previously I add pofo solver in #1608, and in this PR I finish annotate graph module with pofo sequence, with the help of PR #1618 , finishing the complete pipeline of pofo solver.
The following is a brief summary of our rotor/pofo solver pipeline:
MetaInfoProp
tool by @super-dainiu to get all the meta information in the graph.linearize
module.later I will plot some results here.