Update llama.py
This commit is contained in:
parent
2d64e0a904
commit
5fe166d32e
1 changed files with 1 additions and 0 deletions
|
|
@ -524,6 +524,7 @@ def LlamaModel_fast_forward(
|
|||
inputs_requires_grad = hidden_states.requires_grad
|
||||
if inputs_requires_grad: hidden_states.requires_grad_(False)
|
||||
hidden_states *= attention_mask.unsqueeze(0).transpose(0, 1).transpose(1, 2)
|
||||
print(1)
|
||||
if inputs_requires_grad: hidden_states.requires_grad_(True)
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue