vllm.model_executor.layers.mamba.ops.ssd_checkpoint
¶
Functions:
-
store_prefill_checkpoint–Write each prefill row's mid-prefill checkpoint into its paged block.
store_prefill_checkpoint(checkpoint, chunk_idx, x, conv_state, chunk_states, ssm_state, query_start_loc)
¶
Write each prefill row's mid-prefill checkpoint into its paged block.
Rows without a checkpoint (offset 0) write nothing.
Parameters:
-
(checkpoint¶MambaPrefillCheckpointMetadata) –Per-row offsets and destination blocks.
-
(chunk_idx¶Tensor) –Per-row index into
chunk_statesof the checkpoint. -
(x¶Tensor) –Pre-conv activations,
(dim, num_prefill_tokens). -
(conv_state¶Tensor) –Paged conv state,
(num_blocks, dim, state_len). -
(chunk_states¶Tensor) –SSD states at every chunk end.
-
(ssm_state¶Tensor) –Paged SSM state.
-
(query_start_loc¶Tensor) –Prefill query start locations.