Skip to content

vllm.model_executor.models.lfm2

Classes:

Lfm2ForCausalLM

Bases: Module, HasInnerState, SupportsLoRA, SupportsPP, IsHybrid, SupportsQuant

Methods:

get_mamba_state_shape_from_config(vllm_config) classmethod

Calculate shapes for LFM2's convolutional cache.

Parameters:

Returns:

_bidirectional_conv1d(x, weight, bias, positions, is_padding=None)

Same-padding depthwise convolution over packed, complete sequences.