You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
(cc @sanchit-gandhi / @kamilakesbi , as this is a Whisper-specific question -- I've double-checked that the core generate is returning these additional outputs :) )
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.
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: