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 Hanfcebdb08bb50
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 2d75452b20f..b1ee649c841 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -282,7 +282,6 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):" if hasattr(self, 'neftune_hook_handle'): del self.neftune_hook_handle\n"\"if getattr(args, 'neftune_noise_alpha', None) is not None:\n"\" model.get_input_embeddings().neftune_noise_alpha = self.neftune_noise_alpha\n"\- " self.neftune_hook_handle = self.model.get_input_embeddings().register_forward_hook(neftune_post_forward_hook)\n"\"pass\n"RLTrainer_post += neftune_checkpass