Update rl.py
This commit is contained in:
parent
ed2d8a9303
commit
f52f12a073
1 changed files with 0 additions and 1 deletions
|
|
@ -291,7 +291,6 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
|
|||
"if locals().get('compute_metrics', None) is not None: _output_logits = True\n"\
|
||||
"if locals().get('preprocess_logits_for_metrics', None) is not None: _output_logits = True\n"\
|
||||
"if _output_logits:\n"\
|
||||
" import os\n"\
|
||||
" os.environ['UNSLOTH_RETURN_LOGITS'] = '1'\n"
|
||||
extra_args += logits_check
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue