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 Han275b836de1a0
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 2a3a9eb208f..c55e4141d94 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -269,7 +269,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):"if 'tokenizer' in locals() and hasattr(tokenizer, 'padding_side'): tokenizer.padding_side = 'right'\n"\"if 'processing_class' in locals():\n"\" if hasattr(processing_class, 'padding_side'): processing_class.padding_side = 'right'\n"\- " if hasattr(processing_class, tokenizer) and hasattr(processing_class.tokenizer, 'padding_side'): "\+ " if hasattr(processing_class, 'tokenizer') and hasattr(processing_class.tokenizer, 'padding_side'): "\"processing_class.tokenizer.padding_side = 'right'\n"extra_args += training_checkpass