vllm.model_executor.models.mamba2
¶
PyTorch MAMBA2 model.
Classes:
Mamba2ForCausalLM
¶
Bases: Module, HasInnerState, IsAttentionFree, SupportsMambaPrefixCaching
Methods:
-
get_mamba_state_shape_from_config–Calculate shapes for Mamba's convolutional and state caches.
get_mamba_state_shape_from_config(vllm_config)
classmethod
¶
Calculate shapes for Mamba's convolutional and state caches.
Parameters:
-
(vllm_config¶VllmConfig) –vLLM config
Returns: