8000 vulkan: KHR_coopmat flash attention by jeffbolznv · Pull Request #13506 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

vulkan: KHR_coopmat flash attention #13506

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

Merged
merged 1 commit into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
vulkan: KHR_coopmat flash attention
This shader uses coopmat1 to do the Q*K^T multiply. The P*V multiply is more
difficult for various reasons so I haven't done it. Performance for this
shader is around 2.5x better than for the scalar shader when doing prompt
processing. Some of the benefit may be from other optimizations like staging
through shared memory, or splitting by rows.
  • Loading branch information
jeffbolznv committed May 14, 2025
commit 1a109e6dc2c0b33f8cf2c55d0a64d8733e523074
Loading
Loading
0