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 Han8f465e21c5e0
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex e02648a2dd5..3fa3fe71329 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -349,9 +349,9 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):" max_length = args.max_length\n"\" else:\n"\" model_max_length = getattr(model, 'max_seq_length', None)\n"\- " print(model_max_length, 'mml1')\n"\+ " # print(model_max_length, 'mml1')\n"\" if model_max_length is None: model_max_length = getattr(model, 'max_length', None)\n"\- " print(model_max_length, 'mml2')\n"\+ " # print(model_max_length, 'mml2')\n"\" if model_max_length is not None:\n"\" args.max_length = model_max_length\n"\" max_length = args.max_length\n"\