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
Update rl_replacements.py
Daniel Han77f40b1ed941
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.pyindex 0063ea4af6e..0f342ec86e9 100644--- a/unsloth/models/rl_replacements.py+++ b/unsloth/models/rl_replacements.py@@ -142,7 +142,7 @@ def grpo_trainer__move_model_to_vllm(function_name, function):if function_name != "_move_model_to_vllm": return function# .*? matches first match. .+? matches final match.- function = "def _move_model_to_vllm(self, *args, **kwargs): return None\n"- return function.find("def") * " " + function+ replacement = "def _move_model_to_vllm(self, *args, **kwargs): return None\n"+ return " "*function.find("def") + replacementpassRL_FUNCTIONS["grpo_trainer"].append(grpo_trainer__move_model_to_vllm)