Skip to content

support GQA and realize flash attention v2 with Causal masking#10

Open
FoolyAndCooly wants to merge 4 commits intotspeterkim:mainfrom
FoolyAndCooly:main
Open

support GQA and realize flash attention v2 with Causal masking#10
FoolyAndCooly wants to merge 4 commits intotspeterkim:mainfrom
FoolyAndCooly:main

Conversation

@FoolyAndCooly
Copy link

This PR implements GQA for flash attention. and implements flash attention v2 with Causal masking
I got these results on my RTX 1650 (flash attention v2)with
batch_size = 16
n_q_head = 16
n_kv_head = 8
seq_len = 256
head_embd = 64
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