vllm.model_executor.models.lfm3_audio
¶
Inference-only LFM3-Audio model: speech in, text out.
The speech output head (codebook embedding, depth decoder) is not served and its weights are skipped on load.
Classes:
-
Lfm3AudioDownsampler–Three stride-2 convolutions over the (mel, time) plane: 128 mel bins and
-
Lfm3AudioEmbeddingInputs–Dimensions:
-
Lfm3AudioFeatureInputs–Dimensions:
Functions:
-
split_audio_features–Keeps each clip's own frames: the features are padded to the longest clip
Lfm3AudioDownsampler
¶
Bases: Module
Three stride-2 convolutions over the (mel, time) plane: 128 mel bins and 8 frames become one vector.
Source code in vllm/model_executor/models/lfm3_audio.py
Lfm3AudioEmbeddingInputs
¶
Bases: TensorSchema
Dimensions: - na: Number of audios - nt: Number of audio tokens - hs: Hidden size of the language model
Source code in vllm/model_executor/models/lfm3_audio.py
Lfm3AudioFeatureInputs
¶
Bases: TensorSchema
Dimensions: - na: Number of audios - nmb: Number of mel bins - nf: Number of spectrogram frames
Source code in vllm/model_executor/models/lfm3_audio.py
split_audio_features(processed_data)
¶
Keeps each clip's own frames: the features are padded to the longest clip of the call, so cached and freshly processed items would differ.