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 Han5c0ed78b9b6c
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 5b9aec652a6..cd0bb0b3915 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -377,6 +377,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):# Patch all functionsfor function in changed:exec(changed[function], imported_functions, globals())+ print(changed[function])exec(f"trl.trainer.{trainer_file}.{RLTrainer_name}.{function} = _unsloth_{function}", imported_functions, globals())passpass