-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support weighted_bwd_compute_multiplier in sharding estimators (#2068)
Summary: # Context This diff stack is a quick mitigation for sharding imbalance on weighted features. TorchRec sharding planner focus more on forward cost. e.g., it isn’t aware difference like: - for the unweighted lookups, backward kernel is, say, 2x of forward kernel. - but for the weighted lookups, backward kernel may be 4x of forward kernel. See https://docs.google.com/document/d/1o-lB6veGVIZFO148ljSuhVr8sA9fm2EGwOfhX6TSdrg/edit?usp=sharing for the context # This Diff - Enable shard estimator to include weighted_feature_bwd_compute_multiplier when compute bwd cost for weighted feature Pull Request resolved: #2068 Reviewed By: xush6528, sarckk Differential Revision: D53550851 fbshipit-source-id: bd14c9b8dc01d47802741978288a002cc58e85ee
- Loading branch information
1 parent
da49f44
commit 8393202
Showing
4 changed files
with
118 additions
and
1 deletion.
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
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