Skip to content

how to freeze embedding #2908

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
threestone965 opened this issue Apr 23, 2025 · 0 comments
Open

how to freeze embedding #2908

threestone965 opened this issue Apr 23, 2025 · 0 comments

Comments

@threestone965
Copy link

threestone965 commented Apr 23, 2025

i want to freeze EmbeddingCollection mid training, but setting the learning rate to 0.0 does not save cuda memory and computing resources. is there a method similar to the following code. looking forward to your reply, thanks

for param in module.parameters():
        param.requires_grad = False
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