[Kimi Bug] Fix kimi k3 startup cuda graph issue with recoverSSM (#55774)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-09-08 10:29:53 -04:00
committed by GitHub
parent 6ddbab03de
commit 07950d4734
2 changed files with 15 additions and 2 deletions
+5 -1
View File
@@ -299,7 +299,11 @@ class CudaGraphManager:
if desc not in descs_by_mode[decode_mode]:
descs_by_mode[decode_mode].append(desc)
if mixed_mode:
# recoverSSM cannot capture a dummy query wider than its workspace.
if mixed_mode and (
not self.vllm_config.cache_config.use_kda_recoverssm
or num_tokens <= max_decode_tokens
):
# for PIECEWISE graphs there is no limit on requests when replaying
# i.e. no request padding is needed, so we leave it as None.
# For breakable PW graphs, break-point kernels read the real batch