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 Han4fb4d3a36cba
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex cfd9ad82272..c9f07e9a834 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -493,7 +493,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):" scale_rewards = True\n"\" elif scale_rewards == True:\n"\" print('The Dr GRPO paper recommends setting `scale_rewards` to False! Will override. Set it to `None` to force False.')\n"\- " scale_rewards = False\n"+ " scale_rewards = False\n"\"elif loss_type.lower() = 'dapo'\n"\" print('The DAPO paper recommends `mask_truncated_completions = True`')\n"\" print('The DAPO paper recommends `epsilon_high = 0.28`')\n"\