[KV Cache] GLM-5.3-Flash: use the generic packed KV layout; CircularBufferSpec tail with speculative ring slots (#57169)

Signed-off-by: Yifan Qiao <yifanqiao@inferact.ai>
Signed-off-by: Dakai An <dakaian108@gmail.com>
Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com>
Co-authored-by: Yifan Qiao <yifanqiao@inferact.ai>
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: OpenAI Codex <codex@openai.com>
Co-authored-by: Lucas Wilkinson <lwilkins@redhat.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Lucas Wilkinson <LucasWilkinson@users.noreply.github.com>
This commit is contained in:
Dakai An
2026-10-09 15:48:37 -04:00
committed by GitHub
co-authored by Yifan Qiao OpenAI Codex OpenAI Codex Lucas Wilkinson Claude Opus 5.5 Lucas Wilkinson
parent 3766a67a32
commit 02e55d2af3
83 changed files with 1280 additions and 1986 deletions
+2 -2
View File
@@ -333,7 +333,7 @@ def get_hisparse_kv_cache_config(
device_groups = hisparse_layout.device_groups
layout = vllm_config.cache_config.get_resolved_kv_cache_layout()
validate_kv_cache_layout(layout, device_groups)
bytes_per_block = _get_kv_cache_bytes_per_block(device_groups)
bytes_per_block = _get_kv_cache_bytes_per_block(device_groups, layout)
num_blocks = may_override_num_blocks(
vllm_config, available_memory // bytes_per_block
)
@@ -345,7 +345,7 @@ def get_hisparse_kv_cache_config(
host_groups = [hisparse_layout.source_group]
host_layout = KVCacheLayout.LBNHC
validate_kv_cache_layout(host_layout, host_groups)
host_bytes_per_block = _get_kv_cache_bytes_per_block(host_groups)
host_bytes_per_block = _get_kv_cache_bytes_per_block(host_groups, host_layout)
host_size = host_bytes_per_block * hisparse_layout.host_num_blocks
kv_cache_tensors[:0] = _build_hisparse_kv_cache_tensors(
host_groups,