Update gemma2.py
This commit is contained in:
parent
cf1054c9bc
commit
8db7e809d0
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ def Gemma2Attention_fast_forward(
|
|||
|
||||
# FA uses 1 / sqrt for softmax_scale!
|
||||
if not hasattr(self, "_flash_attention_softmax_scale"):
|
||||
self._flash_attention_softmax_scale = 1.0 / self.config.query_pre_attn_scalar**0.5
|
||||
self._flash_attention_softmax_scale = 1.0 / (self.config.query_pre_attn_scalar**0.5)
|
||||
pass
|
||||
|
||||
Q = Q.transpose(1, 2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue