mirror of
https://github.com/RYDE-WORK/ktransformers.git
synced 2026-02-06 06:23:15 +08:00
Update attention.py
This commit is contained in:
parent
d90749d35d
commit
92399283b6
@ -262,7 +262,7 @@ class KDeepseekV2Attention(BaseInjectedModule, DeepseekV2Attention):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# flash attn doesn't support head_dim bigger than 256
|
# flash attn doesn't support head_dim bigger than 256
|
||||||
# use vLLM triton attention kernel for MQA
|
# use triton attention kernel adapted from vLLM and SGLang for MQA
|
||||||
decode_attention_fwd_grouped(query_states, compressed_kv_with_k_pe, compressed_kv, attn_output,
|
decode_attention_fwd_grouped(query_states, compressed_kv_with_k_pe, compressed_kv, attn_output,
|
||||||
page_table,
|
page_table,
|
||||||
position_ids.squeeze(0).to(torch.int32), attn_logits,
|
position_ids.squeeze(0).to(torch.int32), attn_logits,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user