We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found Mamba2 is much faster than full self-attention block. But I met a memory problem.
I used 12 layers of Mamba2 in the vision task. d_model=128, d_state=16, head_dim = 32, expand = 2.
d_model=128, d_state=16, head_dim = 32, expand = 2.
I found the inner dimension of the middle layer is > d_model while the inner_dim in my self-attention block is equal to d_model.
> d_model
How to reduce the inner dimension to have a similar or smaller memory cost than full self-attention?
The text was updated successfully, but these errors were encountered:
Have you tried reducing the expansion_ratio?
Sorry, something went wrong.
No branches or pull requests
I found Mamba2 is much faster than full self-attention block. But I met a memory problem.
I used 12 layers of Mamba2 in the vision task.
d_model=128, d_state=16, head_dim = 32, expand = 2.
I found the inner dimension of the middle layer is
> d_model
while the inner_dim in my self-attention block is equal to d_model.How to reduce the inner dimension to have a similar or smaller memory cost than full self-attention?
The text was updated successfully, but these errors were encountered: