[Bugfix] Make KV cache and MFU log lines backend-neutral (#55650)
Signed-off-by: Ianniu <985683179yzy@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
03dc26e639
commit
e85c8826ce
@@ -2391,9 +2391,11 @@ def update_kv_cache_capacity(
|
||||
vllm_config.cache_config.kv_cache_size_tokens = num_tokens
|
||||
vllm_config.cache_config.kv_cache_max_concurrency = max_concurrency
|
||||
max_model_len = vllm_config.model_config.max_model_len
|
||||
device_type = vllm_config.device_config.device_type
|
||||
logger.info_once(
|
||||
"GPU KV cache size: %s tokens, "
|
||||
"%s KV cache size: %s tokens, "
|
||||
"Maximum concurrency for %s tokens per request: %.2fx",
|
||||
"GPU" if device_type == "cuda" else device_type.upper(),
|
||||
f"{num_tokens:,}",
|
||||
f"{max_model_len:,}",
|
||||
max_concurrency,
|
||||
|
||||
Reference in New Issue
Block a user