Update mistral.py
This commit is contained in:
parent
b314500993
commit
e184b06c4b
1 changed files with 2 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ def MistralAttention_fast_forward(
|
|||
Q = Q.view(bsz, q_len, n_heads, head_dim).transpose(1, 2)
|
||||
K = K.view(bsz, q_len, n_kv_heads, head_dim).transpose(1, 2)
|
||||
V = V.view(bsz, q_len, n_kv_heads, head_dim).transpose(1, 2)
|
||||
print(hidden_states.shape)
|
||||
print(Q.shape, K.shape, V.shape)
|
||||
|
||||
kv_seq_len = K.shape[-2]
|
||||
if past_key_value is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue