Fabrice-TIERCELIN
commited on
" rather than '
Browse files
hyvideo/modules/attenion.py
CHANGED
@@ -178,7 +178,7 @@ def parallel_attention(
|
|
178 |
joint_tensor_value=v[:,img_kv_len:cu_seqlens_kv[1]],
|
179 |
joint_strategy="rear",
|
180 |
)
|
181 |
-
if flash_attn.__version__ >=
|
182 |
attn2, *_ = _flash_attn_forward(
|
183 |
q[:,cu_seqlens_q[1]:],
|
184 |
k[:,cu_seqlens_kv[1]:],
|
|
|
178 |
joint_tensor_value=v[:,img_kv_len:cu_seqlens_kv[1]],
|
179 |
joint_strategy="rear",
|
180 |
)
|
181 |
+
if flash_attn.__version__ >= "2.7.0":
|
182 |
attn2, *_ = _flash_attn_forward(
|
183 |
q[:,cu_seqlens_q[1]:],
|
184 |
k[:,cu_seqlens_kv[1]:],
|