Skip to content

[Frontend] enable gqa and flash attention fusion for prefill phase#677

Open
GuoningHuang wants to merge 3 commits intobuddy-compiler:mainfrom
GuoningHuang:gqa-prefill
Open

[Frontend] enable gqa and flash attention fusion for prefill phase#677
GuoningHuang wants to merge 3 commits intobuddy-compiler:mainfrom
GuoningHuang:gqa-prefill

Conversation

@GuoningHuang
Copy link
Contributor

Summary

This PR introduces the fusion logic for Grouped Query Attention (GQA) combined with Flash Attention, specifically optimized for the prefill phases.
The prefill performance of prefill improve from 45 tokens/s to 49 tokens/s when runing without numcl:
before:
image
After:
image

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