Skip to content

Commit 33be2ec

Browse files
committed
Ruff
1 parent f4d6ebb commit 33be2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/cache_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ def create_dynamic_caches_from_legacy_cache(
15621562

15631563
@classmethod
15641564
def from_legacy_cache(
1565-
cls, past_key_values: Optional[Iterable[tuple[torch.FloatTensor, ...]]],
1565+
cls, past_key_values: Optional[Iterable[tuple[torch.FloatTensor, ...]]]
15661566
) -> "EncoderDecoderCache":
15671567
"""Converts a cache in the legacy cache format into an equivalent `EncoderDecoderCache`."""
15681568
if past_key_values is None:

0 commit comments

Comments
 (0)