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 Hanc7f2ec33384b
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex ef2fcb5675c..0a516bce2a3 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -371,7 +371,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):# Import all functionsimports = list(set(imports))imports = f"from trl.trainer.{trainer_file} import (\n" + ',\n'.join(imports) + ")"- exec(imports)+ exec(imports, locals(), globals())# Patch all functionsfor function in changed: