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

[tensor] shape consistency generate transform path and communication cost #1435

Conversation

YuliangLiu0306
Copy link
Contributor

In #1418 PR, I add ShapeConsistencyManager into colossalai to support auto parallel strategy search and runtime sharding spec apply. This PR complete the auto parallel strategy search supporting part, mainly do following things:

  1. build a difference function for DimSpec and ShardingSpec based on 2D device mesh.
  2. Build a CommSpec class to record the communication operation during the transform, and use it to compute communication cost.
  3. Complete shape_consistency function development, which could generate transform path, communication action sequence and total transform cost for a given source spec and target spec pairs.
  4. Build a solved spec pair cache to reduce the runtime searching time.

Note: The apply function is not completed, it may use the CommSpec convert_spec_to_action function and some collective commucation implementation in colossalai.

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.

2 participants