[XPU][Bugfix] Fix Qwen2-Audio ValueError on audio clips longer than 30s (#56912)

Signed-off-by: Jakub Byczkowski <jakub.byczkowski@intel.com>
Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Jakub Byczkowski
2026-09-16 16:54:02 +08:00
committed by GitHub
co-authored by Copilot Kunshang Ji
parent f37c550bf6
commit 35f6047c1a
@@ -253,6 +253,7 @@ class Qwen2AudioMultiModalProcessor(BaseMultiModalProcessor[Qwen2AudioProcessing
hf_processor_mm_kwargs = dict(
**hf_processor_mm_kwargs,
sampling_rate=feature_extractor.sampling_rate,
truncation=True,
)
return mm_data, hf_processor_mm_kwargs