diff --git a/src/transformers/generation/utils.py b/src/transformers/generation/utils.py index 6ce76c95b3eb8b..a4f2d9bdf0a788 100644 --- a/src/transformers/generation/utils.py +++ b/src/transformers/generation/utils.py @@ -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: