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

[TK] Add support for ops required for Flash Attention 2 #385

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

Groverkss
Copy link
Contributor

@Groverkss Groverkss commented Jan 31, 2024

Add new ops:

  • tkl.exp2 (math)
  • tkl.max (reduce max)
  • tkl.sum (reduce sum)
  • tkl.broadcast (broadcast leading dims)
  • tkl.broadcast_in_dim (broadcast specific dimensions)
  • tkl.transpose (transpose)

Copy link
Contributor

@stellaraccident stellaraccident left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok to land these as-is since prototyping. But as we've noted on Discord, if we're wanting to go much further, we need to step back and work some of this more systematically. But for now, onward...

@Groverkss Groverkss merged commit 6f67a97 into nod-ai:main Feb 1, 2024
3 of 4 checks passed
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.

2 participants