From 62c874f37b9c712200a90cb728addafb4c527cba Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 17 Jul 2025 06:44:28 -0700 Subject: [PATCH] Update rl_replacements.py --- unsloth/models/rl_replacements.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.py index 27383ef821..f4dc4965f0 100644 --- a/unsloth/models/rl_replacements.py +++ b/unsloth/models/rl_replacements.py @@ -257,6 +257,7 @@ def grpo_trainer__generate_and_score_completions(function_name, function): removed_comments = re.sub(r"\#[^\n]{1,}", "", replace_part) splits = removed_comments.split("\n") print("##########") + print("#", spacing, "#") print(splits) print(sum(re.match(rf"{spacing}[^\s]", x) is not None for x in splits)) if sum(re.match(rf"^{spacing}[^\s]", x) is not None for x in splits) == 2 and len(spacing) == 8: