Skip to content

Commit

Permalink
Fix sliding window + compile bug (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtejankar authored Nov 6, 2024
1 parent 902a68c commit e03f989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lorax_server/utils/attention/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ def __init__(
self.max_k = max_k

def clamp(self, max):
self.input_lengths = torch.clamp(self.input_lengths, max=max)
self.input_lengths.data.clamp_(max=max)
return self

0 comments on commit e03f989

Please sign in to comment.