Update rl.py
This commit is contained in:
parent
dcfb446acd
commit
fb486eafc8
1 changed files with 1 additions and 0 deletions
|
|
@ -377,6 +377,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
|
|||
# Patch all functions
|
||||
for function in changed:
|
||||
exec(changed[function], imported_functions, globals())
|
||||
print(changed[function])
|
||||
exec(f"trl.trainer.{trainer_file}.{RLTrainer_name}.{function} = _unsloth_{function}", imported_functions, globals())
|
||||
pass
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue