Update cross_entropy_loss.py
This commit is contained in:
parent
06e06f922d
commit
b74a86a2bd
1 changed files with 1 additions and 0 deletions
|
|
@ -443,6 +443,7 @@ function = [function[0]] + [" "*4 + x for x in function[1:]]
|
|||
function = "\n".join(function)
|
||||
function = f"class Unsloth_LlamaForCausalLM(LlamaForCausalLM):\n"\
|
||||
f" {function}\n"
|
||||
print(function)
|
||||
exec(function, globals())
|
||||
del function, replacement
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue