Skip to content

Modify torchrec code to use reduce_scatter_v and all_gather_v #580

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

Closed
wants to merge 1 commit into from

Conversation

aashaka
Copy link
Contributor

@aashaka aashaka commented Aug 17, 2022

Summary:
This change adds a new PooledEmbeddingsReduceScatterV which uses _reduce_scatter_v and _all_gather_v in c10d for performing row-wise and table-wise row-wise sharding.

Reviewed By: YazhiGao

Differential Revision: D37735264

…h#568)

Summary:
Pull Request resolved: pytorch#568

This change adds a new `PooledEmbeddingsReduceScatterV` which uses `_reduce_scatter_v` and `_all_gather_v` in c10d for performing row-wise and table-wise row-wise sharding.

Reviewed By: YazhiGao

Differential Revision: D37735264

fbshipit-source-id: 8b5b7830f180a757a42fa3db0cfbc33ec962ae92
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 17, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D37735264

@aashaka aashaka changed the title Modify torchrec code to use reduce_scatter_v and all_gather_v (#568) Modify torchrec code to use reduce_scatter_v and all_gather_v Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants