vllm.model_executor.models.whisper_causal
¶
Classes:
-
WhisperCausalAttentionWithBlockPooling–Attention layer with block pooling.
_pad1d(x, paddings, mode='constant', value=0.0)
¶
Tiny wrapper around F.pad, just to allow for reflect padding on small input. If this is the case, we insert extra 0 padding to the right before the reflection happen.