Update rl_replacements.py
This commit is contained in:
parent
5465fdf65f
commit
c643d950f7
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ def sft_trainer_compute_loss(function_name, function):
|
|||
)
|
||||
if len(replacer) != 0:
|
||||
replacer = replacer[0]
|
||||
returner = " "*8 + "return (loss, outputs) if return_outputs else loss"
|
||||
returner = "\n" + " "*8 + "return (loss, outputs) if return_outputs else loss"
|
||||
function = function.replace(replacer, replacer + returner)
|
||||
pass
|
||||
return function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue