From 98687fa2ae69a57909e7ea378ba170fde6bdc7a8 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 11 Feb 2025 21:18:55 -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 5c6cb0c643..c98adfee86 100644 --- a/unsloth/models/rl_replacements.py +++ b/unsloth/models/rl_replacements.py @@ -78,7 +78,7 @@ def sft_trainer_prepare_dataset(function_name, function): " add_special_tokens = False if has_bos_token_already else add_special_tokens\n" check_text = check_text.split("\n") - check_text = "\n".join(" "*4 + x for x in check_text) + check_text = "\n".join(" "*8 + x for x in check_text) check_text = check_text.rstrip() + "\n" # .*? matches first match. .+? matches final match.