Update gemma2.py
This commit is contained in:
parent
282d8a5794
commit
04a9f4da74
1 changed files with 3 additions and 0 deletions
|
|
@ -131,6 +131,9 @@ def Gemma2Attention_fast_forward(
|
|||
|
||||
# Only enable if the attention_mask is True
|
||||
has_sliding_window = type(attention_mask) is bool and attention_mask is True
|
||||
print(HAS_FLASH_ATTENTION_SOFTCAPPING)
|
||||
print(has_sliding_window)
|
||||
print(attention_mask)
|
||||
if HAS_FLASH_ATTENTION_SOFTCAPPING and type(attention_mask) is bool:
|
||||
window = (-1, -1)
|
||||
if has_sliding_window:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue