Update gemma.py
This commit is contained in:
parent
3907ea9003
commit
9ae5abc83f
1 changed files with 2 additions and 1 deletions
|
|
@ -93,7 +93,8 @@ def GemmaAttention_fast_forward(
|
|||
V = V.view(bsz, q_len, n_kv_heads, head_dim).transpose(1, 2)
|
||||
|
||||
cos, sin = self.rotary_emb(V, position_ids, seq_len=None)
|
||||
Q, K = apply_rotary_pos_emb(Q, K, cos, sin, None)
|
||||
Q, K = fast_rope_embedding(Q, K, cos, sin)
|
||||
# Q, K = apply_rotary_pos_emb(Q, K, cos, sin, None)
|
||||
|
||||
past_key_value = getattr(self, "past_key_value", past_key_value)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue