Update cross_entropy_loss.py
This commit is contained in:
parent
88fa0eb7f3
commit
7f9ecd592f
1 changed files with 1 additions and 2 deletions
|
|
@ -443,9 +443,8 @@ 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
|
||||
del function, replacement, inspect, re
|
||||
|
||||
|
||||
def patch_llama_for_causal_lm():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue