-
Notifications
You must be signed in to change notification settings - Fork 507
Adapt Splash Attention from TorchPrime #8911
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Looks like some comments still need to be addressed -- LMK whenever I should TAL! |
Yes, I am working on getting rid of the |
Oh, interesting that the test failed for the cache miss count. Looks like the HLO cache can be reused between test functions. |
Hi @tengyifei , I created issue #8963 to track the hashing issue. Will follow up in a separate PR for the fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM / LGTM
Adapt the PR AI-Hypercomputer/torchprime#145 from TorchPrime into PTXLA. Also simplified the code to use jit hashing from #8878.
In addition, fix a small bug in xla_builder.call_jax when the input arg contains both None and other hashable types in sequence.