Skip to content

Simplify fqns_to_feature_names in Delta Tracker #3081

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 2 commits into
base: main
Choose a base branch
from

Conversation

kausv
Copy link
Contributor

@kausv kausv commented Jun 11, 2025

Summary:
Each table in collection will have FQN. We can simplify the logic with this assumption to avoid two iterations.

Existing tests passed with this logic.

Differential Revision: D76432354

Summary:
Pull Request resolved: pytorch#3059

# This Diff
Added implementation for fqn_to_feature_names method along with initial testing framework and UTs for fqn_to_feature_names
# ModelDeltaTracker Context

ModelDeltaTracker is a utility for tracking and retrieving unique IDs and their corresponding embeddings or states from embedding modules in model using Torchrec. It's particularly useful for:

1. Identifying which embedding rows were accessed during model execution
2. Retrieving the latest delta or unique rows for a model
3. Computing top-k changed embeddings
4. Supporting streaming updated embeddings between systems during online training

Differential Revision: D75908963

Reviewed By: TroyGarden
@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 Jun 11, 2025
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

@kausv kausv force-pushed the export-D76432354 branch from 681d951 to f2ae0fb Compare June 11, 2025 17:16
kausv added a commit to kausv/torchrec that referenced this pull request Jun 11, 2025
Summary:
Pull Request resolved: pytorch#3081

Each table in collection will have FQN. We can simplify the logic with this assumption to avoid two iterations.

Existing tests passed with this logic.

Differential Revision: D76432354
Summary:
Pull Request resolved: pytorch#3081

Each table in collection will have FQN. We can simplify the logic with this assumption to avoid two iterations.

Existing tests passed with this logic.

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

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

@kausv kausv force-pushed the export-D76432354 branch from f2ae0fb to 158fb92 Compare June 11, 2025 17:24
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