Skip to content

vllm.model_executor.layers.mamba.ops.replayssm_config

Launch-config selection for the ReplaySSM decode kernels (Mamba2 output_only and GDN).

Mirrors mamba_ssm.py: a hard-coded heuristic per kernel, plus an override context manager for benchmarks/tests/config sweeps. Hardware is auto-detected (Blackwell vs not) so call sites need not thread it through.

Functions:

get_replayssm_config(kernel, **shape)

Return the launch config for kernel (override > tuned default).

kernel: "mamba2_output_only" or "gdn_decode". shape carries the keying dims (dstate; L for the buffer length, default 16); hardware is auto-detected.