Oups typo for HybridChunkedCache (#38303)
Some checks are pending
Self-hosted runner (benchmark) / Benchmark (aws-g5-4xlarge-cache) (push) Waiting to run
Build documentation / build (push) Waiting to run
New model PR merged notification / Notify new model (push) Waiting to run
Slow tests on important models (on Push - A10) / Get all modified files (push) Waiting to run
Slow tests on important models (on Push - A10) / Slow & FA2 tests (push) Blocked by required conditions
Self-hosted runner (push-caller) / Check if setup was changed (push) Waiting to run
Self-hosted runner (push-caller) / build-docker-containers (push) Blocked by required conditions
Self-hosted runner (push-caller) / Trigger Push CI (push) Blocked by required conditions
Secret Leaks / trufflehog (push) Waiting to run
Update Transformers metadata / build_and_package (push) Waiting to run

typo
This commit is contained in:
Cyril Vallez 2025-05-22 17:52:37 +02:00 committed by GitHub
parent 211f2b0875
commit b59386dc0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1968,7 +1968,7 @@ class HybridChunkedCache(Cache):
self.sliding_window = config.sliding_window
self.max_cache_len = max_cache_len
# Sliding layers can't be larger than the overall max cache len
self.sliding_window = min(config.sliding_window, self.max_cache_len)
self.sliding_window = min(self.sliding_window, self.max_cache_len)
self.max_batch_size = max_batch_size
self.head_dim = getattr(config, "head_dim", config.hidden_size // config.num_attention_heads)
self._dtype = dtype