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 can we say matmul-free enables parallel computation? #43

Open
kimwin2 opened this issue Sep 24, 2024 · 1 comment
Open

How can we say matmul-free enables parallel computation? #43

kimwin2 opened this issue Sep 24, 2024 · 1 comment

Comments

@kimwin2
Copy link

kimwin2 commented Sep 24, 2024

I read your paper with great interest and I understand that you used GRU to eliminate the need for MatMul operations. However, I couldn't quite grasp how it enabled parallel computations. Could you please provide a more detailed explanation?

thanks in advanced.

@ridgerchu
Copy link
Owner

Hi, this is due to the nature of the parallel scan. You can find more details on that page. Mamba also utilizes this trick. In short, the modified formula satisfies the associative property, which can be easily parallelized.

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

2 participants