-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Speculative Decoding Snippet Not Working #29869
Comments
Gentle ping @sanchit-gandhi |
I believe the problem lies here: transformers/src/transformers/generation/candidate_generator.py Lines 119 to 129 in 73014b5
The check for if Happy to submit a PR for this. |
Thanks for reporting @hieunguyenquoc! A PR would be most welcome @jdvin if you have the bandwidth, otherwise cc @kamilakesbi if you could take a look |
This issue has been solved with PR #30637 :) |
System Info
transformers==4.39.1
python==3.8.17
torch==2.0.1+cpu
Who can help?
@sanchit-gandhi
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Expected behavior
I have tried Speculative Decoding on two version of PhoWhisper (Whisper finetuned version) followed by this post [https://huggingface.co/blog/whisper-speculative-decoding]. I have this error :
ValueError: Whisper expects the mel input features to be of length 3000, but found 1500. Make sure to pad the input mel features to 3000.
Could you help me ? Thank you @sanchit-gandhi
The text was updated successfully, but these errors were encountered: