-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve aggressive factor propagation strategy in Shardy. There are t…
…wo main differences from `BasicFactorPropagation`. ### Difference 1 `BasicFactorPropagation` propagates the same sharding axes to all the tensors along a factor. This strategy can propagate different sharding axes to different tensors. For example, Tensors T0, T1, T2 contains Factor F0. T0/F0 is already sharded along ["a", "b"], and "b" is already used by T2 ("b" can be explicitly replicated, or it is used to shard another factor). `BasicFactorPropagation` propagates ["a"] to both T1/F0 and T2/F0, while this strategy propagates ["a", "b"] to T1/F0 and ["a"] to T2/F0, respectively. ### Difference 2 `BasicFactorPropagation` is conservative in terms of conflicts across factors. The overlapped axis between factors cannot be propagated. This strategy is more aggressive by allowing the overlapped axis being propagated along different factors if there is no overlapped axis in the result shardings. PiperOrigin-RevId: 657641564
- Loading branch information
1 parent
838d1aa
commit 2eeee20
Showing
14 changed files
with
441 additions
and
386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.