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 Han2f2930ee508a
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index 8ebb5c824b7..f2f9280cad5 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -531,7 +531,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
" mask_truncated_completions = True\n"\
" epsilon_high = 0.28\n"\
" beta = 0.0\n"\
- " loss_type = 'bnpo'"
+ " loss_type = 'bnpo'\n"\
"\n"
extra_args += check_dr_grpo
pass