From 3f4033e612546b6e4da35ba81a3b87bf4bf58afe Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 17 Jul 2025 06:54:25 -0700 Subject: [PATCH] Update rl_replacements.py --- unsloth/models/rl_replacements.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.py index 76e9fe2e39..a88385bf03 100644 --- a/unsloth/models/rl_replacements.py +++ b/unsloth/models/rl_replacements.py @@ -256,9 +256,6 @@ def grpo_trainer__generate_and_score_completions(function_name, function): replace_part, spacing = found[0] removed_comments = re.sub(r"\#[^\n]{1,}", "", replace_part) splits = removed_comments.split("\n") - print(splits) - print(len(spacing)) - 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: new_replacement = \