Skip to content

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:

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.

Lfm3AudioEmbeddingInputs

Bases: TensorSchema

Dimensions: - na: Number of audios - nt: Number of audio tokens - hs: Hidden size of the language model

Lfm3AudioFeatureInputs

Bases: TensorSchema

Dimensions: - na: Number of audios - nmb: Number of mel bins - nf: Number of spectrogram frames

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.