Skip to content

Commit

Permalink
Merge pull request #26 from Control-derek/derek
Browse files Browse the repository at this point in the history
add self.
  • Loading branch information
lucidrains authored Mar 27, 2024
2 parents 0649dfb + 72c2dca commit 72291ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion self_rewarding_lm_pytorch/self_rewarding_lm_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def generate_reward(
reward_prompt = repeat(reward_prompt, 'n -> b n', b = self.num_evals_to_average)

reward_prompt = reward_prompt.to(device)
self_reward_model = self_reward_model.to(device)
self_reward_model = self.self_reward_model.to(device)

reward_responses = sample(
self_reward_model,
Expand Down

0 comments on commit 72291ff

Please sign in to comment.