Update mistral.py
This commit is contained in:
parent
40aeb2629e
commit
fbf6cc747e
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ def MistralAttention_fast_forward(
|
|||
A = A.transpose(1, 2).contiguous()
|
||||
pass
|
||||
|
||||
attn_output = A.reshape(bsz, q_len, self.hidden_size)
|
||||
attn_output = A.reshape(bsz, q_len, n_heads*head_dim)
|
||||
attn_output = self.apply_o(self, attn_output)
|
||||
attn_weights = None
|
||||
return attn_output, attn_weights, past_key_value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue