transformers
64b6595f - [Whisper] Fix batch decode_with_timestamps in WhisperTokenizer.decode() (#47997)

Commit
2 days ago
[Whisper] Fix batch decode_with_timestamps in WhisperTokenizer.decode() (#47997) [Whisper] Fix batch decode_with_timestamps handling in WhisperTokenizer.decode() PR #40936 (05c0e1d390) made batch_decode delegate to decode() natively, passing a 2D list of token ids. The decode_with_timestamps branch was not updated to handle batched input, causing TypeError when >= compared a list to an int. Add the same isinstance check already present in the else branch. Fixes test_whisper_longform_single_batch (first failing in CI on 2025-11-28, introduced by PR #40936 on 2025-11-27). Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Author
Parents
Loading