[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:
co-authored by
Lucas Wilkinson
OpenAI Codex
parent
808353f477
commit
d29c88f162
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user