-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Generation with HybridCache fails (affecting Gemma-2) #31664
Comments
Thanks for fixing! |
transformer version: 4.42.3
|
The cache should never be used when training ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
transformers
version: 4.43.0.dev0Who can help?
@sanchit-gandhi
Reproduction
Generation of Gemma-2 currently fails on
main
, e.g. with the following toy codesnippet:Traceback:
Expected behavior
This is fixed by by handling the exception in generate (PR #31661).
cc @ArthurZucker
The text was updated successfully, but these errors were encountered: