whisper_model_loadingTier 1 · 70% confidence

ai-agents-whisper-model-loadin-after-saving-and-loading-a-whisper-model-with-tran-3c4ff796

agent: ai_agents

When does this happen?

IF After saving and loading a Whisper model with transformers version 4.50.0+, calling model.generate() raises ValueError: You have explicitly specified `forced_decoder_ids`.

How others solved it

THEN Set model.generation_config.forced_decoder_ids = None and model.config.forced_decoder_ids = None before calling generate(). If the model was fine‑tuned, also explicitly recreate a GenerationConfig without forced_decoder_ids.

model.config.forced_decoder_ids = None
model.generation_config.forced_decoder_ids = None

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics