Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Remove the comment.

numb3r33a6405b36b413
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.py
index dd139ffd258..248c5aab85c 100644
--- a/unsloth/models/rl_replacements.py
+++ b/unsloth/models/rl_replacements.py
@@ -390,7 +390,7 @@ def grpo_trainer__generate_and_score_completions(function_name, function):
function = patched
function = function.replace(
- " return output", # 8 spaces before 'return'
+ " return output",
""" if not _was_training:
self.model.for_inference()
return output"""