vllm.model_executor.layers.mamba.ops.replayssm_config ¶
Launch-config selection for the ReplaySSM Mamba2 output_only decode kernel.
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–Return the launch config for
kernel(override > tuned default). -
override_replayssm_config–Pin
kernel's launch config for the duration of the context.
get_replayssm_config(kernel, **shape) ¶
Return the launch config for kernel (override > tuned default).
kernel: "mamba2_output_only". shape carries the keying dims (dstate; L for the buffer length, default 16); hardware is auto-detected.
Source code in vllm/model_executor/layers/mamba/ops/replayssm_config.py
override_replayssm_config(kernel, config) ¶
Pin kernel's launch config for the duration of the context.