Update rl.py

This commit is contained in:
Daniel Han 2025-02-06 01:12:33 -08:00
commit b5e132c5c4

View file

@ -377,7 +377,6 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
# Patch all functions
for function in changed:
exec(changed[function], locals(), globals())
print(changed[function])
exec(f"trl.trainer.{trainer_file}.{RLTrainer_name}.{function} = _unsloth_{function}", locals(), globals())
pass
pass