Update llama.py
This commit is contained in:
parent
381b991c45
commit
cf0fae9a55
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ def LlamaAttention_fast_forward_inference(
|
|||
sin = self.rotary_emb.sin_cached[seq_len]
|
||||
h = head_dim // 2
|
||||
|
||||
RH_Q = self.RH_Q
|
||||
# RH_Q = self.RH_Q
|
||||
RH_Q[:,:,:,:h] = Qn[:,:,:,h:]; RH_Q[:,:,:,h:] = Qn[:,:,:,:h]; torch.neg(RH_Q[:,:,:,:h], out = RH_Q[:,:,:,:h]);
|
||||
Qn *= cos; Qn.addcmul_(RH_Q, sin);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue