Update rl.py

This commit is contained in:
Daniel Han 2025-02-11 16:03:33 -08:00
commit 722c4ecca6

View file

@ -245,6 +245,7 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
extra_args += \
"from unsloth_zoo.logging_utils import PatchRLStatistics\n"\
f"PatchRLStatistics('{trainer_file}')\n"
"print(args)\n"
# Create RLTrainer args
extra_args = extra_args.split("\n")