Update rl.py

This commit is contained in:
Daniel Han 2025-02-17 19:58:17 -08:00
commit 8bdcfec233

View file

@ -429,6 +429,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
# Get all pre-modules
if trainer_file in RL_PRE_ITEMS:
RL_pre = "\n".join(RL_PRE_ITEMS[trainer_file])
print(RL_pre)
else:
RL_pre = ""
pass