Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
garrett4wade committed Aug 27, 2024
1 parent 34c7aeb commit 793eb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realhf/impl/model/interface/ppo_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def inference(
# This post_hook will gather log probabilities in mini-batches,
# reducing peak memory usage.
def calc_logprobs(logits, input_):
logits /= self.generation_config.temperature
logits /= self.gconfig.temperature
if (
"packed_logits_mask" in input_.data
and input_.data["packed_logits_mask"] is not None
Expand Down

0 comments on commit 793eb3f

Please sign in to comment.