Skip to content

Commit

Permalink
Update src/open_r1/grpo.py
Browse files Browse the repository at this point in the history
Co-authored-by: lewtun <lewis.c.tunstall@gmail.com>
  • Loading branch information
kashif and lewtun authored Feb 13, 2025
1 parent a720273 commit 7e2ebee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/open_r1/grpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def main(script_args, training_args, model_args):
ngram_size=script_args.repetition_n_grams,
max_penalty=script_args.repetition_max_penalty,
),
"len_reward": len_reward,
"length": len_reward,
}
reward_funcs = [REWARD_FUNCS_REGISTRY[func] for func in script_args.reward_funcs]

Expand Down

0 comments on commit 7e2ebee

Please sign in to comment.