[Core] Let SWA layers take the primary block size to avoid inflating the KV block LCM (#53007)

Signed-off-by: Bill Nell <bnell@redhat.com>
Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com>
Co-authored-by: Lucas Wilkinson <lwilkins@redhat.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
bnellnm
2026-09-08 16:44:43 -04:00
committed by GitHub
co-authored by Lucas Wilkinson OpenAI Codex
parent 808353f477
commit d29c88f162
3 changed files with 45 additions and 11 deletions
+3
View File
@@ -729,6 +729,9 @@ def resolve_kv_cache_block_sizes(
]
scheduler_block_size = math.lcm(*group_block_sizes)
logger.info("kv cache group sizes %s", group_block_sizes)
logger.info("kv lcm block sizes %s", scheduler_block_size)
# Block hashes are only consumed by prefix caching and KV connectors
# (P/D, offloading); when neither is active, keep hash_block_size equal
# to the scheduler block size.