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

Remove storing gradient of freezed language model parameter #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

floatingbigcat
Copy link

Language model params except adapter won't be updated, therefore we shouldn't store their gradient. Too much uncessary GPU usage when using large LM model.
This test shows All params of language model requires grad

@floatingbigcat floatingbigcat changed the title fix freeze language parameter Remove storing gradient of freezed language parameter Mar 28, 2023
@floatingbigcat floatingbigcat changed the title Remove storing gradient of freezed language parameter Remove storing gradient of freezed language model parameter Mar 28, 2023
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.

1 participant