vllm.model_executor.models.funaudiochat
¶
Inference-only FunAudioChat model compatible with HuggingFace weights.
FunAudioChat is a Qwen3 text model augmented with
- a continuous audio encoder (Whisper-mel frontend + transformer)
- a discrete audio encoder (speech tokenizer + projector)
In the HF implementation, audio features are scattered into <|AUDIO|> token
positions via inputs_embeds, while position_ids (RoPE) remains standard 1D.
Classes:
-
FunAudioChatAudioAttention–Multi-headed attention used inside the continuous audio tower.
-
FunAudioChatAudioEncoder–Continuous audio tower.
-
FunAudioChatDiscreteEncoder–Discrete audio encoder (speech tokenizer -> grouped embeddings).
-
FunAudioChatProcessingInfo–
FunAudioChatAudioAttention
¶
FunAudioChatDiscreteEncoder
¶
FunAudioChatProcessingInfo
¶
Bases: BaseProcessingInfo
Methods:
-
get_max_audio_samples–Waveform samples that fill the profiled per-item speech-frame budget.
-
get_max_speech_frames–Maximum 25 Hz speech frames admitted for one audio item.
-
validate_waveform_budget–Check fixed preprocessing costs and any available source waveforms.
get_max_audio_samples(sampling_rate)
¶
Waveform samples that fill the profiled per-item speech-frame budget.
get_max_speech_frames()
¶
Maximum 25 Hz speech frames admitted for one audio item.
The discrete encoder emits max_source_positions replacement tokens
after grouping frames by group_size (1500 * 5 = 7500 frames, 300s).
validate_waveform_budget(num_items, *, audio_items=None)
¶
Check fixed preprocessing costs and any available source waveforms.