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 Haned2d8a93032b
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 25555e2628f..71a568ef19a 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -287,7 +287,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):# Force logits to be produced if preprocess_logits_for_metrics or compute_metrics is usedif "model" in call_args:logits_check = \- "_output_logits = False"\+ "_output_logits = False\n"\"if locals().get('compute_metrics', None) is not None: _output_logits = True\n"\"if locals().get('preprocess_logits_for_metrics', None) is not None: _output_logits = True\n"\"if _output_logits:\n"\