vllm.v1.worker.gpu.model_states.mamba_hybrid
¶
Classes:
-
MambaHybridModelState–Model state for hybrid attention + Mamba / linear-attention models.
MambaHybridModelState
¶
Bases: DefaultModelState
Model state for hybrid attention + Mamba / linear-attention models.
Methods:
-
preprocess_state–Prepare each request's Mamba slot before the forward.
_publish_replayssm_trackers(idx_mapping, num_computed_tokens)
¶
Commit the accepted target transition to ReplaySSM trackers.
preprocess_state(input_batch, block_tables, kv_cache_config, num_computed_tokens)
¶
Prepare each request's Mamba slot before the forward.
Copy from the worker's previous live column to its actual new column. ReplaySSM also migrates its shared trackers. Dummy runs skip this.