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 Han68da8b69b7ae
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex e8d9c19a543..23425747372 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -387,6 +387,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):f"class {RLTrainer_name}", f"class Unsloth{RLTrainer_name}", 1)exec(RLTrainer_source, imported_functions, globals())+ globals()[f"Unsloth{RLTrainer_name}"] = eval(f"Unsloth{RLTrainer_name}")exec(f"trl.trainer.{trainer_file}.{RLTrainer_name} = Unsloth{RLTrainer_name}", locals(), globals())exec(f"trl.trainer.{RLTrainer_name} = Unsloth{RLTrainer_name}", locals(), globals())exec(f"trl.{RLTrainer_name} = Unsloth{RLTrainer_name}", locals(), globals())