Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vllm_omni/diffusion/attention/backends/cudnn_attn.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(
) -> None:
self.causal = causal
self.softmax_scale = softmax_scale
self.requires_gqa = num_heads != num_kv_heads

def forward_cuda(
self,
Expand Down Expand Up @@ -84,6 +85,7 @@ def forward_cuda(
dropout_p=0.0,
is_causal=self.causal,
scale=self.softmax_scale,
enable_gqa=self.requires_gqa,
)
except RuntimeError as e:
if "No available kernel" not in str(e):
Expand All @@ -100,5 +102,6 @@ def forward_cuda(
dropout_p=0.0,
is_causal=self.causal,
scale=self.softmax_scale,
enable_gqa=self.requires_gqa,
)
return output.permute(0, 2, 1, 3)
Loading