[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:
Michael Goin
2025-11-12 19:40:59 -07:00
committed by GitHub
parent 2dacd57394
commit a543e678b4
2 changed files with 36 additions and 10 deletions
+15
View File
@@ -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