Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Do not force set beta to 0 for DAPO
  • Loading branch information
Datta0 committed Nov 17, 2025
commit 0e6e8e7f4c9fa1bb8c6e484414aad215a38ae93f
3 changes: 1 addition & 2 deletions unsloth/models/rl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down