[Whisper] handle deprecation of forced_decoder_ids (#38232)

* fix

* working saved forced_decoder_ids

* docstring

* add deprecation message

* exception message ordering

* circular import comment
This commit is contained in:
Joao Gante
2025-05-22 10:16:38 +01:00
committed by GitHub
parent aa02a5d902
commit f8630c778c
5 changed files with 73 additions and 78 deletions

View File

@@ -95,7 +95,7 @@ transcription[0]
## Notes
- Whisper relies on [`~GenerationMixin.generate`] for inference.
- Whisper relies a custom [`generate`] for inference, make sure to check the docs below.
- The [`WhisperProcessor`] can be used for preparing audio and decoding predicted ids back into text.
## WhisperConfig