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
Do not force set beta to 0 for DAPO (#3604)
Datta Nimmaturi4571ecaca361
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.pyindex ad7099eee72..3618e55825a 100644--- a/unsloth/models/rl.py+++ b/unsloth/models/rl.py@@ -814,10 +814,9 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):" if epsilon_high != 0.28:\n"" print('Unsloth: The DAPO paper recommends `epsilon_high = 0.28` - we will set it.')\n"" if beta != 0.0:\n"- " print('Unsloth: The DAPO paper recommends setting `beta = 0.0` to remove the KL term - we will set it.')\n"+ " print(f'[WARNING] Unsloth: The DAPO paper recommends setting `beta = 0.0` to remove the KL term - You have set it to {beta}.')\n"" mask_truncated_completions = True\n"" epsilon_high = 0.28\n"- " beta = 0.0\n""\n")extra_args += check_dr_grpo