Fix qwen2 audio not working bug (#8600)

This commit is contained in:
Binyao Jiang
2025-08-09 00:42:29 -07:00
committed by GitHub
parent d3e67deb1b
commit 7b81f956eb
4 changed files with 59 additions and 12 deletions

View File

@@ -614,8 +614,7 @@ def general_mm_embed_routine(
input_ids: Input token IDs tensor
forward_batch: Batch information for model forward pass
language_model: Base language model to use
image_data_embedding_func: Function to embed image data
audio_data_embedding_func: Function to embed audio data
data_embedding_funcs: A dictionary mapping from modality type to the corresponding embedding function.
placeholder_tokens: Token IDs for multimodal placeholders
**kwargs: Additional arguments passed to language model