Skip to content

Conversation

@ahmad-573
Copy link

This pull request adds a new function to the mamba_ssm/ops/selective_scan_interface.py file that enables initialization of the hidden state for the selective scan operation. This enhancement allows users to specify an initial hidden state, improving flexibility and potential use cases for the selective scan kernel.

New functionality for hidden state initialization:

  • Added the select_scan_fn_init_hidden function, which allows users to initialize the hidden state in the selective scan operation by transforming B and applying a kernel method with minimal memory and time overhead.

…inimising memory and time overhead and without modifying the cuda kernel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant