Skip to content
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

Merged
merged 37 commits into from
Sep 23, 2022

Conversation

Cypher30
Copy link
Contributor

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:

  1. Using excellent MetaInfoProp tool by @super-dainiu to get all the meta information in the graph.
  2. Linearize the graph with linearize module.
  3. Construct chain with linearized nodes and meta informations.
  4. Feed the chain into rotor/pofo sovler
  5. Annotate graph with the solved sequence
  6. codegen and run

later I will plot some results here.

Cypher30 and others added 30 commits July 14, 2022 16:07
@@ -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):
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@Cypher30 Cypher30 merged commit f921733 into hpcaitech:main Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants