[Bugfix] Fix SM100 gpt-oss regression due to faulty attn sink support (#28561)
Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
@@ -229,6 +229,21 @@ class FlashInferBackend(AttentionBackend):
|
||||
12, 1
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def supports_sink(cls) -> bool:
|
||||
"""FlashInfer supports sinks when TRTLLM attention is available (SM100)."""
|
||||
from vllm.utils.flashinfer import (
|
||||
force_use_trtllm_attention,
|
||||
supports_trtllm_attention,
|
||||
)
|
||||
|
||||
# Respect explicit disable flag (e.g., VLLM_USE_TRTLLM_ATTENTION=0)
|
||||
if force_use_trtllm_attention() is False:
|
||||
return False
|
||||
|
||||
# Check if TRTLLM is supported on this platform
|
||||
return supports_trtllm_attention()
|
||||
|
||||
@classmethod
|
||||
def get_required_kv_cache_layout(cls) -> KVCacheLayoutType | None:
|
||||
from vllm.platforms import current_platform
|
||||
|
||||
Reference in New Issue
Block a user