Skip to content

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.

Update rl.py

Daniel Han86cd1d278642
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index c4960034d47..f19ca5ee967 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -494,7 +494,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
" 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"\
- "elif loss_type.lower() == 'dapo'\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"\
" mask_truncated_completions = True\n"\