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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot]7c1d528c00a2
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 8436ca0dc9f..f0f0386bd1c 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -393,7 +393,14 @@ def grpo_trainer__generate_and_score_completions(function_name, function):if match:indent = match.group(1)- new_code = indent + "if not _was_training:\n" + indent + " self.model.for_inference()\n" + indent + "return output"+ new_code = (+ indent+ + "if not _was_training:\n"+ + indent+ + " self.model.for_inference()\n"+ + indent+ + "return output"+ )function = function.replace(f"{indent}return output", new_code)return function