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

Adding scale_grad_by_freq option to torchrec embedding #1537

Open
fangleigit opened this issue Nov 22, 2023 · 0 comments
Open

Adding scale_grad_by_freq option to torchrec embedding #1537

fangleigit opened this issue Nov 22, 2023 · 0 comments

Comments

@fangleigit
Copy link

In pytorch embedding module, it has scale_grad_by_freq option, to scale gradients by the inverse of frequency of the words in the mini-batch. I am thinking if this is also doable in torchrec, The motivation is that in RecSys or CTR prediction, the embedding table could be very sparse, thus the learning rate for those sparse entries should be larger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant