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 Hanee672a214e6f
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex eba1e46a215..2875ff64a59 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -171,9 +171,8 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):old_RLConfig_source = inspect.getsource(RLConfig)all_imports = dir(trainer)- # imports = [x for x in all_imports if not x.startswith("_")]- # Fix _deprecate_arguments not getting imported- imports = all_imports+ # Fix _deprecate_arguments not getting imported so stop __ but not _+ imports = [x for x in all_imports if not x.startswith("__")]# Get default argumentsEMPTY = inspect.Parameter.empty