分类: AI 工具排错

ValueError: The following `model_kwargs` are not used by the model: [‘condition_on_prev_tokens’, ‘logprob_threshold’, ‘compression_ratio_threshold’] (note: typos in the generate arguments will

ValueError: The following `model_kwargs` are not used by the model: ['condition_on_prev_tokens', 'logprob_threshold', 'compression_ratio_threshold'] (note: typos in the generate arguments will

这个报错通常发生在使用 Transformers 的 Whisper 模型进行批处理推理时,输入音频小于 30 秒但未按 Whisper 的固定输入长度要求进行填充或截断。优先排查特征提取器(Feature Extractor)是否在短音频场景下正确设置了 padding 和 truncation