Update llama.py
This commit is contained in:
parent
fcde58859b
commit
8828eceb5b
1 changed files with 0 additions and 1 deletions
|
|
@ -304,7 +304,6 @@ def LlamaDecoderLayer_fast_forward(
|
||||||
past_key_value (`Tuple(torch.FloatTensor)`, *optional*): cached past key and value projection states
|
past_key_value (`Tuple(torch.FloatTensor)`, *optional*): cached past key and value projection states
|
||||||
"""
|
"""
|
||||||
bsz, q_len, hd = hidden_states.size()
|
bsz, q_len, hd = hidden_states.size()
|
||||||
print(hidden_states.size())
|
|
||||||
if (past_key_value is not None and q_len == 1):
|
if (past_key_value is not None and q_len == 1):
|
||||||
# Self Attention
|
# Self Attention
|
||||||
residual = hidden_states
|
residual = hidden_states
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue