[Misc] Add get_name method to attention backends (#4685)
This commit is contained in:
@@ -19,6 +19,10 @@ from vllm.attention.ops.paged_attn import (PagedAttention,
|
||||
|
||||
class FlashAttentionBackend(AttentionBackend):
|
||||
|
||||
@staticmethod
|
||||
def get_name() -> str:
|
||||
return "flash-attn"
|
||||
|
||||
@staticmethod
|
||||
def get_impl_cls() -> Type["FlashAttentionImpl"]:
|
||||
return FlashAttentionImpl
|
||||
|
||||
Reference in New Issue
Block a user