vllm.model_executor.models.funasr ¶
FunASRAudioInputs ¶
Bases: TensorSchema
Dimensions
- b: Batch size
- nmb: Number of mel bins
- t: Time frames (M)
Source code in vllm/model_executor/models/funasr.py
FunASREncoder ¶
Bases: Module
Source code in vllm/model_executor/models/funasr.py
load_weights ¶
Load weights with mapping from HuggingFace format.
Source code in vllm/model_executor/models/funasr.py
_create_fake_bias_for_k_proj ¶
_create_fake_bias_for_k_proj(
weights: Iterable[tuple[str, Tensor]],
) -> Iterable[tuple[str, Tensor]]
Create full zeros bias for k_proj weight in self-attn and x-attn layers. So that the bias for k_proj in qkv_proj can be initialized with zeros.