Skip to content

Commit

Permalink
Update src/open_r1/rewards.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 b61fb99 commit d655be7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/open_r1/rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def len_reward(completions : list[Dict[str, str]], solutions : list[str], **kwar

rewards = []
for length, is_correct in zip(lengths, correctness):
# Calculate lambda = 0.5 - (len - min_len)/(max_len - min_len)
lambda_val = 0.5 - (length - min_len) / (max_len - min_len)

if is_correct:
Expand Down

0 comments on commit d655be7

Please sign in to comment.