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

linear scan or associative scan #6

Open
encounter1997 opened this issue Mar 26, 2024 · 1 comment
Open

linear scan or associative scan #6

encounter1997 opened this issue Mar 26, 2024 · 1 comment

Comments

@encounter1997
Copy link

Hi, thanks for the clean implementation of the Griffin model!

I have some questions about the scan operation in the Hawk model. The current implementation uses accelerated_scan which performs the associative scan.

However, as discussed in Sec. D in the Appendix of the Griffin paper, linear scan runs much faster than associative scan.

I wonder do you have any plans to implement the Hawk model using linear scan?

image

@proger
Copy link
Owner

proger commented Apr 3, 2024

Hi Wen! I believe this claim is specific to the TPU. Preliminary benchmarks on the GPU have shown that a for loop is slower than a parallel associative scan.

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