Fabrice-TIERCELIN commited on
Commit
8b0a0d1
·
verified ·
1 Parent(s): 04c38b1

" rather than '

Browse files
Files changed (1) hide show
  1. hyvideo/modules/attenion.py +1 -1
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__ >= '2.7.0':
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]:],