Skip to content

Commit

Permalink
Fix scores (remove debug code) (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair authored Nov 11, 2024
1 parent ebd8d0d commit 7078765
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/lorax_server/utils/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,6 @@ def __call__(
for j in range(S):
scores_j = scores[:, j]

if j > 0:
scores_j = torch.rand_like(scores_j)

if self.watermark_processor is not None:
scores_j = self.watermark_processor(input_ids, scores_j)
if self.repetition_processor is not None:
Expand Down

0 comments on commit 7078765

Please sign in to comment.