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

If it is possible to use kv-cache for the auto-regressive inference? #176

Open
audreyeternal opened this issue Mar 3, 2025 · 1 comment

Comments

@audreyeternal
Copy link

Hi, I wonder if it is possible to use kv-cache for the auto-regressive inference?
For the moment it is super slow for the auto-regressive inference. When I want to use use_cache=True in model.generate() in app.py, there is always error showing that the attention_mask is none. Thank you!

@audreyeternal
Copy link
Author

#117

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