Update rl.py

This commit is contained in:
Daniel Han 2025-02-13 16:35:09 -08:00
commit 4c520db499

View file

@ -404,6 +404,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
imports,
overwrite = True,
)
print("###")
# Patch Trainer
exec(f"trl.{RLTrainer_name} = created_module.Unsloth{RLTrainer_name}", locals(), globals())