Update cross_entropy_loss.py
This commit is contained in:
parent
45554fb66d
commit
5bb6b3bbd2
1 changed files with 1 additions and 1 deletions
|
|
@ -437,7 +437,7 @@ def patch_llama_for_causal_lm():
|
|||
function = \
|
||||
function[:function.find(" loss = None")] + \
|
||||
replacement + \
|
||||
function[ function.find(" if not return_dict"):]
|
||||
function[ function.find("if not return_dict"):]
|
||||
function = function.replace("logits = logits.float()", "\n")
|
||||
|
||||
# Missed spaces
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue