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

Add get_ids to GradStore (Discussion #2377) #2379

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

spaghetti-source
Copy link
Contributor

Discussion in #2377

This PR adds get_ids function to GradStore that returns the list of TensorId in the store. It can be used to implement optimizers that only update relevant variables stored in the store. The typical use case is the word2vec model, which has many embeddings for the words but updates only a few in each iteration.

@LaurentMazare LaurentMazare merged commit ce90287 into huggingface:main Aug 1, 2024
10 checks passed
@LaurentMazare
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants