Skip to content

Commit

Permalink
Update src/transformers/generation/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Aarsen <[email protected]>
  • Loading branch information
younesbelkada and tomaarsen authored Feb 15, 2024
1 parent b641975 commit a7df058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def switch_cache_implementation(self, cache_implementation: Union[CacheImplement
if cache_implementation == CacheImplementation.SINK:
if "window_length" not in kwargs and "num_sink_tokens" not in kwargs:
raise ValueError(
"You asked to switch to Sink cache implementation but you did not passed `window_length` and `num_sink_tokens` to "
"You asked to switch to the Sink cache implementation, but you did not pass `window_length` and `num_sink_tokens` to "
"`switch_cache_implementation`. Try again with passing these arguments to the method. (e.g. `model.switch_cache_implementation('sink', window_length=window_length=508, num_sink_tokens=4)`"
)
else:
Expand Down

0 comments on commit a7df058

Please sign in to comment.