Skip to content

Commit

Permalink
missing overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
gante committed May 24, 2024
1 parent dddca6a commit 9b82437
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/transformers/cache_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,3 +533,8 @@ def update(
self.value_cache[layer_idx] += v_out

return k_out, v_out

def get_max_length(self) -> Optional[int]:
# in theory there is no limit because the sliding window size is fixed
# no matter how long the sentence is
return None

0 comments on commit 9b82437

Please sign in to comment.