From 89ffa609d42ec906add06f3e2a9d172c799323a2 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 11 Feb 2025 21:16:56 -0800 Subject: [PATCH] Update rl_replacements.py --- unsloth/models/rl_replacements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"\