Update llama.py
This commit is contained in:
parent
1f1211fbd6
commit
2eb950872a
1 changed files with 1 additions and 1 deletions
|
|
@ -898,7 +898,7 @@ def CausalLM_fast_forward(fast_forward_inference):
|
|||
)
|
||||
elif logit_softcapping != 0:
|
||||
logits *= (1.0 / logit_softcapping)
|
||||
torch.tanh(logits, out = logits)
|
||||
logits = torch.tanh(logits, out = logits if not logits.requires_grad else None)
|
||||
logits *= logit_softcapping
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue