Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reduce the number of Mamba operations in each block? #606

Open
xiaosa269 opened this issue Oct 25, 2024 · 0 comments
Open

How to reduce the number of Mamba operations in each block? #606

xiaosa269 opened this issue Oct 25, 2024 · 0 comments

Comments

@xiaosa269
Copy link

Hello, thank you very much for your work. In my network, I need to use multiple Mamba1 blocks, which makes the network quite large and slows down training. Could you advise on how to reduce the number of Mamba operations in each block?

I called the Mamba1 method by directly using the provided integrated block:
model = Mamba(
# This module uses roughly 3 * expand * d_model^2 parameters
d_model=dim, # Model dimension d_model
d_state=16, # SSM state expansion factor
d_conv=4, # Local convolution width
expand=2, # Block expansion factor
)
Thanks!

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

No branches or pull requests

1 participant