Skip to content

vllm.model_executor.layers.mamba.ops.gather_initial_states

Functions:

gather_initial_states(state, indices, has_initial_state, dtype=None)

Gather dense state rows, replacing uninitialized rows with zeros.

The rows are cast to dtype when given (default: the state dtype).