You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Flash Attention 3 Hub backend '{backend.value}' is not usable because the `DIFFUSERS_ENABLE_HUB_KERNELS` env var isn't set. Please set it `DIFFUSERS_ENABLE_HUB_KERNELS=yes`."
373
+
)
369
374
ifnotis_kernels_available():
370
375
raiseRuntimeError(
371
376
f"Flash Attention 3 Hub backend '{backend.value}' is not usable because the `kernels` package isn't available. Please install it with `pip install kernels`."
@@ -708,9 +713,11 @@ def _flash_attention_3_hub(
708
713
pack_gqa=None,
709
714
deterministic=deterministic,
710
715
sm_margin=0,
716
+
return_attn_probs=return_attn_probs,
711
717
)
712
-
lse=None
713
-
return (out, lse) ifreturn_attn_probselseout
718
+
# When `return_attn_probs` is True, the above returns a tuple of
0 commit comments