Skip to content
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

Proportional Uneven Inference Sharding #2734

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

Conversation

kausv
Copy link
Contributor

@kausv kausv commented Feb 7, 2025

Summary:
Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

Differential Revision: D69057627

@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 Feb 7, 2025
@facebook-github-bot
Copy link
Contributor

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

kausv added a commit to kausv/torchrec that referenced this pull request Feb 10, 2025
Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

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

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

kausv added a commit to kausv/torchrec that referenced this pull request Feb 13, 2025
Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

* Added bucketization awareness to RW sharding,
* TGIF sharding now ensures at most 1 bucket difference across equal memory uneven shards as opposed to previous logic of remainder rows to last shard
* InferRWSparseDist checks for customized embedding_shard_metadata for uneven shards before dividing evenly

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

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

kausv added a commit to kausv/torchrec that referenced this pull request Feb 13, 2025
Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

* Added bucketization awareness to RW sharding,
* TGIF sharding now ensures at most 1 bucket difference across equal memory uneven shards as opposed to previous logic of remainder rows to last shard
* InferRWSparseDist checks for customized embedding_shard_metadata for uneven shards before dividing evenly

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

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

kausv added a commit to kausv/torchrec that referenced this pull request Feb 13, 2025
Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

* Added bucketization awareness to RW sharding,
* TGIF sharding now ensures at most 1 bucket difference across equal memory uneven shards as opposed to previous logic of remainder rows to last shard
* InferRWSparseDist checks for customized embedding_shard_metadata for uneven shards before dividing evenly

Differential Revision: D69057627
kausv added a commit to kausv/torchrec that referenced this pull request Feb 13, 2025
Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

* Added bucketization awareness to RW sharding,
* TGIF sharding now ensures at most 1 bucket difference across equal memory uneven shards as opposed to previous logic of remainder rows to last shard
* InferRWSparseDist checks for customized embedding_shard_metadata for uneven shards before dividing evenly

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

kausv added a commit to kausv/torchrec that referenced this pull request Feb 14, 2025
Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

* Added bucketization awareness to RW sharding,
* TGIF sharding now ensures at most 1 bucket difference across equal memory uneven shards as opposed to previous logic of remainder rows to last shard
* InferRWSparseDist checks for customized embedding_shard_metadata for uneven shards before dividing evenly

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

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

kausv added a commit to kausv/torchrec that referenced this pull request Feb 14, 2025
Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

* Added bucketization awareness to RW sharding,
* TGIF sharding now ensures at most 1 bucket difference across equal memory uneven shards as opposed to previous logic of remainder rows to last shard
* InferRWSparseDist checks for customized embedding_shard_metadata for uneven shards before dividing evenly

Reviewed By: dstaay-fb, emlin

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

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

Summary:

Support bucketization aware inference sharding in TGIF for ZCH bucket boundaries from training.
A "best effort" sharding is performed across bucket boundaries proportional to memory list.

* Added bucketization awareness to RW sharding,
* TGIF sharding now ensures at most 1 bucket difference across equal memory uneven shards as opposed to previous logic of remainder rows to last shard
* InferRWSparseDist checks for customized embedding_shard_metadata for uneven shards before dividing evenly

Reviewed By: dstaay-fb, emlin

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

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

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