Update rl_replacements.py
This commit is contained in:
parent
8e6dfed0ec
commit
9bbba3a511
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ def sft_trainer_prepare_dataset(function_name, function):
|
|||
function_name != "_prepare_dataset": return function
|
||||
|
||||
fast_sft_prepare_dataset = RL_REPLACEMENTS.get("sft_prepare_dataset", None)
|
||||
if fast_sft_prepare_dataset is not None and "pack_examples" in function:
|
||||
if fast_sft_prepare_dataset is not None:
|
||||
params = inspect.signature(fast_sft_prepare_dataset).parameters.keys()
|
||||
params = ".*?".join(params)
|
||||
matched = re.match(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue