diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.py index 6098336e12..5c6cb0c643 100644 --- a/unsloth/models/rl_replacements.py +++ b/unsloth/models/rl_replacements.py @@ -26,7 +26,7 @@ RL_FUNCTIONS = defaultdict(list) def sft_trainer_fix_untraiend_tokens(call_args, extra_args): if "model" in call_args and "train_dataset" in call_args: fix_tokenizer = \ - "IGNORED_TOKENIZER_NAMES = os.environ.get('UNSLOTH_IGNORED_TOKENIZER_NAMES', '').split('\n')\n"\ + "IGNORED_TOKENIZER_NAMES = os.environ.get('UNSLOTH_IGNORED_TOKENIZER_NAMES', '').split('\\n')\n"\ "from unsloth_zoo.tokenizer_utils import fix_untrained_tokens\n"\ "from unsloth_zoo.training_utils import fix_zero_training_loss\n"\ "if 'tokenizer' not in locals(): tokenizer = processing_class\n"\