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

Feature request: Pallas implementation of NSA Attention (by deepseek) #26681

Open
OhadRubin opened this issue Feb 22, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@OhadRubin
Copy link

It would be nice to have a Pallas implementation of the following paper by deepseek:
https://arxiv.org/pdf/2502.11089

Here is a jax implementation by me.
https://github.com/OhadRubin/nsa_attention_jax

Actually, I finished this implementation back in October of 2024, but it is unoptimized.
Just thought I would let you know since NSA is compatible with existing pre-trained regular attention models and might have some nice speedups once it's optimized.

@OhadRubin OhadRubin added the enhancement New feature or request label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant