Update cross_entropy_loss.py

This commit is contained in:
Daniel Han 2024-09-25 00:07:49 -07:00
commit b74a86a2bd

View file

@ -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