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

Implement benchmarks for Flash Attention #223

Open
wants to merge 25 commits into
base: sycl-develop
Choose a base branch
from

Conversation

muhammad-tanvir-1211
Copy link
Collaborator

This PR adds benchmarks for Flash Attention v2.

Stacked changes on top of #204

Comment on lines 31 to 34
cutlass_benchmark_add_executable(
flash_attention_benchmark
main.cpp
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of creating a new benchmark, could you integrate flash attention into the current benchmark framework alongside the existing benchmarks for GEMM and StreamK. This will allow us to add new benchmark cases without having to add each one independently in CI

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added the Flash Attention benchmarks into the existing benchmark framework.

@@ -0,0 +1,65 @@
# BFloat16 benchmarks
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add all these benchmark configurations into the existing input.in file so that they will all be included in the CI benchmark.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
incremental Incremental changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants