[Bugfix] adjust_dcp_kv_cache_interleave_size for NixlConnector only (#54803)

Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
Co-authored-by: cjackal <44624812+cjackal@users.noreply.github.com>
This commit is contained in:
Nicolò Lucchesi
2026-09-02 12:31:14 +02:00
committed by GitHub
co-authored by cjackal
parent 3140531773
commit f81eb41934
3 changed files with 91 additions and 22 deletions
@@ -85,7 +85,7 @@ def ensure_kv_transfer_initialized(
vllm_config.kv_transfer_config.is_kv_transfer_instance
and _KV_CONNECTOR_AGENT is None
):
# PD only supports an interleave_size equal to block_size.
# NIXL P/D requires an interleave_size equal to block_size.
vllm_config.adjust_dcp_kv_cache_interleave_size(kv_cache_config)
_sync_engine_id_across_tp(vllm_config)