From ecd969d40226c515a04cb20cacbe0b6a077fcc45 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 11 Feb 2025 21:31:23 -0800 Subject: [PATCH] Update rl_replacements.py --- unsloth/models/rl_replacements.py | 1 - 1 file changed, 1 deletion(-) diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.py index c98adfee86..b7d018915c 100644 --- a/unsloth/models/rl_replacements.py +++ b/unsloth/models/rl_replacements.py @@ -60,7 +60,6 @@ def sft_trainer_prepare_dataset(function_name, function): function_name != "_prepare_dataset": return function check_text = \ - "\n"\ "if 'tokenizer' not in locals(): tokenizer = processing_class\n"\ "if 'formatting_func' not in locals(): raise RuntimeError('Unsloth: Please file a bug report - `formatting_func` does not exist!')\n"\ "if 'dataset_text_field' not in locals() and 'args' in locals(): dataset_text_field = args.dataset_text_field\n"\