Skip to content

Updates to JAX flash attention kernel. #4559

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_951577146
Open

Updates to JAX flash attention kernel. #4559
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_951577146

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Updates to JAX flash attention kernel.

  • Sink jnp.dynamic-slice instructions fetching blocks of q, k and v into the inner loop.
  • Forced final @v layout for better utilization
  • Forcing fusions with must_fuse_call
  • Adding support to unroll the loops

- Sink jnp.dynamic-slice instructions fetching blocks of q, k and v into the inner loop.
- Forced final @v layout for better utilization
- Forcing fusions with must_fuse_call
- Adding support to unroll the loops

PiperOrigin-RevId: 951577146
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

Successfully merging this pull request may close these issues.

1 participant