Skip to content

Support DI sharding for FPE_EBC #2968

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hannaxu
Copy link

@hannaxu hannaxu commented May 13, 2025

Summary:
Support models that have FeatureProcessedEmbeddingBagCollection.

These changes make sure we add QuantFeatureProcessedEmbeddingBagCollectionSharder as a recognized sharder, handle multiple envs needed for specifying DI sharding, and propagate TBE properly when processing the sharding plan.

Differential Revision: D74671655

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 13, 2025
@facebook-github-bot
Copy link
Contributor

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

@hannaxu hannaxu force-pushed the export-D74671655 branch from 704be8d to 3939474 Compare May 27, 2025 12:42
hannaxu pushed a commit to hannaxu/torchrec that referenced this pull request May 27, 2025
Summary:

Support models that have FeatureProcessedEmbeddingBagCollection.

These changes make sure we add QuantFeatureProcessedEmbeddingBagCollectionSharder as a recognized sharder, handle multiple envs needed for specifying DI sharding, and propagate TBE properly when processing the sharding plan.

This doesn't support true hybrid sharding yet, so FPE_EBCs must be all sharded with the same (sharding_type, device).

Differential Revision: D74671655
@facebook-github-bot
Copy link
Contributor

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

@hannaxu hannaxu force-pushed the export-D74671655 branch from 3939474 to 0ec68e2 Compare June 3, 2025 15:06
hannaxu pushed a commit to hannaxu/torchrec that referenced this pull request Jun 3, 2025
Summary:

Support models that have FeatureProcessedEmbeddingBagCollection to be DI sharded. However, conservatively enforce that FPE itself can only be sharded on HBM and not across CPU as well.

These changes make sure we add QuantFeatureProcessedEmbeddingBagCollectionSharder as a recognized sharder, handle multiple envs needed for specifying DI sharding, and propagate TBE properly when processing the sharding plan.

This doesn't support true hybrid sharding for FPE.

Differential Revision: D74671655
@facebook-github-bot
Copy link
Contributor

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

@hannaxu hannaxu force-pushed the export-D74671655 branch from 0ec68e2 to a1ace56 Compare June 4, 2025 14:25
hannaxu pushed a commit to hannaxu/torchrec that referenced this pull request Jun 4, 2025
Summary:

Support models that have FeatureProcessedEmbeddingBagCollection to be DI sharded. However, conservatively enforce that FPE itself can only be sharded on HBM and not across CPU as well.

These changes make sure we add QuantFeatureProcessedEmbeddingBagCollectionSharder as a recognized sharder, handle multiple envs needed for specifying DI sharding, and propagate TBE properly when processing the sharding plan.

This doesn't support true hybrid sharding for FPE.

Differential Revision: D74671655
@facebook-github-bot
Copy link
Contributor

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

hannaxu pushed a commit to hannaxu/torchrec that referenced this pull request Jun 4, 2025
Summary:

Support models that have FeatureProcessedEmbeddingBagCollection to be DI sharded. However, conservatively enforce that FPE itself can only be sharded on HBM and not across CPU as well.

These changes make sure we add QuantFeatureProcessedEmbeddingBagCollectionSharder as a recognized sharder, handle multiple envs needed for specifying DI sharding, and propagate TBE properly when processing the sharding plan.

This doesn't support true hybrid sharding for FPE.

Differential Revision: D74671655
@hannaxu hannaxu force-pushed the export-D74671655 branch from a1ace56 to b3406e1 Compare June 4, 2025 18:47
@facebook-github-bot
Copy link
Contributor

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

@hannaxu hannaxu force-pushed the export-D74671655 branch from b3406e1 to f4b70a0 Compare June 4, 2025 18:50
hannaxu pushed a commit to hannaxu/torchrec that referenced this pull request Jun 4, 2025
Summary:
Pull Request resolved: pytorch#2968

Support models that have FeatureProcessedEmbeddingBagCollection to be DI sharded. However, conservatively enforce that FPE itself can only be sharded on HBM and not across CPU as well.

These changes make sure we add QuantFeatureProcessedEmbeddingBagCollectionSharder as a recognized sharder, handle multiple envs needed for specifying DI sharding, and propagate TBE properly when processing the sharding plan.

This doesn't support true hybrid sharding for FPE.

Differential Revision: D74671655
Summary:

Support models that have FeatureProcessedEmbeddingBagCollection to be DI sharded. However, conservatively enforce that FPE itself can only be sharded on HBM and not across CPU as well.

These changes make sure we add QuantFeatureProcessedEmbeddingBagCollectionSharder as a recognized sharder, handle multiple envs needed for specifying DI sharding, and propagate TBE properly when processing the sharding plan.

This doesn't support true hybrid sharding for FPE.

Differential Revision: D74671655
@hannaxu hannaxu force-pushed the export-D74671655 branch from f4b70a0 to 527d6cf Compare June 6, 2025 15:19
@facebook-github-bot
Copy link
Contributor

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

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