Update rl_replacements.py
This commit is contained in:
parent
c3c6de3fc0
commit
36e1bc35f0
1 changed files with 4 additions and 1 deletions
|
|
@ -89,7 +89,10 @@ def sft_trainer_prepare_dataset(function_name, function):
|
|||
)
|
||||
if matched:
|
||||
# Use fast version!
|
||||
return inspect.getsource(fast_sft_prepare_dataset)
|
||||
function = inspect.getsource(fast_sft_prepare_dataset)
|
||||
function = function.replace("def sft_prepare_dataset", "def _prepare_dataset")
|
||||
return function
|
||||
pass
|
||||
pass
|
||||
|
||||
check_text = \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue