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

Disable return all hidden states to reduce gpu memory use #173

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

Conversation

heya5
Copy link

@heya5 heya5 commented Dec 26, 2024

I found that using default parameters for inference resulted in abnormally high GPU memory usage. To fix this problem, I added a parameter return_hidden_states = False to control whether to return all hidden states by default.

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