-
Notifications
You must be signed in to change notification settings - Fork 28.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
Some Whisper beam search output (sequences_scores, etc.) is lost in _stack_split_outputs #32373
Comments
(cc @sanchit-gandhi / @kamilakesbi , as this is a Whisper-specific question -- I've double-checked that the core |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
cc @eustlb, another issue for your Whisper fixes 🙏 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Hey @eustlb , saw your constant struggle to keep this issue open and from going stale . I felt like it was about time we closed this issue so worked on it a little bit and came up with #35921 . feel free to review it when you get the time . I'll eagerly await any comments that you might point out to me to resolve them as soon as possible . Also huge thanks to @drewhouston for opening this issue 🤗 |
Hey, indeed this has been stagnating my TODOs. Thanks for tackling it, I'll review it ASAP! |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
transformers
version: 4.43.3Who can help?
@sanchit-gandhi @kamilakesbi
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
In generating short form output (<30 sec):
Expected behavior
GenerateBeamEncoderDecoderOutput
seems to lose some fields in a recent version. (Maybe other output forms are also affected, haven't checked.)Bisecting transformers versions, in 4.42.4 the output looked like:
In 4.43.0 and after
sequences_scores
andbeam_indices
becameNone
:It looks like these get removed in postprocessing, potential culprit in
_stack_split_outputs
attransformers/src/transformers/models/whisper/generation_whisper.py
Line 946 in 9451a38
Which looks like it changed in #30984.
Hacking in
if key in ["sequences", "beam_indices", "sequences_scores"]:
, for example, fixes it, although I'm not sure what's intended to be handled as tensors vs. tuples, so will defer as to the best way to fix.The text was updated successfully, but these errors were encountered: