[Bugfix] Fix FlashInfer non-causal draft attention (DFlash/DSpark) on Blackwell (#48167)
Signed-off-by: mgoin <mgoin64@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
49e777cf08
commit
ecf4aa5ce2
@@ -927,7 +927,8 @@ class FlashInferMetadataBuilder(AttentionMetadataBuilder[FlashInferMetadata]):
|
||||
has_trtllm_support = False
|
||||
break
|
||||
|
||||
if has_trtllm_support:
|
||||
# trtllm-gen only supports causal attention.
|
||||
if has_trtllm_support and not vllm_config.attention_config.use_non_causal:
|
||||
return AttentionCGSupport.UNIFORM_BATCH
|
||||
else:
|
||||
return AttentionCGSupport.UNIFORM_SINGLE_TOKEN_DECODE
|
||||
|
||||
Reference in New Issue
Block a user