Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrilvallez committed Sep 20, 2024
1 parent 89b56a4 commit 617726c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/generation/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1874,9 +1874,9 @@ def test_new_cache_format(self, num_beams, do_sample):
if config.is_encoder_decoder:
cache_cls = EncoderDecoderCache
past_key_values = cache_cls(DynamicCache(), DynamicCache())
elif getattr(self.config, "sliding_window", None) is not None:
elif getattr(config, "sliding_window", None) is not None:
cache_cls = DynamicSlidingWindowCache
past_key_values = cache_cls(self.config.sliding_window)
past_key_values = cache_cls(config.sliding_window)
else:
cache_cls = DynamicCache
past_key_values = cache_cls()
Expand Down

0 comments on commit 617726c

Please sign in to comment.