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.py
Daniel Haneb1f9b91f12a
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex cd0bb0b3915..bc6fa0f7a72 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -275,6 +275,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):spaces = __init__.find("def")__init__ = __init__.split("\n")__init__ = "\n".join(x[spaces:] for x in __init__)+ __init__ = __init__.replace("def ", "def _unsloth_", 1)# Replace vLLM sections since we already have it done!vllm_part = re.findall(