-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Pipeline's "num_return_sequences" > greater than 1 causes a runtime error with Gemma-2-9B. #31965
Comments
hey! Could you share a reproducer as well as the output of |
Hello @ArthurZucker, |
thanks, would you mind copy pasting the code and not a screenshot? 🤗 |
Sure, here it is.
|
Same issue was also reported on the model community on HF https://huggingface.co/google/gemma-2-27b-it/discussions/28 |
I think it comes down to the "cache_implementation" of gemma 2, which is of type "hybrid". Maybe this can be fixed by changing line 1767 in generation/utils.py
|
System Info
transformers
version: 4.43.0.dev0Who can help?
@ArthurZucker @Narsil
Reproduction
Expected behavior
The text was updated successfully, but these errors were encountered: