Update llama.py
This commit is contained in:
parent
7ad1a1fa62
commit
6cc9835021
1 changed files with 1 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ def LlamaAttention_fast_forward_inference(
|
|||
self.paged_attention_K = self.paged_attention[:,0]
|
||||
self.paged_attention_V = self.paged_attention[:,1]
|
||||
self.paged_attention_K[:seq_len] = K1.permute(2, 0, 1, 3)
|
||||
self.paged_attention_K[:seq_len] = K1.permute(2, 0, 1, 3)
|
||||
self.paged_attention_K[:seq_len] = V1.permute(2, 0, 1, 3)
|
||||
pass
|
||||
self.paged_attention_K[seq_len] = Kn.permute(2, 0, 1, 3)
|
||||
self.paged_attention_V[seq_len] = Vn.permute(2, 0, 1, 3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue