Skip to content

Conversation

@YLGH
Copy link
Contributor

@YLGH YLGH commented Aug 1, 2022

Summary:
Since we no longer rely on DistributedModelParallel (for composability piece), we need an alternative way of getting the fused optimizer.
get_fused_optimizer implements this, logically it's the same as the recursive call in DMP

Differential Revision: D37505229

YLGH added 3 commits August 1, 2022 13:41
Summary: Experimental API for now

Differential Revision: https://www.internalfb.com/diff/D38190544?entry_point=27

fbshipit-source-id: 350c00202a4da2516e927539ca445acf5e5493ff
Summary:
Replaces the nn.Module APIs in ShardedEmbeddingBagCollection, and replaces it with the torch.nn.Module() representation as proposed in

meta-pytorch#528

We're putting these modules/tests in a new modular_* path as per https://docs.google.com/document/d/15r5XxMTeVC90kA0u8t006-KLLeh9MZmL9DqX_F4VLxU/edit#

We also enforce the separation of sharding and compute_kernel/fused_params at the sharder level (but still keeping it at the ShardedEmbeddingBagcollection for simplicity)

A couple of differences:
1. named_parameters() returns ShardedTensors
2. data_parallel tensors have DDP wrapped around the tables

Differential Revision: https://www.internalfb.com/diff/D38190302?entry_point=27

fbshipit-source-id: 7060968324dd9024676d66e7d233c5005f5ac915
Summary:
Since we no longer rely on DistributedModelParallel (for composability piece), we need an alternative way of getting the fused optimizer.
get_fused_optimizer implements this, logically it's the same as the recursive call in DMP

Differential Revision: D37505229

fbshipit-source-id: a158eaba34638130e7a312aeda620c4fc7382d0c
@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 1, 2022
@facebook-github-bot
Copy link
Contributor

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

@TroyGarden TroyGarden closed this Jun 20, 2025
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.

3 participants