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 Han9e837e2dc385
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex 14b75f67460..53f5eee66c4 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -537,6 +537,9 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):"loss_type" : "bnpo", # Default GRPO paper"beta" : 0.001, # Recommended as seen in verl"auto_find_batch_size" : False, # Cannot work on GRPO+ # [TODO] See https://fengyao.notion.site/off-policy-rl+ # https://github.com/huggingface/trl/pull/3867 (August 7th)+ "vllm_importance_sampling_correction" : False,}for k, v in replacements.items():x = f"{k}( = [^,\n]{{1,}})?,\n"